Switch to full style
:read: Start PHP with us. Includes topics to help you in php
Post a reply

moving file with copy() function in php

Sun Oct 26, 2008 9:01 pm

moving file with copy function
Code:
<?php
   $source 
"./test.txt";
   
$destination "./copy.txt";
                
   if(
copy($source$destination)) {
      echo 
"File copied successfully.""\n";
   } else {
      echo 
"The specified file could not be copied. Please try again.""\n";
   }
               
?>




Post a reply
  Related Posts  to : moving file with copy() function in php
 Copy file to file in java code- implementation     -  
 copy file     -  
 Moving between frames     -  
 moving files in php     -  
 moving glasspane between frames     -  
 Moving Background in flash     -  
 HOW TO KEEP OBJECT MOVING FOLLOW.     -  
 Create a moving text banner     -  
 Encrypt/Decrypt a file from source file to target file.     -  
 a moving graph sortof widget build using Swing     -  

Topic Tags

PHP Files and I/O