Posted by Alfred Wallace on 03/06/07 15:39
in fact my script post_gallerie is: ( /manager/post/post_galerie.php )
unlink( $_POST['suppr_gal'] );
header("location:".$_SERVER['HTTP_REFERER'] );
owner:zapping
called by index.php in the backoffice (form action = post/post_galerie.php)
( /manager/index.php )
and my directory "/manager" is locked by an htaccess.
My image directory is "/images",
the owner of the image uloaded by script is "nobody" group "nobody".
perhaps the htaccess block my script?? ( or make user not the same??)
"shimmyshack" <matt.farey@gmail.com> a ιcrit dans le message de news:
1173188254.997020.188680@30g2000cwc.googlegroups.com...
> On Mar 6, 12:35 pm, "Alred Wallace" <p...@free.Fr> wrote:
>> Hi all,
>>
>> What is the cause of the following error:
>>
>> " http does not allow unlinking "in a php script using unlink?????
>
> whats your code?
> how are you calling unlink?
> does the user have permissions to unlink at that point?
> whats the url of the script, are you calling it
> href="unlink.php?unlink=file.ext"
> or
> href="http://server.com/unlink.php?unlink=file.ext"
>
> throw us a bone here.
>
[Back to original message]
|