bowens44 Posted December 31, 2007 Share Posted December 31, 2007 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. Quote Link to comment https://forums.phpfreaks.com/topic/83866-errors-since-update-to-php-525/ Share on other sites More sharing options...
revraz Posted December 31, 2007 Share Posted December 31, 2007 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. Quote Link to comment https://forums.phpfreaks.com/topic/83866-errors-since-update-to-php-525/#findComment-426809 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.