Webmaster Forum Rules | Posting Guide | Contact Us | Testimonials | Contributing Geek Program | Advertise on Geek/Talk
Welcome to the GeekTalk Webmaster Discussion Forums from GeekVillage.com

Click Here To Register. It's Free!

Go Back   geek/talk: Signature-free discourse for serious web publishers > YOUR CREATION: Building & Maintaining A Web Site > Web Development - Programming / Coding
User Name
Password
Register FAQ Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 01-14-2002, 06:20 PM   #1
Jeff Booth
Registered User
 
Join Date: Nov 2000
Location: Eaton, CO, USA
Posts: 83
Default PHP driving me CRAZY. Halp!

Ok, I need to get some data from a site that has cookies, so I cannot use FOpen because cookies crash it, so I am planning on using Lynx from the Linux Shell to get the data. Here is a sample of my code (with an example url)..

Now could anyone tell me why this isn't working and returning the options (below) instead of the desired page?

$theurl2 = "-accept_all_cookies -dump http://www.nukewinter.com";
$a1 = shell_exec("lynx " . escapeshellarg($theurl2));
echo $a1;

Ahh, someone please tell me why the hell that is returning:

-dump dump the first file to stdout and exit
-editor=EDITOR enable edit mode with specified editor
-emacskeys enable emacs-like key movement (off)
-enable_scrollback
toggles compatibility with comm programs' scrollback
keys (may be incompatible with some curses packages) (off)
-error_file=FILE write the HTTP status code here
-force_empty_hrefless_a force HREF-less 'A' elements to be empty (close them as soon as they are seen) (off)
-force_html forces the first document to be interpreted as HTML (off)
-force_secure toggles forcing of the secure flag for SSL cookies (off)
-forms_options toggles forms-based vs old-style options menu (on)
-from toggle transmission of From headers (on)
-ftp disable ftp access (off)
-get_data user data for get forms, read from stdin,
terminated by '---' on a line
-head send a HEAD request (off)
-help print this usage message
-hiddenlinks=[option]
hidden links: options are merge, listonly, or ignore
-historical toggles use of '>' or '-->' as a terminator for comments (off)
-homepage=URL set homepage separate from start page
-image_links toggles inclusion of links for all images (off)
-index=URL set the default index file to URL
-ismap toggles inclusion of ISMAP link

Why the hell is it returning the options instead of the page i specified.. I cannot find any reason why it is doing this! Halp me!
Jeff Booth is offline   Reply With Quote
Old 01-17-2002, 04:27 PM   #2
Rizz
Registered User
 
Rizz's Avatar
 
Join Date: Nov 2001
Location: Wales, UK
Posts: 10
Default

Have you tried the Snoopy class, for PHP. Its got all the stuff you need to grab web pages, session data etc etc. Take a look on sourceforge for it. Its called Snoopy


Good luck
Rizz is offline   Reply With Quote
Old 01-17-2002, 04:42 PM   #3
Jeff Booth
Registered User
 
Join Date: Nov 2000
Location: Eaton, CO, USA
Posts: 83
Default

Had never heard of it before, I'll give it a look see =)

Btw I got the code working above, just so nobody replies if they see this message in the future.
Jeff Booth is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Perl vs PHP? ccole Web Design and Webmaster Issues 4 09-14-2016 12:54 AM
Coding a PHP fileboard truelight Web Design and Webmaster Issues 1 12-15-2000 11:05 AM
GoTo driving me CRAZY?! No Suggestions! OC Marketing Your Website Online 5 10-14-2000 11:11 PM
PHP question Tyme Web Design and Webmaster Issues 4 08-04-2000 03:39 PM
PHP a good choice for me? Kurbin Web Design and Webmaster Issues 4 07-16-2000 02:40 AM

Please support our advertisers. They ensure our survival.

All times are GMT -5. The time now is 01:28 PM.


GeekVillage.com is copyright © 1998-2015 Curiosity Cave - Science gifts for clever kids. All rights reserved.
Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.