Reputation: 448
I am new to php so still figuring things out. And I have two scripts one is getting datas from other but when I try to get it using file_get_contents()
it returns NULL
and I see the following in my error.log:
[php7:warn] [pid 5524:tid 852] [client ::1:8677] PHP Warning: file_get_contents(usr.php?getinfobymd5=5f85783ad40df90c6485a3a176c41612):
failed to open stream: No error in A:\Apache\www\index.php on line 6
How can I fix that and what 'No error' error means??
Also I tried to change permissions allowing everybody to execute, write the file; And setting allow_url_fopen
to On.
Upvotes: 2
Views: 3010
Reputation: 834
Try placing the filename in quotes:
file_get_contents('usr.php');
Upvotes: 1