droidus Posted July 7, 2011 Share Posted July 7, 2011 so i have uploaded a php.ini to a directory, but am getting this error: "Warning: mysql_close(): supplied resource is not a valid MySQL-Link resource in /homepages/45/d222365928/htdocs/uploader/users/name/index.php on line 86" and "Warning: filemtime() [function.filemtime]: Stat failed for download movies.txt (errno=2 - No such file or directory) in /homepages/45/d222365928/htdocs/uploader/users/name/index.php on line 249" when i delete it off of the server, it works fine. i talked to 1&1, and they said that it was a coding issue. here is what is in the php.ini file: upload_max_filesize = 10M post_max_size = 10M max_input_time = 120 thanks. Quote Link to comment https://forums.phpfreaks.com/topic/241371-weird-php-errors-with-phpini-file-uploaded/ Share on other sites More sharing options...
PFMaBiSmAd Posted July 7, 2011 Share Posted July 7, 2011 By putting a local php.ini on the server, you are likely causing all the other php settings to take on their default values (the default error_reporting is E_ALL & ~E_NOTICE and display_errors is 1.) You can confirm this by using a .php script with a phpinfo(); statement in it and see what the settings are with and without the local php.ini file being present. Turning on the display_errors setting is causing the two warnings that were always present in your code to be displayed. You should probably find and fix the reason for each of those errors. You should also set display_errors to a 0 in the local php.ini so that php errors are not displayed as the error messages can help a hacker find information that would help him break into your site. Quote Link to comment https://forums.phpfreaks.com/topic/241371-weird-php-errors-with-phpini-file-uploaded/#findComment-1239856 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.