Problem with mySQL/PHP permissions
Posted: Tue Oct 06, 2009 12:47 pm
Win XP Pro, IIS, MySQL PHP 5.
I create a file from mySQL with ...SELECT ...INTO OUTFILE. Subsequently, I cannot delete it with unlink(). I get Warning: unlink(db_backup/temp.txt): Permission denied in D:\Coding\Web\CC\include\functions.php
Fileperms() on the file return 100666, and the file is reported as is_readable but not is_writable nor is_executable. Permission is also denied for chmod().
I can copy the file, and delete the copied file. The copied file has the same fileperms() and same combination of readable/writable/executable.
Where should I be looking, please?
I create a file from mySQL with ...SELECT ...INTO OUTFILE. Subsequently, I cannot delete it with unlink(). I get Warning: unlink(db_backup/temp.txt): Permission denied in D:\Coding\Web\CC\include\functions.php
Fileperms() on the file return 100666, and the file is reported as is_readable but not is_writable nor is_executable. Permission is also denied for chmod().
I can copy the file, and delete the copied file. The copied file has the same fileperms() and same combination of readable/writable/executable.
Where should I be looking, please?