Forum Moderators: coopster

Message Too Old, No Replies

Cookies when updating

         

lajkonik86

9:13 pm on Dec 1, 2004 (gmt 0)

10+ Year Member



Heey guys

I need a bit of help. I got a php script updating a website of mine( it gets info of another sites - without stealing anything ). I run it on an apache server on my pc.
But now one of the websites i get the info of has changed. When i tried to recode my php script i ran into a little problem.
They now use some cookie based display method.
And i can't get to the data without using cookies.

Naturally when running my php script no cookies are used so my php script finds the wrong variables on the page.
Is there any way to display the page with the correct set of variables?

[edited by: coopster at 9:17 pm (utc) on Dec. 1, 2004]
[edit reason] removed urls per TOS [webmasterworld.com] [/edit]

jatar_k

9:00 pm on Dec 3, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



maybe take a little look at this
[curl.haxx.se...]

search the page for cookies

lajkonik86

10:35 pm on Dec 3, 2004 (gmt 0)

10+ Year Member



doesn't seem to be very helpfull

jatar_k

11:13 pm on Dec 3, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



are you using curl? or are you just using fopen? or just using include?

lajkonik86

2:05 pm on Dec 4, 2004 (gmt 0)

10+ Year Member



if (@$_GET['filefront'] == "1"){
$handle = fopen("http://latest.files.filefront.com/", "rb");
$contents = '';
while (!feof($handle)) {
$contents .= fread($handle, 8192);
}
fclose($handle);

jatar_k

7:00 pm on Dec 4, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



well, if you want to send and receive cookies you should look into curl [php.net] as well as the link above.

lajkonik86

10:30 pm on Dec 4, 2004 (gmt 0)

10+ Year Member



don't really now how to identify the cookies which where send to my by the site.
Any ideas on this?

Thx for your help(Y)

jatar_k

6:23 am on Dec 6, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



if you are using mozilla you can go to cookie manager and check out if there is anything in there.

lajkonik86

3:19 pm on Dec 6, 2004 (gmt 0)

10+ Year Member



the new mozilla firefox also?

jatar_k

4:31 pm on Dec 6, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



I would think so, I just don't use firefox, I think I have it lying around here somewhere. :)

jezra

7:20 pm on Dec 6, 2004 (gmt 0)

10+ Year Member



To access the cookies in Firefox: from the "Tools" menu, select "Options" to open the Options dialog box. Select "Privacy" on the left side of the dialog box. Expand the cookies option, and click the "view cookies" button.