Oprano Front Page


Go Back   Oprano Adult Industry Forums > The Business Of Porn - Closed For Posting > Legacy Archived Main Board

Notices

Legacy Archived Main Board Business chat and general industry chat. All participation is welcome. Dont post your fucking spam here.





Check Out YnotMail

The Original Oprano Flat Board (Thanks To Sarettah!)---
Oprano Swag Shop
"History Of Porn Timeline
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 04-27-2005   #37
Jeremy
Members
 
Join Date: Apr 2005
Posts: 157
Default

Quote:
Originally posted by Grump@Apr 26 2005, 02:55 PM
It can be on a different domain on the same server if you use the server path in a php call, not sure about from a different server.



EDIT- I think it can also be done across domains on the same server without php using a virtual folder.
It depends on how your server is set up :-0)

There are times when it's advisable to have php includes outside of the web root (usually /html/), so you can only include it like:



Most common these days is to slap it in a folder inside the web root, so you can use relative or absolute linking as you would any other file on the server.

Relative:


Absolute:


(NB: this will allow it to be linked to from *any* domain, on-server or off-server - it can cause probs because php can only handle a certain amount of full URL connections).

If you have multiple domains on a server but only want to have one folder serving all the includes, you can either call it all from one location (/home/path/to/file) or you can be sneaky and alias /symlink a folder so it can be relative across all domains. You can do this in htaccess but it's better to alias stuff in apache config.

EG in your html you'd include "/includefolder/file" which would to all intents and purposes be served from domain.com/includefolder/file but in reality is served from /some/other/location/includefolder/file
Jeremy is offline   Reply With Quote
 

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Forum Jump


All times are GMT -4. The time now is 02:32 AM..


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Copyright Evil Empire Inc. 2006-2022