You are here: Re: file_exists() with Windows share « PHP Programming Language « IT news, forums, messages
Re: file_exists() with Windows share

Posted by Erwin Moller on 11/28/05 18:27

Alan wrote:

> Running PHP5 with IIS on a Win2K Server
>
> whenever I try file_exists() on a file in a windows share on another
> server I get a response of False - I can't open the file or do anything
> with it. I'm sure the filename/path is Ok
>
> $filename=
> '//print-admin/Public$/planningprepress/planning/prepresslist.xls'
>
> I've tried replacing all the '/' with chr(92) to no avail. The only
> info I have found so far simply says that for Windows shares to use
> //server/share/file which is what I have and the folder/file are
> accessible by everyone.
> What am I missing ?

Hi,

Did you try escaping?
I am not sure if it helps, but give it a try.

like:
$filename='\/\/print-admin\/Public\$/planningprepress/planning/prepresslist.xls';

Regards,
Erwin Moller

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация