|  | Posted by J.O. Aho on 11/25/05 11:10 
moriman wrote:> Hi,
 >
 > I'm having a problem referring to other files in my public_html directory ¿
 >
 > Below is a short script (test.php) to show the problem...
 >
 > <?php
 > $filename1 = "c:\\\\xitami-25\\app\\public_html\\title.php";
 
 Full paths are always found, as long as they are correct.
 
 
 > $filename2 = "http://home/title.php";
 
 The file isn't on the "local" filesystem, and therefore false.
 
 
 > $filename3 = "title.php";
 
 only true if the file is in the same directory where executed.
 When executed through a webserver, then it's relative to the location of the
 script.
 
 
 //Aho
  Navigation: [Reply to this message] |