#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Location
    Pune, Maharashtra, India
    Posts
    4
    Rep Power
    0
    Hi,
    I have php 4 installed and i also have sessions enabled. So when i type this:
    <?php
    // Session test

    session_start(void);

    session_register('counter');

    //$counter = 2;

    $counter++;

    echo ("You have visited the page $counter times.");
    ?>

    Nothing shows up when i run the page. But when i comment session_start and session_register i get the other code stuff. ie code other than what i have written above.
    Why is this happening??
    Please help,
    Derek


    ------------------
    Programming at it's best with Derek Halstead
  2. #2
  3. .Net Developer
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2000
    Location
    London
    Posts
    987
    Rep Power
    15
    Read the following article.
    http://www.phpbuilder.com/columns/mattias20000312.php3

    ------------------
    SR -
    webshiju.com

    "The fear of the LORD is the beginning of knowledge..."

Similar Threads

  1. Hey guys - help with link lists
    By chrismcg in forum HTML Programming
    Replies: 1
    Last Post: December 19th, 2003, 10:56 PM
  2. Hey guys - help with link lists
    By chrismcg in forum PHP Development
    Replies: 0
    Last Post: December 19th, 2003, 05:41 PM
  3. Replies: 9
    Last Post: November 21st, 2003, 11:59 AM
  4. Need help with FLASH MX guys!!
    By Vlado in forum Flash Help
    Replies: 0
    Last Post: October 15th, 2003, 10:35 AM
  5. You guys play any wargames?
    By infamous41md in forum Dev Shed Lounge
    Replies: 2
    Last Post: June 16th, 2003, 03:24 PM

IMN logo majestic logo threadwatch logo seochat tools logo