View Single Post
  #4  
Old 11-09-2010, 06:58 AM
denverwed denverwed is offline
Member
 
Join Date: Nov 2010
Posts: 1
Credits: 128
denverwed
Default RE: How to get a PHP file to be included in the files in different directories?

Quote:
Originally Posted by pumashoes34
Quote:
Originally Posted by Killgore
Something along the lines of
PHP Code:
include('the FULL url of the file you wish to include'); 
should work. You could also use the require() function as well.

Note: the full url you're looking for should be something like
Code:
http://websitename.com/directory/file.php
The answer to your questions, however, is by using relative paths.

Do a quick search for: php includes relative paths

yes i agree with you .... give ralative paths in include function....
Reply With Quote