Skip to content

Instantly share code, notes, and snippets.

@claudiohilario
Created October 21, 2016 23:36
Show Gist options
  • Save claudiohilario/6fe195ba2d2c02250c62f28cf1cf9df6 to your computer and use it in GitHub Desktop.
Save claudiohilario/6fe195ba2d2c02250c62f28cf1cf9df6 to your computer and use it in GitHub Desktop.
Mover e Apagar ficheiros em PHP
<?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