Jump to content


Photo

Deleting & Viewing files


  • Please log in to reply
1 reply to this topic

#1 may

may
  • Members
  • PipPip
  • Member
  • 13 posts

Posted 28 September 2006 - 05:53 PM

Hi,

i cannot delete files using ftp_delete and the second problem i m facing is that i cannot view image files on unix server thru php code

my code goes as follows:

<form name="form1" enctype="multipart/form-data" action="">
<input name="image" type="image" src="/home/egreenon/public_html/cevent/main/adverts/1-Logo.jpg"/>
</form>

However i m able to view doc files, txt files and other files but not images!

#2 Orio

Orio
  • Staff Alumni
  • Advanced Member
  • 2,491 posts

Posted 28 September 2006 - 06:02 PM

1) Try using unlink() for deletion of files.
2) Why did you put the full path in the "src"? Use cevent/main/adverts/1-Logo.jpg

Orio.
Think you're smarty?

(Gone until 20 to November)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users