...

View Full Version : XML / PHP Problem



cassisdesign
11-05-2008, 09:57 PM
Does anyone know about this error that i am receiving?

ERROR: Cannot write XML data to printers.xml

Warning: fwrite(): supplied argument is not a valid stream resource in /home/thinkcas/public_html/requestaquote/class.xml.php on line 157

Warning: fclose(): supplied argument is not a valid stream resource in /home/thinkcas/public_html/requestaquote/class.xml.php on line 158

The lines of code that is shows as an error are the following:
157) write($fp,$this->getXML());
158) fclose($fp);


the website is:http://thinkcassis.com/requestaquote/

This happens when I go to manage printers and try to add a printer or delete a printer.

Any help would be AWESOME! :)

oesxyl
11-05-2008, 10:46 PM
Does anyone know about this error that i am receiving?

ERROR: Cannot write XML data to printers.xml

Warning: fwrite(): supplied argument is not a valid stream resource in /home/thinkcas/public_html/requestaquote/class.xml.php on line 157

Warning: fclose(): supplied argument is not a valid stream resource in /home/thinkcas/public_html/requestaquote/class.xml.php on line 158

The lines of code that is shows as an error are the following:
157) write($fp,$this->getXML());
158) fclose($fp);

$fp is not valid. Check value returned by fopen before you use it.

regards



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum