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