Jump to content

PHP 4.4.9 to PHP 5.0 !!


justlukeyou

Recommended Posts

Hi,

 

I have changed the PHP on my site from PHP 4.4.9 to PHP 5.0 and now I have range of errors coming upon my site but I dont know why.

 

Does anyone know why this, when something work in PHP 4.4.9 but not in PHP 5.0.

 

The problem I have is that my host website is down for maintenance so I cant actually reverse if that is possible.

 

Can anyone advise what this problem is based on?

Link to comment
Share on other sites

There are very few incompatible changes between php4 and php5 (they are listed in the php.net documentation) and most of them are fairly obscure and most people's code won't be affected by them and will work as is under php5, assuming that you were using the current recommend php.ini settings.

 

It is likely that your code was always producing most of the errors you are now seeing, but they were hidden due to the error_reporting/display_errors settings on your old server setup. You should find and fix the cause of each error message, because some of them are probably due to php.ini settings that are now off because the feature is scheduled to be removed from php in an upcoming version.

 

If you want help with any particular error message, post the whole message and the relevant code.

Link to comment
Share on other sites

Brilliant, thanks mate.  This is the error I have through my site.  So hopefully it is just one error.  Its do with the include.  Is there away of using the include on PHP5 which is different to PHP 4.4.9

 

Warning: include() [function.include]: URL file-access is disabled in the server configuration in /homepages/1/d179449150/htdocs/domain/products/living-room-furniture.php on line 12

Warning: include(http://www.domain.co.uk/pagetopgroupproducts.php) [function.include]: failed to open stream: no suitable wrapper could be found in /homepages/1/d179449150/htdocs/domain/products/living-room-furniture.php on line 12

Warning: include() [function.include]: Failed opening 'http://www.domain.co.uk/pagetopgroupproducts.php' for inclusion (include_path='.:/usr/lib/php5') in /homepages/1/d179449150/htdocs/domain/products/living-room-furniture.php on line 12

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.