Hi,
I have wrote a php script to upload music files.It looks like working,
however, there is no way I can tell unless I  can show it.
How do I show it as a http link on the webpage?

part of the upload script I wrote looks like this:
<input type="text" name="short2" size=50>
...
<input name="userfile2" type="file">
....

 $file2 = fopen($userfile2, "r");
 $fileContents2 = fread($file2, filesize($userfile2));
 $fileContents2 = AddSlashes($fileContents2);
.....
if (is_uploaded_file($userfile2))
     {

       switch ($userfile_type2)
       {
         case "audio/x-pn-realaudio";
             $mimeName2 = "ram";
             break;
          case "audio/x-pn-realaudio";
             $mimeName2 = "rm";
             break;
.....
$insertQuery = "INSERT INTO files VALUES (NULL, \"{$Name}\", \"{$short2}\",
         \"{$userfile_type2}\", \"{$mimeName2}\", \"{$fileContents2}\",



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to