note 124760 deleted from features.file-upload by cmb

From: Date: Tue, 25 Feb 2020 21:13:57 +0000
Subject: note 124760 deleted from features.file-upload by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-214227@lists.php.net to get a copy of this message
Note Submitter: Nicolus ---- The given below code is the most simplest way to upload file in php. <?php $target_path = "YOUR_PATH"; $target_path = $target_path.basename( $_FILES['uploaded_file']['name']); if(move_uploaded_file($_FILES['uploaded_file']['tmp_name'], $target_path)) { echo "File uploaded successfully."; } else{ echo "Error!, file can not be uploaded."; } ?> Source: https://errorsea.com/how-to-upload-file-in-php/

« previous php.notes (#214227) next »