Friday, September 30, 2011
File Operation in PHP
Assalamualaikum and Selamat Sejahtera
1.Make a text file called phpFILE.txt.Inside that text file,just type "This is PHP file.You open this file!".
2.Then put this textfile inside the folder called "www".
3.Inside the "www" folder,make a new PHP file called : readfile.php.Inside this file,write this code below
4.Save it and run this file ,by type at the browser's address : http://localhost/readfile.php
Beside,there is another function same as readfile("nameofFILE.txt") which is called file_get_contents(the_file_that_to_be_read).Here is the example of code:
That all for today,Thank You!!
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment