Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => General

make directory, upload file then delete (permission hell)

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Postby sleepingdanny » Mon Mar 17, 2003 6:54 am

:arrow: Try this maybe it will work :!: :?:

File's Name: <input type="text" name="file"><br>
Type: <select size="1" name="end">
<option value="gif">.gif</option>
<option value="GIF">.GIF</option>
<option value="jpg">.jpg</option>
<option value="JPG">.JPG</option>

Code: Select all
unlink("$file.$end") && print "<b>$file.$end</b> Was Deleted From Your Folder!<br>";
print "<font color=red><b>ERROR</b>:</font> <b>$file.$end</b> Doesn't Exists In Your Folder!<br>";}
New php-forum User
New php-forum User
Posts: 13
Joined: Mon Mar 17, 2003 6:38 am

Return to PHP coding => General

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.