Created
March 13, 2019 06:53
-
-
Save pysoftware/90ce2e5acec46072ba452bdfb3a2c903 to your computer and use it in GitHub Desktop.
Работа с файлами PHP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $uploadDir = "C:\\wamp64\\www\\perv\\uploads"; | |
| $uploadFile = $uploadDir.$_FILES['uploadFile']['name']; | |
| echo $uploadFile; | |
| if (copy($_FILES['uploadFile']['tmp_name'], $uploadFile)) { | |
| echo 'FILE UPLOADED'; | |
| } else { | |
| echo 'ERROR'; | |
| } | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment