SlideShare a Scribd company logo
2
Most read
3
Most read
4
Most read
PHP file handling
 Introduction to PHP file handling in Hindi
 Opening a file with PHP in Hindi
 Reading file with PHP in Hindi
 Writing a file with PHP in Hindi
 Closing a file with PHP in Hindi
Introduction to file handling
languages files PHP functions
provide , आप easily files handle Files
handle ability PHP top scripting languages group
web applications database , simple data text
files store प PHP files आप 6
operations perform
 Opening a file
 Reading a file
 Writing a file
 Appending a file
 Closing a file
 Deleting a file
operations PHP perform , आ
Opening a file
Files open PHP fopen() provide method 2
argument pass प argument file , औ आप
mode open mode PHP file ई modes open
modes character represent
modes ग ग operations प
modes
Mode
s
Explanation
r mode files read
r+ mode file read औ file write
w mode files write file प create
w+ mode file read/write operation perform
a mode प file content delete content add
a+ mode आप file read औ data append
x mode आप file data
write file file प error
ग
x+ mode आप read औ write
File operation perform प file
open PHP file open
Opening a file
<?php
$myFile = fopen(“myFile.txt”,”w”);
?>
file open आप file mode
आप open according ई operation perform
Reading from a file
File read आप 2 functions प आप
fread() function function आप file length
प File length pass , compiler प
file content आप filesize()
method आप file pass PHP file read
Reading from a file
<?php
$file1 = fopen(“myFile.txt”,”r+”); // open file
$filesize($file1);
$filedata = fread(“$file1,$filesize”);
?>
Writing to a file
file data store आप fwrite() function
function file pointer औ data pass File pointer variable ,
आप file open point PHP data write
Writing to a file with PHP
<?php
$myFile = fopen(“myFile.txt”, “w”);
fwrite(“myFile”,”This website is cool!”);
?>
Appending to a file
आप existing file data write , file previous data
delete आप previous data delete
end new data add आप file a mode open
औ fwrite() function data आप write
Appending to a file
<?php
$myFile = fopen(“filename.txt”,a); //opening with a mode
fwrite($myFile,”and I am also cool!”);
?>
Closing a file
Operations complete आप file stream close
PHP fclose() method provide method file pointer pass
Closing a file
<?php
$myFile = fopen(“filename.txt”,a); //opening with a mode
// do some operations here
fclose($myFile)
?>
Deleting a file
प आप file delete PHP unlink
method provide
Deleting a file
<?php
$myFile = fopen(“filename.txt”,a); //opening with a mode
//perform some operations here
unlink($myFile)
?>
PHP file handling आप dynamically files handle

More Related Content

PPTX
Files in Python.pptx
PPTX
PDF
Wrapper classes
PPTX
PHP slides
PDF
Gestion de formularios php
PPTX
Type casting in c programming
PPT
PHP complete reference with database concepts for beginners
PPT
user defined function
Files in Python.pptx
Wrapper classes
PHP slides
Gestion de formularios php
Type casting in c programming
PHP complete reference with database concepts for beginners
user defined function

What's hot (20)

PDF
Variables & Data Types In Python | Edureka
PPT
PHP - Introduction to File Handling with PHP
PDF
CONST-- once initialised, no one can change it
PDF
Php tutorial(w3schools)
PPT
Php forms
PDF
C++ Files and Streams
PDF
PHP Loops and PHP Forms
PPTX
Learn html Basics
PDF
Introduction to Bash Scripting, Zyxware Technologies, CSI Students Convention...
PPTX
Php basics
PPTX
Php string function
PPTX
java interface and packages
PDF
Introduction to Input/Output Functions in C
PPTX
PPTX
Pointers,virtual functions and polymorphism cpp
PPT
9. Input Output in java
PPTX
Thread priority in java
Variables & Data Types In Python | Edureka
PHP - Introduction to File Handling with PHP
CONST-- once initialised, no one can change it
Php tutorial(w3schools)
Php forms
C++ Files and Streams
PHP Loops and PHP Forms
Learn html Basics
Introduction to Bash Scripting, Zyxware Technologies, CSI Students Convention...
Php basics
Php string function
java interface and packages
Introduction to Input/Output Functions in C
Pointers,virtual functions and polymorphism cpp
9. Input Output in java
Thread priority in java
Ad

Similar to Php file handling in Hindi (20)

PDF
Web Development Course: PHP lecture 3
PPTX
lecture 10.pptx
PPTX
file management in c language
PDF
PHP file handling
DOCX
Php files
PPTX
PHP Filing
PPTX
File Handling in C
PPTX
PHP File Handling
DOCX
Php advance
PPTX
Python files / directories part15
PPT
Lecture 20 - File Handling
PPSX
DIWE - File handling with PHP
PDF
اسلاید دوم جلسه هفتم کلاس پایتون برای هکرهای قانونی
PPTX
4-chapter-File & Directores.pptx debre CTABOUR UNIversit
PPT
Php File Operations
PPT
File handling in c
PPTX
File handling in C hhsjsjshsjjsjsjs.pptx
PPT
Filing system in PHP
PPTX
Php File Operations
PPTX
Unit-VI.pptx
Web Development Course: PHP lecture 3
lecture 10.pptx
file management in c language
PHP file handling
Php files
PHP Filing
File Handling in C
PHP File Handling
Php advance
Python files / directories part15
Lecture 20 - File Handling
DIWE - File handling with PHP
اسلاید دوم جلسه هفتم کلاس پایتون برای هکرهای قانونی
4-chapter-File & Directores.pptx debre CTABOUR UNIversit
Php File Operations
File handling in c
File handling in C hhsjsjshsjjsjsjs.pptx
Filing system in PHP
Php File Operations
Unit-VI.pptx
Ad

