The fact is that everything is ok on a regular host … but the domain interception script is taken over by the server. I ordered a vps, but here when I run root @ 73545: ~ # / usr / bin / php /var/www/drop_catch.php
gives out
PHP Warning: file_get_contents (drops.txt): failed to open stream: No such file or directory in /var/www/drop_catch.php on line 31
In the script itself there is a line $ file = "drops.txt"
; As I understand it, the script cannot get to it … Both files drop_catch.php
and drops.txt
are located in the folder var / www /
the domain name specified in the txt file is correct, though it will be special today in the late afternoon …
Answer 1, authority 100%
If you have the /drop_catch.php file along with the drops.txt file, write it like this –
$ file = dirname (__ FILE __). '/ drops.txt';
Answer 2
Also check the folder permissions. chmod