marcis Posted October 5, 2009 Report Share Posted October 5, 2009 direktorss, tu ierakstus arī palasi vai vienkārši izdomā - "o, būtu kruta te kaut ko ierakstīt" ? Quote Link to comment Share on other sites More sharing options...
ziedinjsh Posted October 13, 2009 Author Report Share Posted October 13, 2009 Tā tad.. uztaisīju šādi: delete links ir: <a href='delete.php?file=$file'><img src='misc/delete.png'></a> delete.php ir šāds: <?php $dir = 'upload/uploads'; unlink($dir.'/'.$_GET['file']); ?> uzspiežot uz linka man parāda worning: Warning: unlink(upload/uploads/Cary_Brothers_-_Ride__Blake_Jarrell_Remix_.mp3) [function.unlink]: Permission denied in /home/produc/public_html/mp3/test/delete.php on line 3 Kas tur nav riktīgi un vai šo var ielikt vienā failā bez delete.php? Quote Link to comment Share on other sites More sharing options...
marcis Posted October 13, 2009 Report Share Posted October 13, 2009 http://en.wikipedia.org/wiki/File_system_permissions Quote Link to comment Share on other sites More sharing options...
ziedinjsh Posted October 13, 2009 Author Report Share Posted October 13, 2009 un kas tu man būtu jāredz? Quote Link to comment Share on other sites More sharing options...
briedis Posted October 13, 2009 Report Share Posted October 13, 2009 un kas tu man būtu jāredz? Tev ar angļu valodu galīgi švaki? http://php.net/manual/en/function.chmod.php Warning: unlink(upload/uploads/Cary_Brothers_-_Ride__Blake_Jarrell_Remix_.mp3) [function.unlink]: Permission denied in /home/produc/public_html/mp3/test/delete.php on line 3 Quote Link to comment Share on other sites More sharing options...
ziedinjsh Posted October 13, 2009 Author Report Share Posted October 13, 2009 paprovēju šādi.. vienlaga neiet: $dir = 'upload/uploads'; chmod($dir.'/'.$_GET['file'], 0644); unlink($dir.'/'.$_GET['file']); Warning: chmod() [function.chmod]: Operation not permitted in /home/produc/public_html/mp3/test/delete.php on line 3 Warning: unlink(/Bryan Adams -Please Forgive Me.mp3) [function.unlink]: No such file or directory in /home/produc/public_html/mp3/test/delete.php on line 4 Quote Link to comment Share on other sites More sharing options...
briedis Posted October 13, 2009 Report Share Posted October 13, 2009 Tu to dari lokāli vai uz servera? Quote Link to comment Share on other sites More sharing options...
ziedinjsh Posted October 13, 2009 Author Report Share Posted October 13, 2009 (edited) uz servera.. folderis kur atrodas faili ir 0777 kur? ir problēma\ .. tā.. tagad fails izdzēsās, bet parādījās: Warning: chmod() [function.chmod]: Operation not permitted in /home/produc/public_html/mp3/test/delete.php on line 3 Edited October 13, 2009 by ziedinjsh Quote Link to comment Share on other sites More sharing options...
xPtv45z Posted October 13, 2009 Report Share Posted October 13, 2009 Kādreiz arī izlasi ko tev tur parāda, ne pa velti viņus met. :D Operation not permitted Vai tev vēl iztulkot? Quote Link to comment Share on other sites More sharing options...
ziedinjsh Posted October 13, 2009 Author Report Share Posted October 13, 2009 tad kur ir problēma.. parāda kad nav atļauta, bet izdzēš Quote Link to comment Share on other sites More sharing options...
Cibiņš Posted October 14, 2009 Report Share Posted October 14, 2009 (edited) Zinu sito baigā ņemšanās bij un meklēšanās. Ņem šo skriptu un klapējam šo topiku ciet. <?php $url = '/mape1/mape2'; $handle = opendir ($url); echo '<div>'; while (false !== ($file = readdir($handle))) { if($file != "." && $file != ".." && $file != basename(__FILE__)) { echo '<img style="margin: 5px" border="0" src="'.$url.$file.'" width=1000 height=1000 />'; } } echo '</div>'; ?> Edited October 14, 2009 by MCWeb.lv Quote Link to comment Share on other sites More sharing options...
ziedinjsh Posted October 14, 2009 Author Report Share Posted October 14, 2009 un kam tas ir paradzēts? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.