Follow us on Twitter!
The important thing is not to stop questioning. - Albert Einstein
Thursday, April 17, 2014
Navigation
Home
HellBoundHackers Main:
HellBoundHackers Find:
HellBoundHackers Information:
Learn
Communicate
Submit
Shop
Challenges
HellBoundHackers Exploit:
HellBoundHackers Programming:
HellBoundHackers Think:
HellBoundHackers Track:
HellBoundHackers Patch:
HellBoundHackers Other:
HellBoundHackers Need Help?
Other
Members Online
Total Online: 19
Guests Online: 19
Members Online: 0

Registered Members: 82815
Newest Member: medjiking
Latest Articles
View Thread

HellBound Hackers | Computer General | Programming

Author

PHP cURL help

t0xikc0mputer
Member



Posts: 112
Location: t0xik waste dump
Joined: 07.01.11
Rank:
Newbie
Posted on 29-03-11 02:41
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:

Code
<?php
$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.




Edited by t0xikc0mputer on 29-03-11 02:42
Author

RE: PHP cURL help

spyware
Member



Posts: 4192
Location: The Netherlands
Joined: 14.04.07
Rank:
God
Warn Level: 90
Posted on 29-03-11 08:19
Learn programming basics first, then cURL.



img507.imageshack.us/img507/3580/spynewsig3il1.png
"The chowner of property." - Zeph
[small]
Widespread intellectual and moral docility may be convenient for leaders in the short term,
but it is suicidal for nations in the long term.
- Carl Sagan
“Since the grid is inescapable, what were the earlier lasers about? Does the corridor have a sense of humor?” - Ebert
[/s
http://bitsofspy.net