Jump to content

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.

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.