Jump to content

I need some help...


devWhiz

Recommended Posts

				$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

$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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.