Be a Supporter!

cURL dump

  • 357 Views
  • 2 Replies
New Topic Respond to this Topic
Momo-the-Monkey
Momo-the-Monkey
  • Member since: Oct. 15, 2005
  • Offline.
Forum Stats
Member
Level 45
Musician
cURL dump 2009-08-02 23:14:43 Reply

Because I was dump, I messed around with curl and now I have a problem.

$ch = curl_init(); 
    curl_setopt($ch, CURLOPT_URL,$url);
    // don't download content
    curl_setopt($ch, CURLOPT_NOBODY, 1);
    curl_setopt($ch, CURLOPT_FAILONERROR, 1);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 

   curl_exec($ch);

I executed that code, where the URL is a remote image url. I deleted the code, but the page still exists whenever the function I put this in is run. How can I get rid of this nasty thing? Apparently deleting it out of the code does not work....

So, I want to delete the dang curl session so it will stop exiting my script every time it wants to execute.

Hello, from the past!
[ PHP: Main ]

BBS Signature
Momo-the-Monkey
Momo-the-Monkey
  • Member since: Oct. 15, 2005
  • Offline.
Forum Stats
Member
Level 45
Musician
Response to cURL dump 2009-08-02 23:18:27 Reply

Ahhh piss. Terribly sorry. I did not realize curl_close() existed. My bad.


Hello, from the past!
[ PHP: Main ]

BBS Signature
cochipahue
cochipahue
  • Member since: Nov. 19, 2007
  • Offline.
Forum Stats
Member
Level 16
Blank Slate
Response to cURL dump 2009-08-02 23:29:50 Reply

programming is hard