How to Copy Files in PHP

How to open and read PHP files have been discussed in previous blog:

How to open and read files with PHP

Now,we will discuss about copying a php file.

In php,we can Copy files from “source” to “destination”.
Function used :

    copy(used in PHP 4, PHP 5)

It takes two parameters as input:
1. Destination path
2. Source Path

Syntax:

      copy (string $source, string $destination);

– See full Blog at: How to Copy Files in PHP.

FindNerd: Being an effective C, C#, Java ,  PHP Developer forum, here you can also post & look for various programming queries along with their solutions including android, java, PHP questions and answers etc.

Advertisements
How to Copy Files in PHP

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s