Page 1 of 1

I need a way to treat the result of a curl session as a stri

Posted: Tue Jul 22, 2008 1:55 am
by McMillian
ng?? I guess that's what I'm trying to do

I have a curl script that when it runs, runs a page from megaupload via my premium account cookie

I want to pick through the source code with preg_matches to pull out what I need, and I have the code all figured out but I don't know how to search the returned page

I can't file_get_contents to my own server for some reason...so I don't know what to do.

Re: I need a way to treat the result of a curl session as a stri

Posted: Tue Jul 22, 2008 3:12 am
by dhrosti
there's a option to return the source code that you can set using...

Code: Select all

curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
 
$source = curl_exec();
...i think?