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

What's hot (20)

DOCX
Php forms and validations by naveen kumar veligeti
Naveen Kumar Veligeti
 
PPTX
Css box-model
Webtech Learning
 
PPTX
Uploading a file with php
Muhamad Al Imran
 
PPT
Setting up your development environment
Nicole Ryan
 
PPTX
PHP
Steve Fort
 
PPT
Web Page Authoring 1
yht4ever
 
PPTX
Html coding
Briana VanBuskirk
 
PDF
Le Wagon - UI components design
Boris Paillard
 
PDF
Intro to HTML & CSS
Syed Sami
 
PPTX
Css backgrounds
AbhishekMondal42
 
PDF
Html table tags
eShikshak
 
PPTX
User management
Mufaddal Haidermota
 
PPT
Web development chapter-3.ppt
ssuserf3db48
 
PPTX
Html n CSS
Sukrit Gupta
 
PDF
Intro to html 5
Ian Jasper Mangampo
 
PPTX
Jquery Complete Presentation along with Javascript Basics
EPAM Systems
 
PPTX
What is CSS?
HalaiHansaika
 
PDF
Le Wagon - 2h Landing
Boris Paillard
 
PDF
HTML and CSS crash course!
Ana Cidre
 
Php forms and validations by naveen kumar veligeti
Naveen Kumar Veligeti
 
Css box-model
Webtech Learning
 
Uploading a file with php
Muhamad Al Imran
 
Setting up your development environment
Nicole Ryan
 
Web Page Authoring 1
yht4ever
 
Html coding
Briana VanBuskirk
 
Le Wagon - UI components design
Boris Paillard
 
Intro to HTML & CSS
Syed Sami
 
Css backgrounds
AbhishekMondal42
 
Html table tags
eShikshak
 
User management
Mufaddal Haidermota
 
Web development chapter-3.ppt
ssuserf3db48
 
Html n CSS
Sukrit Gupta
 
Intro to html 5
Ian Jasper Mangampo
 
Jquery Complete Presentation along with Javascript Basics
EPAM Systems
 
What is CSS?
HalaiHansaika
 
Le Wagon - 2h Landing
Boris Paillard
 
HTML and CSS crash course!
Ana Cidre
 

Similar to Php file handling in Hindi (20)

PDF
Web Development Course: PHP lecture 3
Gheyath M. Othman
 
PDF
PHP file handling
wahidullah mudaser
 
PPTX
Php File Operations
Jamshid Hashimi
 
PPT
Php basics
sagaroceanic11
 
PPTX
PHP Filing
Nisa Soomro
 
PPTX
File handling
NithyaNithyav
 
PPTX
PHP File Handling
Degu8
 
PPT
Php
TSUBHASHRI
 
PPT
Php
TSUBHASHRI
 
PPT
Php
TSUBHASHRI
 
PPTX
4-chapter-File & Directores.pptx debre CTABOUR UNIversit
alemunuruhak9
 
PPTX
Files in php
sana mateen
 
DOCX
Php files
kalyani66
 
PPT
Php i basic chapter 4
Muhamad Al Imran
 
PDF
How to Write the Perfect PHP Script for Your Web Development Class
Emma Jacob
 
PPT
php file uploading
Purushottam Kumar
 
PPT
Overview of php
Tabeer12
 
Web Development Course: PHP lecture 3
Gheyath M. Othman
 
PHP file handling
wahidullah mudaser
 
Php File Operations
Jamshid Hashimi
 
Php basics
sagaroceanic11
 
PHP Filing
Nisa Soomro
 
File handling
NithyaNithyav
 
PHP File Handling
Degu8
 
4-chapter-File & Directores.pptx debre CTABOUR UNIversit
alemunuruhak9
 
Files in php
sana mateen
 
Php files
kalyani66
 
Php i basic chapter 4
Muhamad Al Imran
 
How to Write the Perfect PHP Script for Your Web Development Class
Emma Jacob
 
php file uploading
Purushottam Kumar
 
Overview of php
Tabeer12
 
Ad

More from Vipin sharma (6)

PDF
C pdf
Vipin sharma
 
PDF
Router components in hindi
Vipin sharma
 
