Re: PHP eregi filtering problem

From: Date: Mon, 08 Dec 2003 17:09:15 +0000
Subject: Re: PHP eregi filtering problem
References: 1  Groups: php.general php.general 
Request: Send a blank email to php-general+get-172155@lists.php.net to get a copy of this message
Purpleonyx schrieb:
Greetings all, I ran into a problem today and was hoping someone could provide an answer. I am fetching a web page, and attempting to parse certain variables from it. I've done this plenty of times in the past with no problem. The only difference this time is the file that I am parsing is much larger. The HTML file is about 42kb in size (usually I only parse ~4kb worth). In the web browser, the script seems to just shut down, but reports no errors, not even to the web server logs. Is there some specific max size that it can accept or a setting in php.ini I need to modify? Thanks
hi, i don't think, that 42k is too much for the size of your file. mut maybe php simply times out while parsing? there is a php.ini-parameter max_execution_time and a runtime-function set_time_limit(). try set_time_limit(0) at top of your script fo debugging. also take a look at preg_* functions instead of ereg_*. they are said to be much faster. hth SVEN

« previous php.general (#172155) next »