#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    20
    Rep 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
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    20
    Rep Power
    0
    Nevermind guys,

    Im an idiot...



    ------------------
    ---------
    Lanny
    dtm

Similar Threads

  1. Reading an entire file into a char
    By shadovv in forum C Programming
    Replies: 2
    Last Post: February 16th, 2004, 08:24 PM
  2. reading text file
    By jrthor2 in forum Java Help
    Replies: 4
    Last Post: February 14th, 2004, 11:42 AM
  3. C++ reading file question
    By tmike in forum C Programming
    Replies: 1
    Last Post: February 3rd, 2004, 02:06 AM
  4. have file read contents of directory it is in?
    By thindery in forum PHP Development
    Replies: 1
    Last Post: January 24th, 2004, 11:18 PM
  5. Reading file and directory dates in html
    By scottd in forum HTML Programming
    Replies: 0
    Last Post: January 17th, 2004, 09:46 AM

IMN logo majestic logo threadwatch logo seochat tools logo