January 11th, 2001, 01:42 AM
Re: Cookies / URL Variables
U r Site is Very well. I would Like Learn Cookies in Php
February 1st, 2001, 12:44 PM
full program zippped somewhere??
I thought the first time I saw this article there was a version of it somewhere on the site all set versus cuting and pasting the pieces together? Can someone help me find this or I am thinking of another...
February 19th, 2001, 02:23 PM
can't get cookies back
I can set cookies fine (i have checked on the hard drive and it is present), but for some reason it doesn't appear to be passing the cookie name back as a variable to php.
This simple check fails :
isset ($uid) or DIE("Can't find cookie");
i have tried this in IE5.5 and netscape 4.72 with no luck.
neither works, any suggestions/ideas?
April 15th, 2001, 02:42 PM
So where is the tutorial
After searching around, I finally decided to see what clicking on the "grab headlines" link did. What this has to do with setting PHP cookies is anybody's guess, but it did take me to some Perl script.
Now the last thing I want to do is tangle with Perl, which is uglier than a wort hog. But I slogged thru it, only to find MySQL ahead, the database with the DOS like interface. Great. Just great.
Finally I stumbled into some gibberish about "if the user has a cookie set." Huh, I thought I was supposed to be setting these things?? And what if the user has disabled all cookies?
I never did find out what I really wanted to know, which was how to set a cookie so I can keep variables from one page to the next. Everybody out there has told me that cookies are the best thing since instant coffee. But nobody seems to know how to use them, including this article.
So I give up. It's back to hidden variables and temp files. At least those work.
would somebody who wrote this damn article post a link to that script. I have searched high and low for that and cant find it. The creator jcline posted it at another site and I am not allowed access to download it there.
Re: password security
Well, https is the answer :-)
August 26th, 2001, 04:59 AM
Hey, great site
Hey, just letting you know that your tutorial has been extremely helpful and enlightening.
Thanks so much,
October 8th, 2001, 10:22 PM
You can download it here:
October 8th, 2001, 10:24 PM
Get it here:
November 22nd, 2001, 05:26 PM
Yes there is an important bug in this code, when someone wants to register but the login is already picked: IF IT DOESN'T HIT THE BACK BUTTON AND GOES TO INDEX.PHP3 DIRECTLY WILL BE A REGISTERED MEMBER!!!!????
Of couser see the code again "newuser.php3":
<? SetCookie("visitor",$login,time()+864000); ?>
mysql_connect("localhost", "username", "pass") or DIE
It is already cookied!??!?!? so can go to index.php3 like a member one! If someone wants a fix code mail me. Sorry about my english, i'm catalan like Pau Gasol xd.
January 3rd, 2002, 10:22 PM
Flat File Database and PHP User Personalized System??
Have you got a tutorial on that and the one I read for mysql was good but I need one for using a Flat File Databast
February 15th, 2002, 05:52 PM
Re: Re: Cookies / URL Variables
March 12th, 2002, 05:59 PM
Re: Re: php version of headline grabber
I think there are 3 "standallone" functions, it means you must close the braces in the first fuction. The right way to write::
// convert agelimit to seconds
$agelimit *= 60;
$timestamp = filectime(basename($rdf));
$age = time() - $timestamp;
if($age > $agelimit)
$fd = fopen($rdf,"r");
$buf = fread($fd,32000); // // note 32K limit on rdf size
And then write the other functions as is!
October 10th, 2002, 11:44 PM
Re: Why do my cookies not work ??? (html formatted)
I have the same problem!!!! the cookies are not getting write!!! i dont know what could it be..if i found something on the net i`ll let you know.
Name: Carlos Vásquez Sáez.