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     -  
 HOW TO KEEP OBJECT MOVING FOLLOW.     -  
 Moving Background in flash     -  
 moving glasspane between frames     -  
 Create a moving text banner     -  
 Encrypt/Decrypt a file from source file to target file.     -  
 Javascript Code For Moving Images On Click Of A Button     -  

Topic Tags

PHP Files and I/O