Jump to content

Looking for Suggestions....


whit3fir3

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.