Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jul 2008
    Posts
    64
    Thanks
    9
    Thanked 0 Times in 0 Posts

    Cool XML / PHP Problem

    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!
    Last edited by cassisdesign; 11-05-2008 at 11:00 PM.

  • #2
    Master Coder
    Join Date
    Dec 2007
    Posts
    6,682
    Thanks
    436
    Thanked 890 Times in 879 Posts
    Quote Originally Posted by cassisdesign View Post
    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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •