Forum Moderators: coopster

Message Too Old, No Replies

In which examples absolute path does not work on server?

         

toplisek

9:09 pm on Feb 10, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I have noticed that on my new upgraded version of PHP (server) it does not work anymore absolute path and I have to use relative path.

Is this some global variable on server that avoids working absolute path for includes files?

eelixduppy

9:16 pm on Feb 10, 2009 (gmt 0)



If anything I wouldn't expect it to be the other way around, but it should be working. Maybe try another file and see if that works. Are you getting any errors from the scripts?

STeeL

11:00 pm on Feb 10, 2009 (gmt 0)

10+ Year Member



Check the output of phpinfo(); to see your path variables.

toplisek

7:24 am on Feb 11, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Thank you.
Which phpinfo(); will define path variables?

coopster

1:02 pm on Feb 11, 2009 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Check out the $_SERVER [php.net] superglobal. However, if you have to ask that question, then I must ask you how are you currently building your include file paths? I believe your problem lies deeper than a server change.