21 lines
349 B
PHP
21 lines
349 B
PHP
|
<?php
|
||
|
|
||
|
/**
|
||
|
* @file
|
||
|
* Test if Upload progress is available and working.
|
||
|
*/
|
||
|
|
||
|
$success = FALSE;
|
||
|
|
||
|
// Check uploadprogress extension is loaded.
|
||
|
if (extension_loaded('uploadprogress')) {
|
||
|
$success = TRUE;
|
||
|
print "Upload progress working properly.\r\n";
|
||
|
exit(0);
|
||
|
}
|
||
|
|
||
|
if (!$success) {
|
||
|
print "Upload progress not working properly.\r\n";
|
||
|
exit(1);
|
||
|
}
|