I'm using a simple fopen statement to read a text file, but I get:
fopen(http://www.domain.nl/cees.txt): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
If I call http://www.domain.nl/cees.txt in my browser, the content displays without any problem, so the file exists (right?)....
I also tried cUrl, but it also returns a 404.
If I try my php-script on another host, it works just fine, so I figured I'd compare the settings for both hosts, but they are identical with allow_url_fopen On in both cases.
There's no htaccess and permissions on rootfolder are 755.
I'm pulling my hair out over this. Anyone has any suggestion?
USER_AGENTis not set and eventually an error is generated as the systems (correctly?) guessed that it has not been called via a browser/human. - Jan