GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Serious Thread (ST) - SSI or equivalent to include a page across several domains? (https://gfy.com/showthread.php?t=275922)

Juicy D. Links 04-27-2004 02:53 PM

Serious Thread (ST) - SSI or equivalent to include a page across several domains?
 
All domains are on same box..... will SSI work across server for a few domains?

I need to include links on each page and dont want to update evry page rather one main page the the SSi or whatever will call.


????:helpme

bluff 04-27-2004 03:00 PM

Quote:

Originally posted by juicylinks
All domains are on same box..... will SSI work across server for a few domains?

I need to include links on each page and dont want to update evry page rather one main page the the SSi or whatever will call.


????:helpme

I think it will. Just give it a try!

bluff 04-27-2004 03:01 PM

Quote:

Originally posted by bluff
I think it will. Just give it a try!
better include a (pic) in your title next time instead of a (ST) :winkwink: if you know what I mean...

Juicy D. Links 04-27-2004 03:01 PM

:Graucho :Graucho

Juicy D. Links 04-27-2004 03:25 PM

:helpme :helpme :helpme

Juicy D. Links 04-27-2004 03:30 PM

If i dont get help

I wont post funny pics anymore

MrIzzz 04-27-2004 03:31 PM

funny how a serious thread doesnt get any answers

sumphatpimp 04-27-2004 03:39 PM

hit this link or your Q factor will suffer

WebTitan 04-27-2004 03:42 PM

yes, will work with files OR directories, have a few clients that use shared content for members areas, and asl long as everything sits on the same machine, will work fine.

hibbidiji 04-27-2004 03:44 PM

You can do it on the same server easily. if you want to do it across servers you're gonna want to use something like php which if setup properly can do it very easily. (easiest in fact) if you need help hit
36670850

D

jimboc 04-27-2004 03:45 PM

Quote:

Originally posted by juicylinks
If i dont get help

I wont post funny pics anymore

Someone help juicy:mad: :mad: :mad:

gornyhuy 04-27-2004 03:45 PM

This is why god gave hosting companies tech support.

WebTitan 04-27-2004 03:45 PM

this is also helpfull and might help with what you need doing:
http://linux.about.com/library/cmd/blcmdl1_ln.htm

cluck 04-27-2004 03:46 PM

I do that with galleries. Like my gallery list is on one domain and I do a php include of ../www.picshow.net/galdump/teens7.txt or whatever.

modifried 04-27-2004 03:48 PM

SSI won't be able to help as it has no access to any sort of URL wrapper, PHP is something that would work. When compiled with the proper configuration options, you're able to include other files via HTTP.

Keep in mind, though, you will _not_ be able to include PHP code and have it be run on the local server it's being included on.

General syntax would be:

<?php
include("http://www.yoursite.com/includes/include.htm");
?>

Any questions feel free to ICQ me.

Andy

Juicy D. Links 04-27-2004 03:48 PM

Quote:

Originally posted by gornyhuy
This is why god gave hosting companies tech support.
I dont use tech support for educational purposes. I try to figure and learn it myself. :Graucho


I am just teaching myself juicy stuff

gornyhuy 04-27-2004 03:51 PM

Quote:

Originally posted by juicylinks
I dont use tech support for educational purposes. I try to figure and learn it myself. :Graucho


I am just teaching myself juicy stuff

In that case you should use PHP includes, you can include basically anything anywhere. If have .php files gives you heartburn there are tricks to avoid that. :Graucho

modifried 04-27-2004 03:53 PM

Quote:

Originally posted by gornyhuy
In that case you should use PHP includes, you can include basically anything anywhere. If have .php files gives you heartburn there are tricks to avoid that. :Graucho
Yeah, the most effective of which being to either edit the httpd.conf file or use an .htaccess file with the line:


AddType application/x-httpd-php .php .php3 .htm .html

To make .htm and .html files work with the PHP parser.


Edit: Assuming it's an apache webserver.

AWC 04-27-2004 03:53 PM

why not use symbolic links to the file... and then ssi to include.

then update your primary file.

hibbidiji 04-27-2004 03:56 PM

Quote:

Originally posted by modifried
SSI won't be able to help as it has no access to any sort of URL wrapper, PHP is something that would work. When compiled with the proper configuration options, you're able to include other files via HTTP.

Keep in mind, though, you will _not_ be able to include PHP code and have it be run on the local server it's being included on.

General syntax would be:

<?php
include("http://www.yoursite.com/includes/include.htm");
?>

Any questions feel free to ICQ me.

Andy

hehe now lets be precise so long as we're teaching juicy the ropes on php. you CAN include remote php code, but you have to treat it well :) you can pop the code as plaintext (non parsed) on one machine (SO insecure it hurts) and include it on another box and EVAL it which works fine... base64encoding and gzipping then removing the code bits helps to secure it a bit if you dont mind a 12 year old figuring it out. :)

but fair's fair, mod is right (and I'm sure he knew all this) you cant just include php code from remote servers as it will be parsed by apache (or whatever) before it gets to you.

dont even get me started on SOAP ;)

D

jayeff 04-27-2004 03:58 PM

You can access via SSI files and directories across domains on a single machine. But first you need to set up an alias for each directory (tree) that you want to be able to address in this way.

You do this in httpd.conf and an example would be:
Alias /common /full_server_path_to_one_of_your_domains/common

Using that example, you would then be able to address files and subdirectories in the directory "common" using the same SSI commands as if that directory existed on each domain. BTW this works not only for SSI includes, etc., but also for normal href= calls, img src= etc.

milambur 04-27-2004 04:00 PM

Since it's all on the same server use the absolute path to the file with php include instead, much faster then a http reference.

hibbidiji 04-27-2004 04:03 PM

Quote:

Originally posted by milambur
Since it's all on the same server use the absolute path to the file with php include instead, much faster then a http reference.

terry goodkind? milamber?

modifried 04-27-2004 04:04 PM

Quote:

Originally posted by hibbidiji
hehe now lets be precise so long as we're teaching juicy the ropes on php. you CAN include remote php code, but you have to treat it well :) you can pop the code as plaintext (non parsed) on one machine (SO insecure it hurts) and include it on another box and EVAL it which works fine... base64encoding and gzipping then removing the code bits helps to secure it a bit if you dont mind a 12 year old figuring it out. :)

but fair's fair, mod is right (and I'm sure he knew all this) you cant just include php code from remote servers as it will be parsed by apache (or whatever) before it gets to you.

dont even get me started on SOAP ;)

D

Yeah. Although, technically, it'd be parsed by PHP before it gets to you. Apache passes it to the PHP parser, which returns the modified code back to Apache to server. ;)

And yes, you _could_ include remote PHP code, using the methods you mentioned. Another would be to use PHP's sockets support to open an https connection to the server with the code, and send a password via POST to retrieve the content. The server could keep an active list of allowed domains/scripts that it will serve, and if you're not on the list, OR you're on it and supply an invalid pass, just spit out an error instead.

modifried 04-27-2004 04:05 PM

Quote:

Originally posted by milambur
Since it's all on the same server use the absolute path to the file with php include instead, much faster then a http reference.
Yeah, I didn't pay enough attention to the original post, I thought he wanted to include across separate servers. I agree with the above post (namely because it's right;), including via absolute path will save you some overhead and make for faster response times in general.

milambur 04-27-2004 04:07 PM

Quote:

Originally posted by hibbidiji
terry goodkind? milamber?
Raymond E. Feist , I misspelled it the first time i used it and it stuck after that.


All times are GMT -7. The time now is 03:56 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123