Location: t0xik waste dump
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);
Thanks again for any help at all that you may be able to offer,
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.
Edited by t0xikc0mputer on 29-03-11 02:42
Warn Level: 90
|Learn programming basics first, then cURL.|
"The chowner of property." - Zeph
�Widespread intellectual and moral docility may be convenient for leaders in the short term, [center]�Since the grid is inescapable, what were the earlier lasers about? Does the corridor have a sense of humor?� - Ebert[/ce
but it is suicidal for nations in the long term.� - Carl Sagan