Jump to content

errors since update to PHP 5.2.5


bowens44

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.