Re: Maximum Execution Time and pereg_replace

From: Date: Wed, 18 Oct 2000 17:06:07 +0000
Subject: Re: Maximum Execution Time and pereg_replace
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-20937@lists.php.net to get a copy of this message
Hey Brent: One solution may be to drop the reassignment of $this->raw_modify_style to $out_text. Just keep manipulating $this->raw_modify_style. Something like: $this->raw_modify_style = ereg_replace("<!\\-\\-#title#\\-\\->", "$title", "$this->raw_modify_style"); and continue the process like that... Another possiblity is to increase the memory limits set in your php.ini file. > $out_text = > preg_replace("/<!--#MODIFY#-->((.|\\n|\\r)*)?<!--#\/MODIFY#-->/", ($step > == > 3)?"\\1" : "", $out_text); Uh, maybe this wild guess will work better too... if ($step == 3) { $this->raw_modify_style = preg_replace("/<!--#MODIFY#-->((.|\\n|\\r)*)?<!--#\/MODIFY#-->/", "\\1", "$this->raw_modify_style"); } Hope this actually helps, let us know, --Dan -- PHP scripts that make your job easier http://www.analysisandsolutions.com/code/ SQL Solution | Layout Solution | Form Solution T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7 Ave, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409

« previous php.general (#20937) next »