PDA

View Full Version : [HHN] Server Maintenance


Zidane007nl
03-06-2006, 01:09
PCextreme, my hosting company, has just upgraded their webservers to Apache 2, PHP5 and MySQL5. Due to the upgrade, some scripts began to not function anymore. I'll try and look for a fix for the scripts.

Edit: Scripts fixed, thanks goes to Belazor.

Belazor
03-06-2006, 11:14
jävlar XD
Most hosting companies are too scared to upgrade to mysql4 XD
If you want, I can have a look at them scripts unless theres like official patches on their websites or something. I do all my developing on apache2.2, php5.1 and mysql5.0 :p

Zidane007nl
03-06-2006, 13:03
Thanks Belazor for fixing the scripts. I still need to read the PHP5 book I bought last year...

Belazor
03-06-2006, 18:00
It had nothing to do with the transition to php5, per se. In theory, your host could have caused the same problems on php3.
It was a php.ini change, more specifically register_globals is now set to Off, which makes it so scripts can't take any parameters (?=, &=) without using either $_REQUEST, $_GET or $_POST to access those parameters.
Your scripts were assuming register_globals to On, obviously.

I would advise you contact your host and learn if there's any specific reason as to why they turned it off. It is a slight security risk, because technically it could in some instances be possible to override important variables by having it set to on, but most hosts still got it enabled for compatability reasons.

alexanderpas
04-06-2006, 02:15
i prefer it off ;) makes it easier for me to program ;) and about the security... depends on your application...

bad coding ;)
<?
function checkstatus() {
/*difficult user-check*/
}
function admincp(){
/*admincp controls*/
}
if (checkstatus()) {
$admin = TRUE;
}
if ($admin) {
admincp();
}
?>

Zidane007nl
04-06-2006, 14:15
I received over 300 emails today and yesterday about database errors. :(
Most were errors like "Can't connect to the database". Also I had to repair all the databases since some were crashed...

Hope the errors are gone now.

alexanderpas
04-06-2006, 18:44
seems like a lot of people visit HHN ;)