SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict
    Join Date
    Oct 2003
    Posts
    245
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    var_dump turn blank page?

    For some reason var_dump turn to blank page?

    $rss = simplexml_load_file('xml2.xml');
    var_dump($rss);

    in the XML file:

    Code XML:
    <?xml version="1.0" encoding="utf-8" ?>
    <!DOCTYPE events [
        <!ENTITY pound "£">
        <!ENTITY amp "&amp;">
        <!ENTITY trade "™">
    ]>
     
    <events>
      <event>
       <title>Title here</title>
          <tickets>
               <ticket>
                <name>Name here</name>
                <description></description>
                <price>&pound;30.00</price>
                <status> Sold out</status>
               </ticket>
    	</tickets>
     </event>
    </events>
    [Home Sweet Home]

  2. #2
    SitePoint Wizard bronze trophy
    Join Date
    Jul 2008
    Posts
    5,757
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Always turn up error reporting when developing code.
    PHP Code:
    ini_set('display_errors'1);
    error_reporting(E_ALL); 


Bookmarks

Posting Permissions

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