Welcome to HBH! If you had an account on hellboundhacker.org you will need to reset your password using the Lost Password system before you will be able to login.

PHP cURL help


t0xikc0mputer's Avatar
Member
0 0

Hello all,

I know that I am probably stupid. (I certainly feel that way) I have not been quite able to grasp cURL from the php.net website enough to be able to make a simple page save to a folder on my ftp server. I know that I may be butchering syntaxes, have errors beyond imagination, etc. but I would like some advice on just getting this very very very simple code up and running. I really appreciate your help, and it would be best for me if the only criticism offered was constructive, as opposed to calling me retarded, etc. Also, there may be no problems with the code (I doubt it) but there is a possibility that I require some chmodding or other server stuff.

Here goes nothing:

$ch = curl_init("http://www.google.com");
$file = fopen(stuff/goog.html, a+);
curl_setopt($ch, CURLOPT_FILE, $file);
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_close($ch);
fclose($file);
?>```

Thanks again for any help at all that you may be able to offer,

~t0xik

Also, if you want the errors that I get when I do this pm me, as I have been fiddling a lot with this and the errors I get change often, but there are always errors.

spyware's Avatar
Banned
0 0

Learn programming basics first, then cURL.