PDF
Xml namespaces in Hindi
Vipin sharma
 
PDF
Html font tag in Hindi
Vipin sharma
 
PDF
Android networking in Hindi
Vipin sharma
 
PDF
Learn java in hindi
Vipin sharma
 
Router components in hindi
Vipin sharma
 
Xml namespaces in Hindi
Vipin sharma
 
Html font tag in Hindi
Vipin sharma
 
Android networking in Hindi
Vipin sharma
 
Learn java in hindi
Vipin sharma
 
Ad

Recently uploaded (20)

PPTX
Introduction to Basic Renewable Energy.pptx
examcoordinatormesu
 
PDF
MAD Unit - 2 Activity and Fragment Management in Android (Diploma IT)
JappanMavani
 
PPTX
Shinkawa Proposal to meet Vibration API670.pptx
AchmadBashori2
 
DOCX
8th International Conference on Electrical Engineering (ELEN 2025)
elelijjournal653
 
PPT
Carmon_Remote Sensing GIS by Mahesh kumar
DhananjayM6
 
PPTX
Introduction to Design of Machine Elements
PradeepKumarS27
 
PDF
smart lot access control system with eye
rasabzahra
 
PDF
PORTFOLIO Golam Kibria Khan — architect with a passion for thoughtful design...
MasumKhan59
 
PPTX
Presentation 2.pptx AI-powered home security systems Secure-by-design IoT fr...
SoundaryaBC2
 
PPTX
Arduino Based Gas Leakage Detector Project
CircuitDigest
 
PDF
Pressure Measurement training for engineers and Technicians
AIESOLUTIONS
 
PPTX
Lecture 1 Shell and Tube Heat exchanger-1.pptx
mailforillegalwork
 
PPTX
VITEEE 2026 Exam Details , Important Dates
SonaliSingh127098
 
PDF
Electrical Engineer operation Supervisor
ssaruntatapower143
 
PPTX
What is Shot Peening | Shot Peening is a Surface Treatment Process
Vibra Finish
 
DOCX
CS-802 (A) BDH Lab manual IPS Academy Indore
thegodhimself05
 
PPTX
Damage of stability of a ship and how its change .pptx
ehamadulhaque
 
PDF
Biomechanics of Gait: Engineering Solutions for Rehabilitation (www.kiu.ac.ug)
publication11
 
PPTX
Thermal runway and thermal stability.pptx
godow93766
 
DOC
MRRS Strength and Durability of Concrete
CivilMythili
 
Introduction to Basic Renewable Energy.pptx
examcoordinatormesu
 
MAD Unit - 2 Activity and Fragment Management in Android (Diploma IT)
JappanMavani
 
Shinkawa Proposal to meet Vibration API670.pptx
AchmadBashori2
 
8th International Conference on Electrical Engineering (ELEN 2025)
elelijjournal653
 
Carmon_Remote Sensing GIS by Mahesh kumar
DhananjayM6
 
Introduction to Design of Machine Elements
PradeepKumarS27
 
smart lot access control system with eye
rasabzahra
 
PORTFOLIO Golam Kibria Khan — architect with a passion for thoughtful design...
MasumKhan59
 
Presentation 2.pptx AI-powered home security systems Secure-by-design IoT fr...
SoundaryaBC2
 
Arduino Based Gas Leakage Detector Project
CircuitDigest
 
Pressure Measurement training for engineers and Technicians
AIESOLUTIONS
 
Lecture 1 Shell and Tube Heat exchanger-1.pptx
mailforillegalwork
 
VITEEE 2026 Exam Details , Important Dates
SonaliSingh127098
 
Electrical Engineer operation Supervisor
ssaruntatapower143
 
What is Shot Peening | Shot Peening is a Surface Treatment Process
Vibra Finish
 
CS-802 (A) BDH Lab manual IPS Academy Indore
thegodhimself05
 
Damage of stability of a ship and how its change .pptx
ehamadulhaque
 
Biomechanics of Gait: Engineering Solutions for Rehabilitation (www.kiu.ac.ug)
publication11
 
Thermal runway and thermal stability.pptx
godow93766
 
MRRS Strength and Durability of Concrete
CivilMythili
 

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