iceman400 Posted March 6, 2007 Share Posted March 6, 2007 this bit of code timesout (php.ini is set to 30 seconds, but the code should take no more than 5 seconds to complete). whats wrong with it? //$noquote is a str of html containing unwanted symbols $symbols = array("'", "\"", ")", "(", "!", "@", "$", "^", "*", "\\", "<", ">", ";", ":", " "); foreach($noquote as $noquote){ foreach($symbols as $s){ while ($line = explode($s, $noquote)){ $noquote = implode("", $line); } } } help me please Quote Link to comment Share on other sites More sharing options...
btherl Posted March 6, 2007 Share Posted March 6, 2007 What do you want your code to do? Quote Link to comment Share on other sites More sharing options...
iceman400 Posted March 6, 2007 Author Share Posted March 6, 2007 what im trying to do is extract bits of url from strings of javascript & html. sometimes the only available bits are the page name (pagename.php) and sometimes the whole address (http://......php).the specific bit of code i posted is supposed to sift out any types of symbols that are not part of a web address (such as "*") and return the result. 2 c whether or not the returned string is a web address, i try to fopen() it. if it works, i save the address, if not, i move on to the next bit of string. Quote Link to comment Share on other sites More sharing options...
iceman400 Posted March 6, 2007 Author Share Posted March 6, 2007 sorry to bump myself but i really need this asap pls :'( Quote Link to comment Share on other sites More sharing options...
iceman400 Posted March 6, 2007 Author Share Posted March 6, 2007 well, some1 close this thread please. my brain muxt be on vacation...forgot about good old str_replace. lol thanx anyway Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.