Path to a file using include() contains a "."
Posted: Thu Nov 06, 2008 12:35 am
The line of code is:
include("./home/whatever.php")
what does the ./ mean?
I keep getting errors on that line, but it rins fine on another server. I know it isnt a code error, I found out what the problem was at a while back but I forgot.
The code ./ seems to intend to refer to the root directory of the site. The guy who made this site used it all over, it for some reason works fine on our server but it refuses to operate on my local machine.
thanks
include("./home/whatever.php")
what does the ./ mean?
I keep getting errors on that line, but it rins fine on another server. I know it isnt a code error, I found out what the problem was at a while back but I forgot.
The code ./ seems to intend to refer to the root directory of the site. The guy who made this site used it all over, it for some reason works fine on our server but it refuses to operate on my local machine.
thanks