Forum Moderators: phranque

Message Too Old, No Replies

Having Apache/PHP recognize logins

My computer is logged into a website, but Apache isn't

         

Kadence

5:47 pm on Sep 28, 2004 (gmt 0)

10+ Year Member



I want to archive topics at some a website's forums, where you have to log in to view them (not this website). I'm using a PHP script from my own computer, via Apache. But even though I'm logged in with my computer, I guess Apache isn't, and when I try to use PHP to download the forum pages (I want to automate, since these threads have 50 pages), it doesn't work because it isn't logged in.

Anyone know how I can have Apache/PHP recognize the login on my computer?

jatar_k

6:56 pm on Sep 28, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Thing is, you will have to get the script itself logged in.

Often cURL [curl.haxx.se] is used for things like this. It is difficult to say the best method of preceding. If the forum did their homework you won't be able to get past the login very easily.

Is it a large number of threads? If not, I would just save them individually.

Kadence

8:10 pm on Sep 28, 2004 (gmt 0)

10+ Year Member



Is it a large number of threads? If not, I would just save them individually.

It's a very large number of threads. They're typically filled every day, and the forums purge them a few days after they reach 50 pages. I keep them on my web site so people can still read them. But I was hoping to automate the process.

Is cURL really necessary? There's gotta be some way to automatically download them onto my computer, since the computer is already logged in, right? :(