[plug] phpPgAdmin v2.4.2 users? config error??
Denis Brown
dsbrown at cyllene.uwa.edu.au
Sat Dec 21 22:33:24 WST 2002
Dear Onno and interested list members...
Problem solved -- thanks to Onno's helpful hints and a good night's sleep!
The problem arises in the use of PHP with Apache2 and seems to relate
pretty exclusively to the file_exists function.
The code fragment
file_exists("thisfile.ext")
needs to be rewritten as
file_exists(getcwd()."/thisfile.ext")
in order that the corrrect path be prepended to the to-be-tested file.
Interestingly enough the fopen function behaves correctly without having
to have the extra path info.
Further reading in the php manual pages related to the file_exists
function and especially in the many comments made by users. Doh!
Sincere thanks,
Denis
More information about the plug
mailing list