Interesting facts about PHP programming Language
seen from Germany
seen from United Kingdom
seen from Belarus
seen from Azerbaijan
seen from Japan

seen from Yemen
seen from United Kingdom

seen from Canada
seen from China

seen from Egypt
seen from China

seen from Canada

seen from United Arab Emirates

seen from China
seen from Brazil

seen from United States
seen from United States
seen from China

seen from United States

seen from United States
Interesting facts about PHP programming Language
File handling in PHP with Source code
Introduction File handling is a main part of any application or website. This handling part can perform various task. Such as open file, read, write and delete files. As a programming language php can perform the similar task like other program. Well PHP is a scripting programming language. We can perform various task using this program. PHP program is especially built for web development. But we can still do various works using php. It is simple and easy to learn. In this tutorial we are going to open a txt file, read, write and delete the file. It is easy to open a txt file using computer. We are doing this file handling function using php program. You will be provided the source code along with this article. We will be using php built in functions. Such as fopen, fread, fwrite, unlink etc. Make sure that all the php files has opening and closing tag. You will get error if not use tag properly. The fopen() function is useful for creating a new txt file. You must provide a file name. A example.txt file will be created. I am proving example.txt for my file name. see the code for creating file below. The fwrite() function writes on the newly created file. You can write anything on that file using fwrite() function. Write “I like php” and see what happens. The example.txt file that is created is use for writing. We are writing on same file. further file handling For reading from file we use fread() php function. We are reading from the example.txt file. Read the full article