More from Vipin sharma (6)

PDF
PDF
Router components in hindi
PDF
Xml namespaces in Hindi
PDF
Html font tag in Hindi
PDF
Android networking in Hindi
PDF
Learn java in hindi
Router components in hindi
Xml namespaces in Hindi
Html font tag in Hindi
Android networking in Hindi
Learn java in hindi

Recently uploaded (20)

PPTX
Glazing at Facade, functions, types of glazing
PDF
Monitoring Global Terrestrial Surface Water Height using Remote Sensing - ARS...
PPTX
AgentX UiPath Community Webinar series - Delhi
PDF
BRKDCN-2613.pdf Cisco AI DC NVIDIA presentation
PDF
flutter Launcher Icons, Splash Screens & Fonts
PPTX
Soil science - sampling procedures for soil science lab
PDF
Chad Ayach - A Versatile Aerospace Professional
PDF
오픈소스 LLM, vLLM으로 Production까지 (Instruct.KR Summer Meetup, 2025)
PPTX
TE-AI-Unit VI notes using planning model
PDF
dse_final_merit_2025_26 gtgfffffcjjjuuyy
PPT
SCOPE_~1- technology of green house and poyhouse
PDF
Queuing formulas to evaluate throughputs and servers
PPTX
Road Safety tips for School Kids by a k maurya.pptx
PPTX
ANIMAL INTERVENTION WARNING SYSTEM (4).pptx
PPTX
metal cuttingmechancial metalcutting.pptx
PDF
A Framework for Securing Personal Data Shared by Users on the Digital Platforms
PDF
Top 10 read articles In Managing Information Technology.pdf
PPTX
Lesson 3_Tessellation.pptx finite Mathematics
PPTX
anatomy of limbus and anterior chamber .pptx
Glazing at Facade, functions, types of glazing
Monitoring Global Terrestrial Surface Water Height using Remote Sensing - ARS...
AgentX UiPath Community Webinar series - Delhi
BRKDCN-2613.pdf Cisco AI DC NVIDIA presentation
flutter Launcher Icons, Splash Screens & Fonts
Soil science - sampling procedures for soil science lab
Chad Ayach - A Versatile Aerospace Professional
오픈소스 LLM, vLLM으로 Production까지 (Instruct.KR Summer Meetup, 2025)
TE-AI-Unit VI notes using planning model
dse_final_merit_2025_26 gtgfffffcjjjuuyy
SCOPE_~1- technology of green house and poyhouse
Queuing formulas to evaluate throughputs and servers
Road Safety tips for School Kids by a k maurya.pptx
ANIMAL INTERVENTION WARNING SYSTEM (4).pptx
metal cuttingmechancial metalcutting.pptx
A Framework for Securing Personal Data Shared by Users on the Digital Platforms
Top 10 read articles In Managing Information Technology.pdf
Lesson 3_Tessellation.pptx finite Mathematics
anatomy of limbus and anterior chamber .pptx

Php file handling in Hindi

  • 1. PHP file handling  Introduction to PHP file handling in Hindi  Opening a file with PHP in Hindi  Reading file with PHP in Hindi  Writing a file with PHP in Hindi  Closing a file with PHP in Hindi Introduction to file handling languages files PHP functions provide , आप easily files handle Files handle ability PHP top scripting languages group web applications database , simple data text files store प PHP files आप 6 operations perform  Opening a file  Reading a file  Writing a file  Appending a file  Closing a file  Deleting a file operations PHP perform , आ Opening a file Files open PHP fopen() provide method 2 argument pass प argument file , औ आप mode open mode PHP file ई modes open modes character represent
  • 2. modes ग ग operations प modes Mode s Explanation r mode files read r+ mode file read औ file write w mode files write file प create w+ mode file read/write operation perform a mode प file content delete content add a+ mode आप file read औ data append x mode आप file data write file file प error ग x+ mode आप read औ write File operation perform प file open PHP file open Opening a file <?php $myFile = fopen(“myFile.txt”,”w”); ?> file open आप file mode आप open according ई operation perform Reading from a file
  • 3. File read आप 2 functions प आप fread() function function आप file length प File length pass , compiler प file content आप filesize() method आप file pass PHP file read Reading from a file <?php $file1 = fopen(“myFile.txt”,”r+”); // open file $filesize($file1); $filedata = fread(“$file1,$filesize”); ?> Writing to a file file data store आप fwrite() function function file pointer औ data pass File pointer variable , आप file open point PHP data write Writing to a file with PHP <?php $myFile = fopen(“myFile.txt”, “w”); fwrite(“myFile”,”This website is cool!”); ?> Appending to a file
  • 4. आप existing file data write , file previous data delete आप previous data delete end new data add आप file a mode open औ fwrite() function data आप write Appending to a file <?php $myFile = fopen(“filename.txt”,a); //opening with a mode fwrite($myFile,”and I am also cool!”); ?> Closing a file Operations complete आप file stream close PHP fclose() method provide method file pointer pass Closing a file <?php $myFile = fopen(“filename.txt”,a); //opening with a mode // do some operations here fclose($myFile) ?> Deleting a file
  • 5. प आप file delete PHP unlink method provide Deleting a file <?php $myFile = fopen(“filename.txt”,a); //opening with a mode //perform some operations here unlink($myFile) ?> PHP file handling आप dynamically files handle