PHP CURL Help please

Started on the old forum in October 2010 · view the original in the archive · old links redirect here

6 replies · 497 views · started 16 years ago · 1 min read

4 participants
Guest #1

Im trying to grab a page with curl and then i try make the links post data back to the script when you click the link so you can browse the site but when i use ?page=http://example.com/nextpage.php the page just comes up blank any ideas?

something else Fellow · 2,296 posts #2

put:

error_reporting  (E_ALL);
ini_set ('display_errors', true);

on the top of your page to find your error 😛

Guest #4

i think its because the url i am scanning after the first page is trying to keep the session any ideas on how to do that properly ? i have looked at some tutorials but i cant seem to get it right

Guest #5

curl_setopt($ch, CURLOPT_COOKIEJAR, './cookies.txt');

i use this curl function but when i check for the file it doesnt exist ? any suggestions ?

kiss Senior · 294 posts #6

Post your curl code here and i will give you an answer or try with file_get_contents, some sites support to grab informations with curl other with file_get_contents 😉

www.inbuzunar.mobi -Your mobile portal pocket

ANGELUS Junior · 17 posts #7

use Snoopy.class it will be easier to grab remote web pages.

wow, ive been missing this site for more than 2 years lol

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close