Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.