using fopen I always get FALSE when I know the file exists, I have looked over my code but cannot find a problem, maybe a configuration setting?
$fd=@fopen($_GET['auth_file'],"r");
if ($fd==FALSE) {
echo "Error: fopen() failed opening". $_GET['auth_file'];
} else { ...
I always get failed opening. In the address bar I have
script.php?auth_file=pwd.txt
I know pwd.txt is inside the same folder the script.php is in and the web server is configured to show text\plain for any txt files
Can you guide me to what might be the problem, my code, php.ini or a web server config? My file system is FAT32 and does not have any file permisions.