PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I would suggest using file_exists() rather than @file.
ex: if(file_exists('your_file_here.ext'))
Useful function, and more efficient.
and in reponse to your original question, without some details as to the hosting partners, what version of php, what OS, etc., we cannot really figure things out.
This also works on one server and not the other. The one it does NOT work on is a :
Operating System Linux
Kernel Version 2.4.20-grsec
Last Reboot 12days, 5:44min
Apache Version 1.3.27 (Unix)
Perl Version 5.006001
PHP Version 4.3.1
MySQL Version 3.23.54
cPanel Version 6.0.0-STABLE
cPanel Build 109