whit3fir3 Posted November 20, 2009 Share Posted November 20, 2009 I have a script that I am working on and I am trying to get it to work only using PHP. What this script does right now is uses the shell_exec() command to execute a wget command which gets a web page and then the PHP script parses through the page looking for a certain string. This gets a little more complicated as the site I am downloading the page from requires a username and password and I am having to have wget use to --load-cookies option to get it to work correctly. I was looking into using cURL, but I can not seem to figure out how to get it to load cookies from a file so it can use a valid session ID. If I have to stick with wget that is fine, but right now my web server is a Fedora Linux web server and my development box is Windows based, so testing wget is kind of hard. I'd really like to have this work with all PHP code so the pages can run on any web server in the future. Thanks, Whit3fir3 Link to comment https://forums.phpfreaks.com/topic/182252-looking-for-suggestions/ Share on other sites More sharing options...
emopoops Posted November 20, 2009 Share Posted November 20, 2009 first of all, you need to read this: http://curl.haxx.se/docs/manpage.html its a no brainer. pretty self-explanitory Link to comment https://forums.phpfreaks.com/topic/182252-looking-for-suggestions/#findComment-961707 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.