Kemarin saya mengalami masalah dalam proses delete file dengan function 
unlink(), tapi setelah saya coba-coba, akhirnya berhasil juga. bedanya adalah 
sintaks awal saya begini:
 
if (file_exists($filename)){

    unlink($filename);
 
}
 
Setiap dieksekusi ternyata ada pesan error, tapi file bisa dihapus. Kemudian 
saya baca di internet ada sintaks seperti ini:
 
if (file_exists($filename)){

    
     @unlink($filename);
 
}
 
Hanya ditambahkan @, katanya sih untuk menghindarkan warning error kalau file 
yang dicari tidak ketemu, tapi bukannya dengan file_exists($filename) saja 
otomatis mencari file yang diinginkan? kalo gak ada ya gak dijalanin.
 
Gimana tuh?
 

LuckyGuy354 <[EMAIL PROTECTED]> wrote:

Bisa sekalian kirimkan listingnya?

LuckyGuy354
IT Beginner

----- Original Message -----
From: "arie" <[EMAIL PROTECTED]>


> Halo semua..
>
> Saya ada kendala nih, saya mo coba delete file pake fungsi PHP unlink()
kok error yah.. tepatnya sih keluar warning gitu, kayak gini nih:
>
> Warning: Unlink failed (Permission denied) in
c:\apache\htdocs\vrtour\edit_dir.php on line 19
>
> Tapi kalo halaman nya di refresh, file nya sih berhasil hilang, kira-kira
kenapa bisa gitu sih? Salah dimana ya saya??
>
> Tolong bantu ya, makasih yah...





----------------------------------------------------------
Komunitas MasterWeb Indonesia http://www.master.web.id
----------------------------------------------------------
MWN, Masternya WEBHOSTING di Indonesia, Indo/USA Servers,
Customer Support 24 jam  http://www.masterwebnet.com
----------------------------------------------------------
WebDevelopment,Designing/Programming http://www.dlanet.com
---------------------------------------------------------- 



---------------------------------
YAHOO! GROUPS LINKS 


    Visit your group "milis-masterweb" on the web.
  
    To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]
  
    Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 


---------------------------------



                
---------------------------------
Yahoo! Sports
 Rekindle the Rivalries. Sign up for Fantasy Football

[Non-text portions of this message have been removed]





----------------------------------------------------------
Komunitas MasterWeb Indonesia http://www.master.web.id
----------------------------------------------------------
MWN, Masternya WEBHOSTING di Indonesia, Indo/USA Servers,
Customer Support 24 jam  http://www.masterwebnet.com
----------------------------------------------------------
WebDevelopment,Designing/Programming http://www.dlanet.com
---------------------------------------------------------- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/milis-masterweb/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Kirim email ke