#91
  1. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    Re: Cookies / URL Variables


    Sir,

    U r Site is Very well. I would Like Learn Cookies in Php

    Thank U

    By

    Hari

  2. #92
  3. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    full program zippped somewhere??


    Hi everyone,
    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...

  4. #93
  5. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    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 :

    if (isset($uid))

    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?
  6. #94
  7. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    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.

  8. #95
  9. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    Re: webget.pl


    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.
  10. #96
  11. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    Re: GOT-IT


    i get that too...DAMN
  12. #97
  13. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    Re: password security


    Well, https is the answer :-)
  14. #98
  15. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    Hey, great site


    Hey, just letting you know that your tutorial has been extremely helpful and enlightening.

    Thanks so much,
    Justin
  16. #99
  17. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    Re: webget.pl


    You can download it here:
    <br />
    http://www.crh.noaa.gov/arx/webget.tar
  18. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    Re: GOT-IT


    Get it here:
    http://www.crh.noaa.gov/arx/webget.tar
  19. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    BUG!!


    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); ?>
    <HTML>
    <HEAD><TITLE>Thanks!</TITLE></HEAD>
    <BODY>
    <?
    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.


  20. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    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
    thanks

    Sam Colebatch
    sam@samcolebatch.com
    http://www.samcolebatch.com
  21. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    Re: Re: Cookies / URL Variables


    a
  22. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    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::

    function getrdf($rdf,$agelimit)
    {
    // 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
    fclose($fd);
    }
    }

    And then write the other functions as is!

    yours sincerely
  23. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    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.
    Mail: carlos@magallaneslibre.com

IMN logo majestic logo threadwatch logo seochat tools logo