devWhiz Posted April 25, 2011 Share Posted April 25, 2011 $thread_url = explode('<meta property="og:url" content="', curl_exec($ch)); $thread_url = explode('?s=', $thread_url[1]); $title = explode("http://forums.blahblah.com/threads/$z-", curl_exec($ch)); $title = explode("?s=", $title[1]);[code=php:0] so instead of it executing the curl each time to get the variable $thread_url and $title.. is there a way I can only execute the url only once and check for $thread_url and $title with only executing once.. Any help is appreciated. thanks Link to comment https://forums.phpfreaks.com/topic/234636-i-need-some-help/ Share on other sites More sharing options...
devWhiz Posted April 25, 2011 Author Share Posted April 25, 2011 $thread_url = explode('<meta property="og:url" content="', curl_exec($ch)); $thread_url = explode('?s=', $thread_url[1]); $title = explode("http://forums.blahblah.com/threads/$z-", curl_exec($ch)); $title = explode("?s=", $title[1]); Code was messed up in the first post Link to comment https://forums.phpfreaks.com/topic/234636-i-need-some-help/#findComment-1205786 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.