
June 11th, 2000, 01:44 AM
|
|
Junior Member
|
|
Join Date: May 2000
Posts: 20
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
After uploading a file, I run a script to read the file contents, but it returns the name of the file... I have used almost the exact syntax as the tutorial, with no avail! any suggestions? Code below:
<?php
if ($tempfile_name) {
$filename = "/fileloc/$tempfile_name";
$fd = fopen ($filename, "r");
$message = fread ($fd, filesize ($filename));
fclose ($fd);
echo "$message";
}
?>
------------------
---------
Lanny
dtm
|