SolidBase Posted July 4, 2007 Share Posted July 4, 2007 Hello everyone im new here! (pretty obvious, duh) Anyways i have an upload script but i wanna add a progress bar to show much percent has been uploaded and progress bar that looks like from speedyshare.com here is the upload script code <?php if (($_FILES["file"]["type"] == "audio/mp3") || ($_FILES["file"]["type"] == "audio/mpeg") && ($_FILES["file"]["size"] < 3200000)) { if ($_FILES["file"]["error"] > 0) { echo "Return Code: " . $_FILES["file"]["error"] . "<br />"; } else { header( 'Location: index.php' ) ; if (file_exists("files/" . $_FILES["file"]["name"])) { echo $_FILES["file"]["name"] . " already exists. "; } else { move_uploaded_file($_FILES["file"]["tmp_name"], "files/" . $_FILES["file"]["name"]); echo "Stored in: " . "files/" . $_FILES["file"]["name"]; } } } else { echo "Invalid file"; } ?> i would really appreciate the help Quote Link to comment Share on other sites More sharing options...
Yesideez Posted July 4, 2007 Share Posted July 4, 2007 You'll have to use a CGI or Perl script to do this as PHP can't access the data being transferred. Google some CGI scripts, I'm sure you'll find one. Quote Link to comment Share on other sites More sharing options...
SolidBase Posted July 4, 2007 Author Share Posted July 4, 2007 can i have a cgi script working with php script? Quote Link to comment Share on other sites More sharing options...
Yesideez Posted July 4, 2007 Share Posted July 4, 2007 I believe so, not sure as I've never done it. If you use the search function on this website the exact same question was asked yesterday or the day before. I'm only posting what I can remember from the reponse. Quote Link to comment Share on other sites More sharing options...
SolidBase Posted July 4, 2007 Author Share Posted July 4, 2007 made it work thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.