Jump to content

Recommended Posts

I hope that I am posting this in the correct forum.

 

Since updating PHP to version 5.2.25 I have been receiving the following errors on pages that previously  worked:

 

Warning: include(config.php) [function.include]: failed to open stream: Inappropriate ioctl for device in /var/www/htdocs/bobtest/update_new_res.php on line 3

 

Warning: include() [function.include]: Failed opening 'config.php' for inclusion (include_path='.:/usr/lib/php') in /var/www/htdocs/bobtest/update_new_res.php on line 3

Connected successfully

 

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /var/www/htdocs/bobtest/update_new_res.php on line 51

 

I really don't know where to start with troubleshooting this. I am using  Apache/2.2.6, PHP 5.2.5 ans mysql 5.0.45.

 

Any help will be greatly appriciated. Thanks.

Link to comment
https://forums.phpfreaks.com/topic/83866-errors-since-update-to-php-525/
Share on other sites

Did your old version have a include path in the php.ini?

 

You may have to verify where the included files reside and update your code accordingly.

 

The error on line 51 is because your config.php isn't loading, and it sounds like you don't have any error reporting on to let you know that you are not connecting to your DB.

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.