aelalfy1989 Posted January 16, 2010 Posted January 16, 2010 Hi everyone, I'm switching web hosting to Godaddy for my oscommerce website. I'm running into something weird here. I went to my new hosting created a database and restored using my backup (from my other hosting). Then I went and ftp'ed the files to my server and set up my website. It linked properly I didn't get an error because I fixed my configure.php file correctly. But my style looked horrible. It looked like the stylesheet wouldn't get applied or something. So I called Godaddy adn they said OScommerce is compatible with php 4.3 not 5.x I'm like huh? I have it installed with my other hosting on php 5.2? my question is, is php 5.x better than 4.x? and how do I get it to work? I can reupload the files to my website again for you guys to view. my new hosting domain is just a trial and can be found at. www.dare2review.com my old website is www.bestmacdiscounts.com Thanks AE Thank you in advance, AE
♥FWR Media Posted January 16, 2010 Posted January 16, 2010 Hi everyone, I'm switching web hosting to Godaddy for my oscommerce website. I'm running into something weird here. I went to my new hosting created a database and restored using my backup (from my other hosting). Then I went and ftp'ed the files to my server and set up my website. It linked properly I didn't get an error because I fixed my configure.php file correctly. But my style looked horrible. It looked like the stylesheet wouldn't get applied or something. So I called Godaddy adn they said OScommerce is compatible with php 4.3 not 5.x I'm like huh? I have it installed with my other hosting on php 5.2? my question is, is php 5.x better than 4.x? and how do I get it to work? I can reupload the files to my website again for you guys to view. my new hosting domain is just a trial and can be found at. www.dare2review.com my old website is www.bestmacdiscounts.com Thanks AE www.dare2review.com is not accessable. PHP 4 should not be used in any way or form. All fixes including security fixes are no longer supported. PHP 5.2 has been around since 2006, I'd recommend PHP 5.2.12 currently. Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work.
MrPhil Posted January 16, 2010 Posted January 16, 2010 osCommerce 2.2 RC2a should be used, so that you have all the changes needed to work through PHP 5.2. Starting with PHP 5.3, there are a number of "deprecated" functions which will trigger warnings from PHP. These functions are being removed from PHP as of PHP 6.0, so you should get to work on making the changes described in http://www.oscommerce.com/forums/topic/341737-function-ereg-replace-is-deprecated/page__p__1434612__hl__eregi%20deprecated__fromsearch__1entry1447311 and http://www.oscommerce.com/forums/topic/342525-page-script-error/page__p__1430745entry1430745 . There are other items that need upgrading or fixing to work in PHP 5: http://www.oscommerce.com/forums/index.php?showtopic=346007 and http://www.oscommerce.com/forums/index.php?showtopic=168369 . Finally, if your new hosting is using MySQL version 5, there are code changes needed for that: http://www.oscommerce.com/forums/topic/335136-osc-and-mysql-5-1054-errors . Yes, PHP 5 is better than PHP 4, simply because it is currently supported, and PHP 4 is unsupported. Unfortunately, it is not perfectly upward compatible, so some code changes are needed. As for the stylesheet (CSS) not being found, it's possible that something is wrong in your configuration. Check to see if <base href="dir"> is pointing to the base (root) URL of your store. With PHP 5, you may also need to update your PHP include_path to include the base directory of your store.
aelalfy1989 Posted January 17, 2010 Author Posted January 17, 2010 osCommerce 2.2 RC2a should be used, so that you have all the changes needed to work through PHP 5.2. Starting with PHP 5.3, there are a number of "deprecated" functions which will trigger warnings from PHP. These functions are being removed from PHP as of PHP 6.0, so you should get to work on making the changes described in http://www.oscommerce.com/forums/topic/341737-function-ereg-replace-is-deprecated/page__p__1434612__hl__eregi%20deprecated__fromsearch__1entry1447311 and http://www.oscommerce.com/forums/topic/342525-page-script-error/page__p__1430745entry1430745 . There are other items that need upgrading or fixing to work in PHP 5: http://www.oscommerce.com/forums/index.php?showtopic=346007 and http://www.oscommerce.com/forums/index.php?showtopic=168369 . Finally, if your new hosting is using MySQL version 5, there are code changes needed for that: http://www.oscommerce.com/forums/topic/335136-osc-and-mysql-5-1054-errors . Yes, PHP 5 is better than PHP 4, simply because it is currently supported, and PHP 4 is unsupported. Unfortunately, it is not perfectly upward compatible, so some code changes are needed. As for the stylesheet (CSS) not being found, it's possible that something is wrong in your configuration. Check to see if <base href="dir"> is pointing to the base (root) URL of your store. With PHP 5, you may also need to update your PHP include_path to include the base directory of your store. Hey, I got it to work perfectly. it was the way i installed my catalog folder was the issue iguess. anyways works perfect thanks for the help. Thank you in advance, AE
Recommended Posts
Archived
This topic is now archived and is closed to further replies.