Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $origem = "teste.txt";
- $destino = "arquivo_copy.txt"; //copia para o mesmo diretório com outro nome
- if (copy($origem, $destino)) //faltou uma vírgula entre $origem e $destino
- {
- echo "copia efetuada";
- }
- else
- {
- echo "copia nao efetuada";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement