Re: [PHP-WIN] fopen on windows shared, error: failed to open stream

2007-10-28 Thread Niel Archer
> I have this error when ever i try to save an xml file over a windows shared > folder > > *Warning*: > fopen(\\192.168.10.2\businesscard\XML\afbf7d1fb318054a5ba3e9d4cca0af.xml) [ > function.fopen]: failed to open stream: Invalid argument in * > E:\\businesscard\create.php* on line *663* > > my c

Re: [PHP-WIN] fopen on windows shared, error: failed to open stream

2007-10-25 Thread Niel Archer
Hi Louie I've tried using both a mapped network drive and the UNC path syntax. Both work perfectly for me, although I only tried reading, not writing. Which version of PHP are you using. I'm not sure if versions before 5.0 handle shares at all. I checked the bug entry you cited, did you read the

Re: [PHP-WIN] fopen on windows shared, error: failed to open stream

2007-10-24 Thread Mazzu
Have you try to test whether the file is available or not ? Maybe you should try somehting like this : $xml_file = '192.168.10.2\\businesscard\\XML\\'.$xml_uniq_session.'.xml'; if (!file_exists($xml_file)) { exit('File '.$xml_file.' does not exists or is unavailable'); } elseif (!is

Re: [PHP-WIN] fopen on windows shared, error: failed to open stream

2007-10-24 Thread Louie Miranda
After seeing this: http://bugs.php.net/bug.php?id=25805 I think i know what the problem is. Louie On 10/25/07, Louie Miranda <[EMAIL PROTECTED]> wrote: > > Tried both.. > > Use forward slashes for paths inside double quotes, > fopen("192.168.10.2/businesscard/XML/" . $xml_uniq_session . ".

Re: [PHP-WIN] fopen on windows shared, error: failed to open stream

2007-10-24 Thread Louie Miranda
Tried both.. Use forward slashes for paths inside double quotes, fopen("192.168.10.2/businesscard/XML/" . $xml_uniq_session . ".xml", "w"); escape the backslashes themselves fopen("192.168.10.2\\businesscard\\XML\\".$xml_uniq_session.".xml", "w"); or single quotes fopen('192.1

Re: [PHP-WIN] fopen on windows shared, error: failed to open stream

2007-10-24 Thread Niel Archer
> I have this error when ever i try to save an xml file over a windows shared > folder > > *Warning*: > fopen(\\192.168.10.2\businesscard\XML\afbf7d1fb318054a5ba3e9d4cca0af.xml) [ > function.fopen]: failed to open stream: Invalid argument in * > E:\\businesscard\create.php* on line *663* > > my c

Re: [PHP-WIN] fopen on windows shared, error: failed to open stream

2007-10-23 Thread Louie Miranda
Hi John, Tried your suggestion. But, it still has the same error. [function.fopen]: failed to open stream: Invalid argument in On 10/23/07, John Mertic <[EMAIL PROTECTED]> wrote: > > Make sure that the folder you are saving to is available for saving > for user which the webserver is running as

[PHP-WIN] fopen on windows shared, error: failed to open stream

2007-10-22 Thread Louie Miranda
I have this error when ever i try to save an xml file over a windows shared folder *Warning*: fopen(\\192.168.10.2\businesscard\XML\afbf7d1fb318054a5ba3e9d4cca0af.xml) [ function.fopen]: failed to open stream: Invalid argument in * E:\\businesscard\create.php* on line *663* my code: $createXML =