Join us at IRC!
Understanding is the answer, hatred is the problem, and hackers are the slaves abused and destroyed in the process of peace online - Deshouleres
Friday, May 25, 2012
Navigation
Members Online
Total Online: 33
Web Spiders: 15
Guests Online: 32
Members Online: 1

Registered Members: 70208
Newest Member: andresuran
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:
Elite
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:

<?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.


This sentence is false.

Hahaha no.



Edited by t0xikc0mputer on 29-05-11 9:36

Edited by t0xikc0mputer on 29-03-11 02:42
http://t0xiksite.herobo.com/
Author

RE: PHP cURL help

spyware
Member



Posts: 4190
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.




"The chowner of property." - Zeph
“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
http://bitsofspy.net
Guest
Username

Password

Remember Me


Bookmark This Page
Affiliates
Adverts

 

 

Links
By using, viewing or obtaining any information contained on this site, you agree to the disclaimer.

© HellBound Hackers 2008- 2009. Since 3rd December 2004.