I need to write a program that runs from a web server, logs into a site that uses .htaccess on a secure server, pass a string to the script on the secure server, spider all the results of the string then input all the results into a MySQL database.

Is there a way for php to log into a web site that uses .htaccess?

Is there a way to write a spider that will spider the results and populate the results into a MySQL database?

Greg

    Of Course!!!

    [man]curl[/man] should get you what you want for the log-in.

    As for the spidering, it's just a matter of reading the output. You can do that with [man]fopen[/man] and [man]fread[/man].

    As for putting it in a mySQL database, google for mySQL tutorials dealing with PHP insertion methods.

    ~Brett

      Write a Reply...