Q Question Everything! New member Jun 27, 2009 #1 Which one do I use to include this file '/somefolder/file.html'? A) include("/somefolder/file.html"); B) include("file.html");
Which one do I use to include this file '/somefolder/file.html'? A) include("/somefolder/file.html"); B) include("file.html");
S Slyke New member Jun 27, 2009 #2 If the PHP file is in the same directory as the HTML file, then you can just call the file: include("file.html"); If it's in a different directory, then you will need to specify either the full path, or the relative path: include("pages/file.html"); or include("c:/www/pages/file.html");
If the PHP file is in the same directory as the HTML file, then you can just call the file: include("file.html"); If it's in a different directory, then you will need to specify either the full path, or the relative path: include("pages/file.html"); or include("c:/www/pages/file.html");
C Chris New member Jun 27, 2009 #3 A is the correct way to do it, unless the php file your using the function on is IN the somefolder/ in which you'd just use B
A is the correct way to do it, unless the php file your using the function on is IN the somefolder/ in which you'd just use B