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 :
It takes two parameters as input:
1. Destination path
2. Source Path
Syntax:
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.
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:
$file_open = fopen("http://127.0.0.1/", "r");
$file_open = fopen("http://127.0.0.1/", "r");
$file_open = fopen("http://127.0.0.1/", "r");
$file_open = fopen("http://127.0.0.1/", "r");
$file_open = fopen("http://127.0.0.1/", "r");
$file_open = fopen("http://127.0.0.1/", "r");
$file_open = fopen("http://127.0.0.1/", "r");
$file_open = fopen("http://127.0.0.1/", "r");
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.
No comments:
Post a Comment