Forum Moderators: coopster

Message Too Old, No Replies

sending a cookie to a server

         

partha

11:18 pm on Mar 13, 2005 (gmt 0)

10+ Year Member



I want to have a box on my personal portal that shows me if there are any new replies to any of my threads on a certain web forum.

So I'm using file_get_contents() to take the output of the "my threads" page and parse through it for the info I want to extract.

The only trouble is that it doesn't know who I am (doesn't think I'm logged in) when I have php access the page. When *I* access the page in the regular way through a browser, my browser sends the server a cookie automatically to identify me.

So is there any way I can have php identify me with a cookie when it goes to that page to get the contents?

moheybee

12:44 am on Mar 14, 2005 (gmt 0)

10+ Year Member



Someone else can correct me if I am wrong, but I think you'll have to use cURL (http://curl.haxx.se/)

Here is an example:
[curl.haxx.se...]

From the cURL PHP examples page:
[curl.haxx.se...]

Turbonutter

2:50 pm on Mar 14, 2005 (gmt 0)

10+ Year Member



If you don't have access to cURL you'll have to manually construct an HTTP request and get the data with sockets.

partha

9:23 pm on Apr 3, 2005 (gmt 0)

10+ Year Member



any other easier ideas of how to do this?

<snipped url> I just want to Somehow get the list of last 20 topics I posted in on the "my forums" page into a PHP app so I can do some more interesting things with them than fusetalk does.

[edited by: coopster at 11:25 am (utc) on April 4, 2005]
[edit reason] removed url per TOS [webmasterworld.com] [/edit]