Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18

Thread: Upgrading the News Page!

  1. #11

    Upgrading the News Page!

    I like new Events and Quote panels.

  2. #12
    Co-Founder / PGD Elder WILL's Avatar
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    6,107
    Blog Entries
    25

    Upgrading the News Page!

    Fixed a little bug when an RSS feed cannot be read by the main page. If you guys see it anymore please let me know.
    Jason McMillen
    Pascal Game Development
    Co-Founder





  3. #13

    Upgrading the News Page!

    Quote Originally Posted by WILL
    Fixed a little bug when an RSS feed cannot be read by the main page. If you guys see it anymore please let me know.
    Warning: fopen(http://www.gamedev.net/xml/) [function.fopen]: failed to open stream: HTTP request failed! in /...cut.../portal.php on line 419

    Warning: fclose(): supplied argument is not a valid stream resource in /...cut.../portal.php on line 430
    Too much infos for hackers
    This error comes in the main page only, though the rssfeed box works fine, in fact it says:
    GameDev.net News:
    Error reading RSS data.
    Get your fpc4gba copy now!
    Get your fpc4nds copy now!

  4. #14
    Co-Founder / PGD Elder WILL's Avatar
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    6,107
    Blog Entries
    25

    Upgrading the News Page!

    Yeah, I've been seeing it too. :? Crappy GameDev.net RSS feed source.

    PHP 4 doesn't have try does it? I've been trying (irony) to make fopen return nothing (or at least just not complain for all to see) when it chokes. The fclose error is fairly easy to resolve, however.
    Jason McMillen
    Pascal Game Development
    Co-Founder





  5. #15

    Upgrading the News Page!

    Quote Originally Posted by WILL
    Yeah, I've been seeing it too. :? Crappy GameDev.net RSS feed source.

    PHP 4 doesn't have try does it? I've been trying (irony) to make fopen return nothing (or at least just not complain for all to see) when it chokes. The fclose error is fairly easy to resolve, however.
    In order to disable all warnings you could use:
    Code:
    error_reporting (0);
    as the first call in your php page or, at least, you can disable the warning of a function by using @ in this way:
    Code:
    @fopen(....)
    Get your fpc4gba copy now!
    Get your fpc4nds copy now!

  6. #16
    Co-Founder / PGD Elder WILL's Avatar
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    6,107
    Blog Entries
    25

    Upgrading the News Page!

    Ah ok... thanks a bunch!

    So the @ solution will disable the error reporting only for that line, correct?

    I'd want to know about other errors besides that one still.
    Jason McMillen
    Pascal Game Development
    Co-Founder





  7. #17

    Upgrading the News Page!

    Yes, and it should work for all that functions that return warning/error/info
    Get your fpc4gba copy now!
    Get your fpc4nds copy now!

  8. #18
    Co-Founder / PGD Elder WILL's Avatar
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    6,107
    Blog Entries
    25

    Upgrading the News Page!

    Ok it's in... NOW, if you guys see any errors, please let me know.
    Jason McMillen
    Pascal Game Development
    Co-Founder





Page 2 of 2 FirstFirst 12

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
  •