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

Re: [PHP-WIN] fopen and ftp, help please

2004-12-09 Thread Luis Moreira
Do you close the file after using it ? If not, it may get stuck. Luis Iker Landajuela wrote: Hi, I´m newbie in PHP programming. Iit´s about opening files in an ftp with php, I have the same problem like you, mi script opens the file correctly the first time but no longer, what`s the problem? Thank

Re: [PHP-WIN] fopen permission denied

2003-04-03 Thread Nick H. -- Level II Technical Support
You need to make sure that IUSR has permissions on that file. When you call from command line it's using your credentials. When it's from a browser, it's IUSR_MACHINE Regards, Nick H. [EMAIL PROTECTED] - Original Message - From: "Walter Gyr" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]

RE: [PHP-WIN] fopen

2003-02-16 Thread Kyle Williamson
In php.ini: ; Whether to allow the treatment of URLs (like http:// or ftp://) as files. allow_url_fopen = On == Kind Regards, Kyle Williamson Solent Educational Limited Tel: (023) 80 843189 Fax: (023) 80 848715 http://www.solented.co.uk/ -Original Message- From: Bobo Wieland [mailto:[

Re: [PHP-WIN] fopen, fputs, fwrite, fclose, fdammit

2002-11-01 Thread toby z
hay max writin to a file is terrable . anyway 1st >$pctarget = "/blogbits/".substr >($target,0,6)."/_".$target."_bc.txt"; if this is a path ur tryin to specify change / to \ 2nd try fwrite fwrite($getcomments, "$title "); or fwrite($getcomments, "$addrecord"); hope this helps .

RE: [PHP-WIN] fopen()

2002-02-21 Thread Svensson, B.A.T. (HKG)
>I have problem with function fopen() - if file not exists, fopen() don't >return false, it returnnothing. It is impossible for a function in a typed language to return different data types dependent on the evaluation of the function. According to the manual pages of php's fiopen() it should retu

RE: [PHP-WIN] fopen

2002-01-23 Thread Philipp Traeder
Hi Robert, I'm still a beginner concerning PGP, so I can't tell you where the error is, but I've been successful using the following code: HTH, Philipp Traeder [[EMAIL PROTECTED]] > -Original Message- > From: Robert Abbate [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 23, 200

Re: [PHP-WIN] fopen question

2001-10-22 Thread Ross Fleming
Yeah just assign different variables for each filename. ie $in = fopen("whatever/input.txt"); $out = fopen("whatever/output.txt"); fopen simply returns the pointer to the file you've opened. So you assign it to a variable. Ross Brad Harriger wrote: > Is it possible to have more than one fi