[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: file exists problem



try this $filename='http://www.yourservername.com/banners/add.jpg";;

Sridhar

--- On Thu, 22/4/10, atkelleden atkelleden <atkelleden@xxxxxxxxx> wrote:

From: atkelleden atkelleden <atkelleden@xxxxxxxxx>
Subject:  file exists problem
To: php-objects@xxxxxxxxxxxxxxx
Date: Thursday, 22 April, 2010, 5:20 PM







 



  


    
      
      
      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]


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux