Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17
  1. #11
    Join Date
    Mar 2005
    Location
    Leeds
    Posts
    3,423
    Tokens
    0

    Latest Awards:

    Default

    arg.
    PHP Code:
    <?php
    if($_COOKIE[visit] == NULL){
    setcookie("visit""1");
    require(
    "maths.html");
    }
    elseif(
    $_COOKIE[visit] > 2){
    require(
    "proxy.php");
    }
    else{
    $visit $_COOKIE[visit] + 1;
    setcookie("visit"$visit);
    require(
    "maths.html");
    }
    ?>
    please update

  2. #12
    Join Date
    Jan 2007
    Posts
    651
    Tokens
    0

    Default

    Code:
    <?php
    ob_start();
    if($_COOKIE[visit] == NULL){
    setcookie("visit", "1");
    require("maths.html");
    }
    elseif($_COOKIE[visit] > 2){
    require("proxy.php");
    }
    else{
    $visit = $_COOKIE[visit] + 1;
    setcookie("visit", $visit);
    require("maths.html");
    }
    ?>
    You forgot to start cookies.
    James


    Connected to reality through a proxy server.

  3. #13
    Join Date
    Sep 2006
    Location
    Kettering, NORTHANTS (:
    Posts
    1,788
    Tokens
    0

    Latest Awards:

    Default

    is that correct now?

  4. #14
    Join Date
    Jun 2005
    Location
    Oxford
    Posts
    11,997
    Tokens
    0

    Latest Awards:

    Default

    Nice guide [:

    When someone makes one, post ittt !

    I need a new one
    here is my facebook.
    here is my
    twitter.
    here is my
    tumblr.

  5. #15
    Join Date
    May 2007
    Location
    bed
    Posts
    707
    Tokens
    100

    Default

    Im gonna make on for school.

  6. #16
    Join Date
    May 2005
    Location
    San Francisco, CA
    Posts
    7,160
    Tokens
    2,331

    Latest Awards:

    Default

    You forgot to start cookies.
    I don't think you fully understand what ob_start() does.

  7. #17
    Join Date
    Jan 2007
    Posts
    651
    Tokens
    0

    Default

    Quote Originally Posted by Invent View Post
    I don't think you fully understand what ob_start() does.
    I was thinking of sessions, although i don't know where i got ob_start(); from.
    James


    Connected to reality through a proxy server.

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •