Re: file exists problem
Hello ,
Not sure whether you got a reply or not .
Here is what you can do .
Get your phpinfo() of your remote server . Get the document_root .
So now its the root , add the remaining path accordingly . ie if its in banners folder , document_root / banners / <filename> . Hope it works for you .
Hari K T
http://harikt.com/
________________________________
From: atkelleden atkelleden <atkelleden@xxxxxxxxx>
To: php-objects@xxxxxxxxxxxxxxx
Sent: Thu, 22 April, 2010 5:20:58 PM
Subject: file exists problem
The following script work fine in my computer (the file exists).
but
I copy them to a remote server. 'File does not exist' result is returned.
$filename = 'C:/banners/ b.jpg';
if (file_exists( $filename) ) {
echo "The file $filename exists";
} else {
echo "The file $filename does not exist";
}
thanks a lot.
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]
[PHP Home]
[PHP Users]
[PHP Soap]
[Kernel Newbies]
[Yosemite]
[Yosemite Campsites]