If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > PHP > How to get a PHP file to be included across files in different directories?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-13-11, 05:44
Kailee Kailee is offline
Registered User
 
Join Date: Jun 2011
Posts: 15
How to get a PHP file to be included across files in different directories?

Currently I have created some php based webpages and uploaded them to my web hosting server.It has a PHP 5.1.6
installed.With this I am able to include files only that are in the same directory(they work well using require() fn).If not an error message displaying some "no such file" in directory appears in the page.I would like to use them to be included in different direcetories.What should I do?
Reply With Quote
  #2 (permalink)  
Old 06-13-11, 06:15
healdem healdem is offline
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 9,262
consider a symbolic link to the directory, forget how you set up one, but the same physical directory can appear on multiple locations as a subdirectory
__________________
I'd rather be riding my Versys or my Tiger 800 let alone the Norton
Reply With Quote
  #3 (permalink)  
Old 10-03-11, 15:15
angelicaahlu angelicaahlu is offline
Registered User
 
Join Date: Sep 2011
Posts: 1
usability testing

It has a PHP 5.1.6 installed.With this I am able to include ... How to get a PHP file to be included across files in different directories? ...
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On