Jump to content

weird php errors with php.ini file uploaded...


droidus

Recommended Posts

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.

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.

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.