View Single Post
Old 07-04-2008, 02:58 AM   #1 (permalink)
ganda
The Visitor
 
Join Date: Jul 2008
Posts: 3
Thanks: 0
ganda is on a distinguished road
Default Please Help, How to show upload progress information

I'm using wampserver, including php 5.25
and i'm try to show the progress upload information
and it always fail, the browser is not responding
I'm already use php_progressbar.dll
please tell me what i had to do, here is the source code:


<?php header("Cache-Control: no-cache, must-revalidate"); ?>

<!-- The data encoding type, enctype, MUST be specified as below -->
<form action="u.php" method="POST" enctype="multipart/form-data" >
<!-- MAX_FILE_SIZE must precede the file input field -->
<input type="hidden" name="UPLOAD_IDENTIFIER" value="1325a38f55c0b1b4" id="UPLOAD_IDENTIFIER" />
<!-- Name of input element determines name in $_FILES array -->
Send this file: <input name="userfile" type="file" />
<input type="submit" value="Send File" />

</form>



<?php
/* PUT data comes in on the stdin stream */

print_r(uploadprogress_get_info("1325a38f55c0b1b4" ));
$putdata = $_FILES["userfile"]["tmp_name"];
move_uploaded_file($_FILES["userfile"]["tmp_name"],"zzz.dat");
print_r($_FILES)

?>

Please anyone can help me

Thank You
ganda is offline  
Reply With Quote