I dont have a database. But I would like the server to send me a unique number for each of my uploads. I have written the Server side is written in PHP. I have defined a global values as fileId and assigned 1 to it at the begining. Then I do an auto increment of it. But for all my uploads I get one (the same number as the begining). Can someone tell me what I'm doing wrong here?
<?php
$fileId = 1;
class UploadController {
private static function uploadRequest() {
echo self::$PARAM_FILE_ID . "=" . $GLOBALS['fileId'];
$GLOBALS['fileId'] = $GLOBALS['fileId'] + 1;
}
}
?>