0
PHP upload files no request
<?php ăif ($_FILES["public_html"]["error"] > 0){ ăăecho "Error: " . $_FILES["file"]["error"]; ă}else{ ăăecho "File name: " . $_FILES["file"]["name"]."<br/>"; ăăecho "File type: " . $_FILES["file"]["type"]."<br/>"; ăăecho "File size: " . ($_FILES["file"]["size"] / 1024)." Kb<br />"; ăă move_uploaded_file($_FILES["file"]["tmp_name"],"public_html/".$_FILES["file"]["name"]);ă ă} ?> when I try to upload file with this PHP and the browser showed that currently unable to handle this request. HTTP ERROR 500.
1 RĂ©ponse
0
I use web host app instead of local server.