Jump to content

Recommended Posts

Hi everbody!

 

I developed a web portal totally in PHP 5, and I had it running on my college server flawlessly. Now, I just hired a hosting (Dreamhost) and I have serious problems to make the code work, it seems like anything that is variable session related it just doesn't work, like the login system, calendar, captcha, etc...

 

So, I upload one phpinfo() at every server, one in my college at the other one at Dreamhost, but I suck so bad that I don't even know where to start looking :S

 

If anyone wanna give it a look and save my ass:

 

College server is at: http://citmalumnes.upc.es/pfc/fcases/info.php

At Dreamhost: http://www.soroll.cat/info.php

 

Is the register_globals thing, maybe the session table? gee I'm totally lost, any tip on this I'll apreciate.

 

Thanks for reading.

 

Link to comment
https://forums.phpfreaks.com/topic/95972-issues-running-php-5-in-my-hosting/
Share on other sites

The session setups are both the same by the looks of it. Try a test script.

 

<?php

  session_start();
  if (!isset($_SESSION['i'])) {
    $_SESSION['i'] = 1;
  } else {
    $_SESSION['i']++;
  }
  echo "The value of \$_SESSION['i'] is {$_SESSION['i']}";

?.

 

Load this up and refresh it a few times. If the value increments, your sessions are working fine. 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.