View Single Post
  #3  
Old 10-28-2010, 06:51 AM
pumashoes34 pumashoes34 is offline
Member
 
Join Date: Oct 2010
Posts: 1
Credits: 130
pumashoes34
Default RE: How to get a PHP file to be included in the files in different directories?

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
Reply With Quote