Question: |
Good afternoon, today I noticed that I have insufficient free space on the disk.Noticed that me with terrible force expands the error_log file , which in a few moments grows to several gigabytes.To date, problems have been reported.According to the log file:[22-Sep-2014 18:23:01 Europe/Moscow] PHP Warning: feof() expects parameter 1 to be resource, boolean given in /home/maksimov/public_html/maksimovgenya.ru/index.php on line 55[22-Sep-2014 18:23:01 Europe/Moscow] PHP Warning: fread() expects parameter 1 to be resource, boolean given in /home/maksimov/public_html/maksimovgenya.ru/index.php on line 55При I have the value INDEX.HTML (not php)? line 55:EMPTY, values and 56дальше 54[22-Sep-2014 18:23:02 Europe/Moscow] PHP Warning: fread() expects parameter 1 to be resource, boolean given in /home/maksimov/public_html/maksimovgenya.ru/index.php on line 119[22-Sep-2014 18:23:02 Europe/Moscow] PHP Warning: feof() expects parameter 1 to be resource, boolean given in /home/maksimov/public_html/maksimovgenya.ru/index.php on line 119При I have the value INDEX.HTML (not php) line 119: Dad Tell me, what error occurred? |
Question: |
Now there is an error, the value is exceeded, input/output over 1 Mb/s |
Answer: |
Hello. I deleted this file. What changes did you do on the website? |
Answer: |
Good evening. Where you can see dannylosito? |
Answer: |
you Have no file /home/maksimov/public_html/maksimovgenya.ru/index.php |
Question: |
I also deleted the file but it appears again.Global changes were not introduced, screwed the script for counting visitors based on IP.Standard script, it works for me on many sites , no problems were observed. |
Answer: |
How have you built a website? |
Question: |
Yes, I know that I have no file index.php since I have a website on html |
Answer: |
What changes have you made to the site before the advent of this error? |
Question: |
renamed file index.html in index.rrdbuild script: $col_zap) array_shift($lines);$lines[] = $date.\"|\".$bot.\"|\".$ip.\"|\".$home.\"|\\r\\n\";file_put_contents($file, $lines);?>he didn`t go, play with its implementation, then noticed poladki not, began to resolve, returned to their seats, removed the changes.the file continued to be created |
Question: |
even test this code:$col_zap) array_shift($lines);$l_cash=implode(\"\\n\",$lines);$l_cash.=date(\"H:i:s d.m\").\"|\".$bot.\"|\".$_SERVER[`REMOTE_ADDR`].\"|\". htmlspecialchars($_SERVER[`REQUEST_URI`]).\"\\n\";ftruncate($fh,0);fwrite($fh,$l_cash);flock($fh,LOCK_UN);fclose($fh);?> |
Answer: |
did You do a pre-backup of the website files? |
Question: |
No did not.Checked for other domains, like no violations found, all works !!!!Look the problem was only in maksimovgenya.ru |
Answer: |
Inform whatever it is the file you edited. |