|
Posted by Chung Leong on 03/23/06 03:01
lorenzogordon@hotmail.com wrote:
> Hi there,
>
> I'd greatly appreciate any insights into the following problem:
>
> I've got PHP running fine on IIS (OS: Server 2003, SP1; IIS: 6.0; PHP:
> 4.3.11).
>
> In PHP, the user uploads a file, which is then processed and the
> contents are inserted into a new file, created in PHP, onto the server.
>
> This bit works fine, the new file created by PHP is correctly stored.
>
> Later, once the user confirms the upload and PHP inserts the contents
> of the file into the DB, the code tries to remove the file created in
> PHP moments earlier, via the unlink() function.
>
> What I see on screen is the following: Permission denied
>
> I have made sure that the permissions for the Internet account that
> created (and is trying to delete) the file have full permissions over
> this particular folder and the files within it. But the user must have
> permission anyway, because they are able to create this file in the
> first place.
>
> I've looked at the permissions for the file in PHP, which read: 0666.
> So everthing *appears* ok to me; I can't see where the permission issue
> is coming from.
>
> Anyone got any ideas?
>
> TIA,
>
> Lorenzo.
Is the file saved in a web-accessible folder? IIS could be indexing the
new file.
Navigation:
[Reply to this message]
|