php-windows Digest 24 Oct 2007 00:02:55 -0000 Issue 3358
Topics (messages 28579 through 28579):
Re: fopen on windows shared, error: failed to open stream
28579 by: Louie Miranda
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
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, and double your
> backslashes to make the command look like this:
>
> $createXML =
> fopen("\\\\192.168.10.2\\businesscard\\XML\\".$xml_uniq_session.".xml",
> "w");
>
> John
>
> On 10/22/07, Louie Miranda <[EMAIL PROTECTED]> wrote:
> > 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 =
> > fopen("\\\\192.168.10.2\businesscard\XML\".$xml_uniq_session.".xml",
> "w");
> > $_xml ="<?xml version=\"1.0\" encoding=\"UTF-8\"
> standalone=\"yes\"?>\r\n";
> > ....
> > fwrite($createXML, $_xml, strlen($createXML));
> > fclose($createXML);
> >
> > What could be the problem?
> >
> > --
> > Louie Miranda ([EMAIL PROTECTED])
> > http://www.axishift.com
> >
> > Security Is A Series Of Well-Defined Steps
> > chmod -R 0 / ; and smile :)
> >
>
>
> --
> John Mertic
> [EMAIL PROTECTED]
> http://jmertic.wordpress.com
>
> "Explaining a joke is like dissecting a frog: you understand it
> better, but the frog dies
> in the process." --Mark Twain
>
--
Louie Miranda ([EMAIL PROTECTED])
http://www.axishift.com
Security Is A Series Of Well-Defined Steps
chmod -R 0 / ; and smile :)
--- End Message ---