If you do not know the path, put echo `pwd`; in a file and upload to that directory, then visit in a web browser you can also check by file_exists() this will return true if the file exists http://www.php.net/file_exists Tom LuckyGuy354 wrote: > > Use function unlink() to delete file. > Note: also specify the folder on paramater. > Example: unlink("\usr\bin\public_html\upload\file.txt"); > > LuckyGuy354 > IT Beginner > > http://www.wiwid.org <http://www.wiwid.org> > > ----- Original Message ----- > From: "arvindsri123" <arvindsri123@xxxxxxxxx > <mailto:arvindsri123%40yahoo.com>> > To: <php-objects@xxxxxxxxxxxxxxx <mailto:php-objects%40yahoogroups.com>> > Sent: Monday, March 31, 2008 10:19 PM > Subject: How delete file from folder > > > Hi, > > > > I am using php/mysql, and through admin, I have uploaded image file, > > which has saved in a folder "upload" on server. > > > > and when i m deleting it through php script everything got delete but > > the image file still existing in folder "upload". > > > > I want to delete this image from folder too. > > > > > > Anybody can help me ? > > > > Thanks, > > Arshi > >