Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis0
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 Resposta
0
I use web host app instead of local server.