Skip to content

Instantly share code, notes, and snippets.

@pysoftware
Created March 13, 2019 06:53
Show Gist options
  • Select an option

  • Save pysoftware/90ce2e5acec46072ba452bdfb3a2c903 to your computer and use it in GitHub Desktop.

Select an option

Save pysoftware/90ce2e5acec46072ba452bdfb3a2c903 to your computer and use it in GitHub Desktop.
Работа с файлами PHP
<?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