Reply to Re: http does not allow unlinking

Your name:

Reply:


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]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация