elibraryportal Logo

File Handling in PHP

PHP file handling allow to create file, read file line by line, read file character by character, write file, append file, delete file and close file.

fopen() :- PHP Open File

PHP fopen() function is used to open a file.


Example :

First create a text file in Notepad and save sarkarirest.text some content like that

Example :-


 AJAX = Asynchronous JavaScript and 
 XML CSS = Cascading Style Sheets 
 HTML = Hyper Text Markup Language 
 PHP = PHP Hypertext Preprocessor 
 SQL = Structured Query Language 
 SVG = Scalable Vector Graphics 
 XML = EXtensible Markup Language

Next Topic