there are 2 files,....the upload.php..which we can upload pictures, and all the uploader.php will return a $uploaded_files which will output in upload.php, so
after pic upload...the page will add the filename to the bottom of the page.
Please see below for some code in upload.php
-
<?
-
include("uploader.php");
-
?>
-
-
...upload pic form here......
-
-
-
<?
-
-
if($uploaded_files == "") echo "
-
<tr>
-
<td colspan=\"2\" style=\"background: #fff; color: #000; text-align: center\"><br /><strong>There are no uploaded files.
-
</strong><br /><br /></td>
-
</tr>
-
"; else echo $uploaded_files; ?>
-
</table>
-
-
Above page works if it is run on website, however, not work in localhost(Apache
+ php5)....don;t know why...but in local host.....on upload.php...it always show
below the end of the page. but in website....it only show There are no uploaded files if no file is save in folder "files"...
below 2 sentence show if run display upload.php on localhost
There are no uploaded files.
"; else echo $uploaded_files; ?>