johnrobholmes Posted April 10, 2008 Posted April 10, 2008 When will we see PHP5 support from osCommerce? My servers are migrating to v5 and I am looking at changing my store software. As of right now the official OSC webpage only lists v4 as supported. I searched for info on it and came up very empty handed, with exception to a few threads about how people modded the scripts to work with it.
Guest Posted April 10, 2008 Posted April 10, 2008 http://www.oscommerce.com/forums/index.php?showtopic=238778 kind of an answer that will get you moving in the right direction
insaini Posted April 10, 2008 Posted April 10, 2008 I currently operate osCommerce 2.2 on PHP 5.2.5, MySQL 5 and Apache 2 I have no issues although I did have to do a Find/Replace on all $HTTP_POST_VARS, $HTTP_GET_VARS, and the others like COOKIES and SERVER.. and replace them with the new $_POST, $_GET, etc.. The only place where I didnt change them was in the compatibility functions.. my shop is running smooth.. osC 3 i guess its a wait and see..
miller-lite Posted April 10, 2008 Posted April 10, 2008 It's getting frustrating to have a store the way you want it, then having to do an update, then going back an trying to get the store looking and functioning the way it was before the update. Really equates to a lot of time and expense.
insaini Posted April 11, 2008 Posted April 11, 2008 It's getting frustrating to have a store the way you want it, then having to do an update, then going back an trying to get the store looking and functioning the way it was before the update. Really equates to a lot of time and expense. helps if youre a certified developer with extensive knowledge of the web languages :thumbsup:
Guest Posted April 11, 2008 Posted April 11, 2008 The only place where I didnt change them was in the compatibility functions.. how so?
insaini Posted April 11, 2008 Posted April 11, 2008 how so? I believe it was functions/compatibility.php (both catalog and admin) function do_magic_quotes_gpc(&$ar) { if (!is_array($ar)) return false; reset($ar); while (list($key, $value) = each($ar)) { if (is_array($ar[$key])) { do_magic_quotes_gpc($ar[$key]); } else { $ar[$key] = addslashes($value); } } reset($ar); } if (PHP_VERSION >= 4.1) { $HTTP_GET_VARS =& $_GET; $HTTP_POST_VARS =& $_POST; $HTTP_COOKIE_VARS =& $_COOKIE; $HTTP_SESSION_VARS =& $_SESSION; $HTTP_POST_FILES =& $_FILES; $HTTP_SERVER_VARS =& $_SERVER; } else { if (!is_array($HTTP_GET_VARS)) $HTTP_GET_VARS = array(); if (!is_array($HTTP_POST_VARS)) $HTTP_POST_VARS = array(); if (!is_array($HTTP_COOKIE_VARS)) $HTTP_COOKIE_VARS = array(); } Basically keep this function as it is ... I did a complete site wide find/replace for each of those $HTTP_ vars and replaced them with $_ vars .. for some reason on php 5.2.5 $HTTP_ vars simply weren't working.. the function itself is useless now i believe .. but kept it there as a just in case..
Recommended Posts
Archived
This topic is now archived and is closed to further replies.