Jump to content

Archived

This topic is now archived and is closed to further replies.

may

Deleting & Viewing files

Recommended Posts

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!

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.