homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

URGENT HELP! - oscommerce and 4.4.5 support
my host has upgraded to PHP 4.4.5 and broken my site

 8:24 am on Mar 22, 2007 (gmt 0)

The site is offline! Does anyone know what i need to do to get the site up and running under this version?





 10:00 am on Mar 22, 2007 (gmt 0)

They may have taken the opportunity to trun register_globals off. If that's it, as a quick fix to get back online you can do this at the top of each script:
foreach($_POST as $vbl => $val)
$$vbl = $val;

Then repeat as necessary for $_GET, $_SERVER, $_COOKIE...
Afterward, you can start going through each script and fixing them.


 11:00 am on Mar 22, 2007 (gmt 0)

Also remember to check your error logs as it will provide some information as to what is going on so you can make necessary changes to configuration settings, etc...


 11:04 am on Mar 22, 2007 (gmt 0)

The webhost has said php safe mode has also been turned on.

Any ideas what oscommerce files / config or otherwise i need to make these changes to?

thanks for your posts



 11:38 am on Mar 22, 2007 (gmt 0)

There are a few fixes about it available all over the place.

Years ago I used it

do a search with global and oscomm
also the fix is somewhere discussed on their forum.

search with exactly "oscommerce register globals patch"


 12:13 pm on Mar 22, 2007 (gmt 0)

hi, so are we saying this is 100% to do with the register_globals? i see there is a contrib available for register globals, i just want to be sure that since my host has upgraded to PHP 4.4.5 applying the register global fix will help me?

Is there anyone with 1st hand knowledge of this?

excuse my ignorance but how long has PHP version 4.4.5 been around?


 1:29 pm on Mar 22, 2007 (gmt 0)

do you know what version of php they upgraded from?

you could check the docs on the version of oscommerce you use to see if it relies on register_globals being on.

you could pick through the code to find out but that may take forever.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved