> 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
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
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
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 . ".
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
> 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
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
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
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]
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:[
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 .
>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
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
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
14 matches
Mail list logo