Retrieving cookies with php same as in java

Links for php scripts

Moderators: macek, egami, gesf

New php-forum User
New php-forum User
Posts: 3
Joined: Sun Aug 26, 2007 7:43 am

Retrieving cookies with php same as in java

Postby chrishawkins » Sun Aug 26, 2007 8:00 am

Is it possible to pull the cookies of a viewers browser when you are using a php script to track them on your site and return the info to a stats page, just as it would be done using javascript?

If it sounds like I don't know what I am talking about, it's because I don't. I am a novice at best. I am running a stats script on my server and using it to track the stats of individuals that view my site page that I have the code snippet on that returns the info back to my stats page. I have done this my embedding the url to the .swf file that pulls that stats in my sites page. Well, it's not an actual .swf file. I have the .htaccess file set like this

Code: Select all

RewriteEngine on
RewriteRule image.swf image.php

and inside the image.php file is this

Code: Select all

$lvc_include_dir = 'include/';


I am wondering if it is possible to retrieve the cookies as well using php scripting... Either the cookies of my site or of another site that are saved to the viewers computer...

Please let me know if this is at all possible..


Return to “PHP Scripts”

Who is online

Users browsing this forum: No registered users and 1 guest