1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

A session error please HELP !

Discussion in 'PHP' started by MistreX, Aug 13, 2011.

  1. #1
    I have just bought a hosting plan from startlogic.com and when I tryed a PHP code with session , I am getting errors
    here is the code
    
    <?php
    session_start();
    $_SESSION["dev"] = "I learn Dev" ;
    echo $_SESSION["dev"] ;
    ?>
    
    Code (markup):
    here is the error

    Please Help me !
     
    MistreX, Aug 13, 2011 IP
  2. ssmm987

    ssmm987 Member

    Messages:
    180
    Likes Received:
    4
    Best Answers:
    3
    Trophy Points:
    43
    #2
    looks like a chmod error. You don't seem to have permission to create session files.
     
    ssmm987, Aug 13, 2011 IP
  3. MistreX

    MistreX Well-Known Member

    Messages:
    109
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    121
    #3
    Have I to contact support or what ?
     
    MistreX, Aug 13, 2011 IP
  4. Andre91

    Andre91 Peon

    Messages:
    197
    Likes Received:
    1
    Best Answers:
    1
    Trophy Points:
    0
    #4
    Andre91, Aug 13, 2011 IP
  5. MistreX

    MistreX Well-Known Member

    Messages:
    109
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    121
    #5
    Thank You friends , I contacted the support and they solved the problem
     
    MistreX, Aug 13, 2011 IP
  6. srisen2

    srisen2 Peon

    Messages:
    359
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #6
    What control panel are you running your system on you might want to check into something like cPanel or Plesk these come preconfigured to have php running properly
     
    srisen2, Aug 13, 2011 IP
  7. JohnnySchultz

    JohnnySchultz Peon

    Messages:
    277
    Likes Received:
    4
    Best Answers:
    7
    Trophy Points:
    0
    #7
    since it's inside your public_html directory, you can go to the public_html/cgi-bin/tmp directory by using your ftp..
    check the directory's write permission, if you are not able to change it you can contact your host's support
     
    JohnnySchultz, Aug 15, 2011 IP