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

PPT
Assembly language
PDF
PHP file handling
PPTX
The Rise of Postmodern ERP
PDF
Python Programming by Dr. C. Sreedhar.pdf
PPTX
Basic Python Programming: Part 01 and Part 02
PDF
Adafruit Feather M0 with LoRa Radio (with hands-on example)
PPTX
Php File Operations
PPTX
Uploading a file with php
Assembly language
PHP file handling
The Rise of Postmodern ERP
Python Programming by Dr. C. Sreedhar.pdf
Basic Python Programming: Part 01 and Part 02
Adafruit Feather M0 with LoRa Radio (with hands-on example)
Php File Operations
Uploading a file with php

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
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
Unit-VI.pptx
PDF
Python Files I_O17.pdf
PPT
Php basics
Web Development Course: PHP lecture 3
lecture 10.pptx
file management in c language
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
Unit-VI.pptx
Python Files I_O17.pdf
Php basics
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
Ad

Recently uploaded (20)

PPTX
bas. eng. economics group 4 presentation 1.pptx
PDF
composite construction of structures.pdf
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
DOCX
573137875-Attendance-Management-System-original
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PDF
Structs to JSON How Go Powers REST APIs.pdf
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PPTX
Internet of Things (IOT) - A guide to understanding
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PPTX
Sustainable Sites - Green Building Construction
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PPTX
Construction Project Organization Group 2.pptx
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
bas. eng. economics group 4 presentation 1.pptx
composite construction of structures.pdf
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
573137875-Attendance-Management-System-original
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
Embodied AI: Ushering in the Next Era of Intelligent Systems
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
UNIT-1 - COAL BASED THERMAL POWER PLANTS
Structs to JSON How Go Powers REST APIs.pdf
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
Internet of Things (IOT) - A guide to understanding
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
Sustainable Sites - Green Building Construction
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
Construction Project Organization Group 2.pptx
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026

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