For Programmers: Free Programming Magazines  


Home > Archive > PHP on Windows > October 2007 > fopen on windows shared, error: failed to open stream









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author fopen on windows shared, error: failed to open stream
Louie Miranda

2007-10-23, 4:03 am

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\afbf7d1fb318054a5ba3e
9d4cca0af.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 (lmiranda@gmail.com)
http://www.axishift.com

Security Is A Series Of Well-Defined Steps
chmod -R 0 / ; and smile :)

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com