I have to write a script that logs into a web site that is on port 443 (https), uses .htaccess and is on a remote server from a script that is on port 80 on a local server.
Would it be easier and is there a way to run the script on port 443?
Once the script logs into the web site using .htaccess I need to pass a string to the remote site through a browser which will then query the remote sites database and display everything that is held in that database on a page on the remote site. I need to be able to GET the results from that query and insert it into a database on the local system.
I have some questions:
1) I need to log into .htaccess on a remote secure server using a php script on the local server, how do I do that?
2) When I pass the string to the remote secure server how do I get all the results from that string?
3) I have to get distinct information from off of a page using either CURL or fread, etc.
On the html page there are labels like,
NAME: (persons name)
PHONE: (persons phone) , etc.
I want to the the information such as the (persons name) or (phone) and then put it in my database. I might have to spider the site for multiple scripts, unless I can find one script and figure out how to get all the info by only calling one of the scripts, which look like they are written in ASP.NET.
What would be the best php function or set of functions to use? Keep in mind I am having to log into a site using php to get the information on a daily basis.
I have to get very large amounts of information and insert it into my clients database.