#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2004
    Posts
    206
    Rep Power
    11

    Blank page returned for large script


    I'm scraping content from a page and its sub pages and placing it into an XML file. I use PHP Simple HTML DOM Parser (http://simplehtmldom.sourceforge.net/) to do this, and it works very well.

    The problem I'm having is that sometimes it works fine (after taking around 20-30 seconds), but other times it just returns a blank screen. So its clear that the script works, but sometimes it seems to just time out. I have tried removing the memory limit to stop the page timing out:

    PHP Code:
    ini_set('memory_limit''-1'); 
    But sometimes I still get the blank screen and nothing added to the XML file. Any idea on how I can stop this form happening?
  2. #2
  3. --
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Jul 2012
    Posts
    3,957
    Rep Power
    1046
    Hi,

    have you checked the time limits?
    The 6 worst sins of security ē How to (properly) access a MySQL database with PHP

    Why canít I use certain words like "drop" as part of my Security Question answers?
    There are certain words used by hackers to try to gain access to systems and manipulate data; therefore, the following words are restricted: "select," "delete," "update," "insert," "drop" and "null".

IMN logo majestic logo threadwatch logo seochat tools logo