Did you put slash? May be your user has different drive mappings and drive p doesn't exist? I'm sorry, I have to run now...
Also why do you have your files on the root of the drive? Should they be in some folder and then you can check with directory()?
If it's not broken, fix it until it is.
My Blog