Created
October 21, 2016 23:36
-
-
Save claudiohilario/6fe195ba2d2c02250c62f28cf1cf9df6 to your computer and use it in GitHub Desktop.
Mover e Apagar ficheiros em PHP
This file contains 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 | |
//Apaga ficheito | |
unlink("caminho/ficheiro.extenção"); | |
//Mover Ficheiro (Copiar e Elimina) | |
$origem = 'ficheiro.extenção'; | |
$destino = 'caminho/ficheiro.extenção'; | |
copy($origem, $destino); | |
unlink($origem); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment