Login    Forum    Register    Search    FAQ

Board index » Web Hosting » Hosting Account Support




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: cPanel and the new server
 Post Posted: Fri Jan 29, 2010 5:48 pm 
Offline
Member
Member
User avatar

Joined: Sun May 30, 2004 1:11 am
Posts: 60
Location: North Wales
If you are on the new server and you are using
Code:
if(isset($var)){}
be aware that this won't work. You'll have to change your code to something like
Code:
if($_GET['var']){}



Hope this saves you some time.

_________________
"Tell Me & I Forget; Show Me & I Remember; Involve Me & I Understand"

http://www.areart.co.uk


Top 
 Profile  
 
 Post subject: Re: cPanel and the new server
 Post Posted: Sat Jan 30, 2010 11:40 am 
Offline
Site Admin
Site Admin
User avatar

Joined: Sat Feb 09, 2002 11:09 am
Posts: 1155
Location: Penguin Internet Ltd
There are a small number of changes as PHP v5.2 is not fully backwards compatible with v5.1 - this is one of the benefits of using the operating system provided version as we have previously as this ensures that operationally, nothing ever changes on sites once they are set up. Our cPanel platform however will be kept fully up to date with the latest versions of PHP as they are released and so y should be aware of any changes between versions. Generally, if you're running the latest version of any script on your website then the script author should be prepared for this and there will not eb any issues.

Many thanks to Andy for pointing this out as it will likely be of great assistance to anyone else using this particular variable check method.


Top 
 Profile  
 
 Post subject: Re: cPanel and the new server
 Post Posted: Mon Feb 01, 2010 4:26 pm 
Offline
Site Admin
Site Admin

Joined: Mon Oct 09, 2006 4:56 pm
Posts: 35
Location: Penguin Internet Ltd
Another reason for your problems would be because register_globals is currently disabled on the new Cpanel platform and this will be the reason why you need to make these changes - You can get more information on this setting from their site at http://www.php.net/manual/en/security.globals.php which explains this in more detail.


Top 
 Profile  
 
 Post subject: Re: cPanel and the new server
 Post Posted: Tue Feb 02, 2010 11:27 am 
Offline
Member
Member
User avatar

Joined: Sun May 30, 2004 1:11 am
Posts: 60
Location: North Wales
Yes that's correct - But it's not the best idea really to have globals on i believe mainly due to this line

Quote:
This feature has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 6.0.0. Relying on this feature is highly discouraged.


from php.net

_________________
"Tell Me & I Forget; Show Me & I Remember; Involve Me & I Understand"

http://www.areart.co.uk


Top 
 Profile  
 
 Post subject: Re: cPanel and the new server
 Post Posted: Tue Feb 02, 2010 3:35 pm 
Offline
Site Admin
Site Admin
User avatar

Joined: Sat Feb 09, 2002 11:09 am
Posts: 1155
Location: Penguin Internet Ltd
That's one of thje reasons that we've disabled it. The Ensim / Parallels Pro control panel enables register_globals as default, however we adjusted this a few months back to disable it for all newly created accounts and specifically disabled them for all accounts on the cPanel platform as well.


Top 
 Profile  
 
Display posts from previous:  Sort by  
 
Post new topic Reply to topic  [ 5 posts ] 

Board index » Web Hosting » Hosting Account Support


Who is online

Users browsing this forum: No registered users and 1 guest

 
 

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron