fopen(), fread() & fclose() in PHP in Hindi | PHP Tutorial #35
Вставка
- Опубліковано 19 вер 2024
- ►Source Code + Text Tutorials - codewithharry.c...
►This video is a part of this PHP tutorials in Hindi playlist - • PHP Tutorials in Hindi
►For Doubt Solving, Brain Storming Sessions & guaranteed replies, join the channel membership here: / @codewithharry
►Click here to subscribe - / @codewithharry
►Checkout my English channel here: / programmingwithharry
Best Hindi Videos For Learning Programming:
►Learn Python In One Video - • Python Tutorial In Hin...
►Python Complete Course In Hindi - • Python Tutorials For A...
►C Language Complete Course In Hindi -
• C Language Tutorials I...
►JavaScript Complete Course In Hindi -
• JavaScript Tutorials I...
►Learn JavaScript in One Video - • JavaScript Tutorial
►Learn PHP In One Video - • Learn Php In One Video...
►Django Complete Course In Hindi -
• Python Django Tutorial...
►Machine Learning Using Python - • Machine Learning Tutor...
►Creating & Hosting A Website (Tech Blog) Using Python - • [Hindi] Web Developmen...
►Advanced Python Tutorials - • Intermediate/Advanced ...
►Object Oriented Programming In Python - • Object Oriented Progra...
►Python Data Science and Big Data Tutorials - • Python Data Science an...
Follow Me On Social Media
►Website (created using Flask) - www.codewithhar...
►Facebook - / codewithharry
►Instagram - / codewithharry
►Personal Facebook A/c - / geekyharis
Twitter - / haris_is_here
Hello, Mr harry, u r doing great job.
i just mail harry but no response from harry
1. (X) --> open file for reading if file exists then return false
2. (X+) --> open file for reading and write if file exists return false.
learn about flock() and ternicated than you will automatically understand ramining.
x=create and opens for writing only and place the file poniter at the beginning
x+=create and opens for both reading and writing
👍
PHP | fread( ) Function. The fread() function in PHP is an inbuilt function which reads up to length bytes from the file pointer referenced by file from an open file. The fread() function stops at the end of the file or when it reaches the specified length passed as a parameter, whichever comes first.
Binary Safe: Yes
Return Value: The read string, FALSE on failure
PHP Version: 4.0+
It is php language so incredible
x -> x will open the file for writing if file doesnot exits it will create it . if file exit fopen() fails and return false
x+ -> x+ will perform both reting and writing it is same as x
c - > c will perform writing operation if file doesnot exits create it. if it exits it will not fail and lock kar daga and file
pointer is placed at the begining of the file data is not truncated
c+ -> open the file for reading and writing it is same as c
I used to see this fclose() as a useless function, but when you told ki "apka server haath jodkar bheekh mang rha hoga jab ram jyada hojayega"...it clicked to me for the first time ki haan yeh bhi bht important hai...thanks a ton for this amazing content
waise maine starting se puri playlist dekhi hai siddhat k saath...loving it!! agar iss comment ko padha h harry bhai to ek dil de dena
Bhai 3rd video of the day.....🔥
Sir you are my inspiration.
Harry bhai apko lambi umar de😂 sachi me bahut helpful ho ap
Sir, you are doing great job !
Modes of file----->
r->it will open the file for reading only and place the pointer at the beginning of the file.
r+-->it will open the file for reading and writing and place the file pointer at the beginning of the file.
w->it will open the file for writing only ,it will placed file pointer at the beginning of the file and truncate the file to zero length.if file doesn't exist it will attempt to create it.
w+->it will open the file for reading and writing ,it will place the file pointer at the beginning of the file and truncate the file to zero length and if the file doesn't exist it will try to create it.
a->it will open the file for writing only , it will place the pointer at the end and if the file doesn't exist it will try to create it.fseek()function basically has no effect.
a+->it will open the file for reading ad writing , it will place the file pointer at the end of the file and if the file doesn't exist it will try to create it.fseek funnction basically effects the reading poisition.
x->craete and open the file for writing only and place the file pointer at the beginning of the file , if the file already exist then the fopen function will return false with E_warning.
x+-->create and open the file for reading and writing and all other behaviour is same as that of x.
c---> open the file for writitng and if doen;t exit it will try to create it. if exist then it doesn't truncate it nor it will show any error. it will place the file pointer at the beginnnng of the file.
c+---->open the file for reading and writing.
e-> it will basically close the openend file.
thanks
bro web hosting on ubuntu server in virtual box par one video
Bhai ethical hacking course par bhi video banao :)
Luv u Harry Bhai ❤️
Ha bhai
I like your easy way of explanation ...sir it's great
8:58 listen carefully and tell me on comment 🤔🤔🤔🤔
??????????????
Sor aaap shi kehtey fun hona chahiye mujhey mzaa ataa hey aoki class leyney mein 😀🌹love you harry bhaii
hey Harry Porter oh sorry Harry Coder,😊😊
Django social media tutorials we are wating
Harry bhai please make Social network in one video in django please i also shared your django playlist daily please make harry bhai
Hero he aap Harry Bhaiya Q ki aap itna Acha se samjha dete he ham sabko thanks Bhaiya ♥️
Data structures and algorithm full course kab aayega ??????
what are the differences between r and r+ in practical result.
Bhaiya you are my ideal...
LOVE UHH 3000 ❤❤🙌
Thanks #HarryBhai
LOVE YOU HARRY BAHI FROM PAKISTAN
nice explanation harry bhai
This is very usefull for us👌👌
Awesome Job Bhai!
Bro, I really like your videos but please make a playlist on react. or can you suggest a playlist?
he had also made a video on react . check it out!! that's is awesome video
Thanks a lot Bhaiya...Me 100th comment....Hurray!!!!!!
Thank you sr....
Done done again
I was wondering why harry bhai was not closing the door of the fridge until the end of the video. Harry bhai toh har tutorial mein file to close karne ke lie woh hi example dete ho.
Great channel
Very nice video. You are best coder.
Absolutely not
Harry bhai please make social network in one video please please
bhai jb ek readfile() se sara kam ho rha tha to fir kyo pahle fopen() use kru fir contain ko read ke liye fread() use kru .....
Harry bhaiya please make video on graphic designing full course please please please
Great bro
My guru😍😍
Bhai in topic mein video bnao
1 ajax crud operation in django project
2 how to apply for api and use in django
3 host django website free
4 cookies in django
Vai u r awesome.... 😍😍😍
Very nice 👍👌
1st viewer me... Thanku sir
maza agya harry bhai :')
good job buddy
How to open and image then add text on it and save it?
❤️
File Mode: r+, a+,c,e ek bar zarror dekhe ! :)
Harry Bhai ❤❤❤
W3 School
Harry bhai! Ek android study apk banao like G.K or other
Great work
you have done 👍
Just keep it up
Bhai plz ek playlist data structures par bana do plzzz
PHP Tutorial #35 Watched
Bhai url rewriting ke upar bnao na video please or live kese krte h php website with url rewriting
Hi harry, please make the series of node.js completely please, your subscriber from Pakistan
Harry bhai c# pe video banaye
Bhayia mne visual studio code dowload krne ki kosis ki per hua nhi,, error dika rha tha
Per jab mne phone me on kiya website ko to ho gyi to pta nhi kya error hua window 8.1 h
Plzz help to resolve the problm
sir content is awesome. But the website has so many errors please check it.
Harry Bhai machine learning and deep learning lecture kab Tak start karenge
Bhaiya java language tutorial kab la rhe h please reply............
If we read a binary file in binary reading mode then will we get its compiled content
Bhai Aapke Instagram pr massage Kiya tha Aapne seen nhi kiya
Sir 😂akhri baat: sir bht sara piyaar apko Pakistan sey 😁
Bhai python beginner ke liye konsi book refer karna hongi
Bhai please reply
Sir react native tutorial please
Harry bhai please make Social network in one video in django please i also shared your django playlist daily please make harry bhai tell me how many share remaining in 500+
Sir mein zumeydari leyta hun apney files ko close krney ka 😁
server, cpu aur ram ke liye hath jod krr bhik mang rha hoga 😂😂😂😂😂😂 ......... This one very nice
👌
Very good indeed!!!!
Hello sir kya aap chat application bna sakte ho javascript me.
Communicate two html files
Sir PHP pe jitna ho sake bato please
bro it is good but whenever i want to open doc or word file it is not opening bro
can make a video on all files how to open pdf and docx
c++ ki video dal do bhiya
first
can anyone please tell me why i can't read a pdf/docx file. It gives me binary and can anyone tell me how to convert that into string.
😑😑😑Harry bro you come in my dream 😑😑😑
Harry needs your little help. Want to practice and make my logic so strong in python. Please let me know the correct website. So that i can practice. Please help me.. 🙏
hey try to do sudoku generator kind of thing
Erlang programming language playlist please
Not that famous naa?
sir agar mera document hindi aur english mai hai to vo kaise read karega?
Bhai mai apne pycharm me code copy paste karta hu to nahi chalta hai aur Ctrl + d click karta hu to bhi nahi chalta plzz help karo
how i can master any programming language
please make a playlist for php
harry bro, this is Rohan, plz make a playlist on hacking too, with projects
Bhai 10 tarikh ko video kyo nahi dala
Mai aapke video ke liye tadap rha hu
Bhai ooh daino wala game me jb import pyautogui kr rha to baar baar no module name error aa rha(pip install pyautogui keya hu, already downloaded dekhata),
First time me huaa tha import but av nhi ho rha kafi try keya, reinstall v keya same error, need help please
freeze hi nahi hai ghar mein harry bhaiya🤣😥
Hello
Coding world ke harry porter
Automatically band ho jata hai 🥰🙏🥰
harry minati
First..
very long
13:27 😂
Sir video PHP ki he
Par aapne thumbnail HTML wali boilerplate kyu lagayi he
😁😁
Harry bhai you are married
me nahi karta LOL!!!