Re: trouble using "is_file()"

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

 



On Monday, 25 April 2011 at 00:26, Jim Giner wrote:
I've got a d/e screen that collects a path and a file name. My script then 
> attempts to verify that the file exists before moving on to do things with 
> it.
> I've displayed the combined fields and they are showing correctly - ie, 
> "c:\temp\emax.pdf" as well as "c:/temp/emax.pdf" . But when I use that var 
> in "is_file($fname)" I get a false returned. But I know it exists there.
> 
> Never used this function before, so I'm probably doing something stupid. 
> btw - running on an XP machine with php 5.2 

Are you expecting it to check that the file exists on the client or on the server?

Remember that PHP runs on the server and cannot access the client's file system.

-Stuart

-- 
Stuart Dallas
3ft9 Ltd
http://3ft9.com/






-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux