Jump to content

Please Help, How to show upload progress information


ganda

Recommended Posts

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>

 

<code>

 

<?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

</code>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.