Jump to content

Issues running PHP 5 in my hosting


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. 

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.