fopen(), fread() & fclose() in PHP in Hindi | PHP Tutorial #35

Поділитися
Вставка
  • Опубліковано 3 січ 2025

КОМЕНТАРІ •

  • @jashan0924
    @jashan0924 3 роки тому +18

    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.

  • @a2zStudy
    @a2zStudy 4 роки тому +25

    Hello, Mr harry, u r doing great job.

    • @anythingtop2574
      @anythingtop2574 3 роки тому +2

      i just mail harry but no response from harry

  • @coding_classes_
    @coding_classes_ 11 місяців тому +1

    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

  • @meghana3005
    @meghana3005 4 роки тому +13

    x=create and opens for writing only and place the file poniter at the beginning
    x+=create and opens for both reading and writing

  • @vimalkumarchaudhary1913
    @vimalkumarchaudhary1913 4 роки тому +6

    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

  • @nishanttheprogrammer9486
    @nishanttheprogrammer9486 4 роки тому +2

    Bhai 3rd video of the day.....🔥

  • @SurajGusain-uo3di
    @SurajGusain-uo3di 3 роки тому +4

    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

  • @usamabaig8591
    @usamabaig8591 3 місяці тому +1

    Great Sir.

  • @apoorvashukla3344
    @apoorvashukla3344 4 роки тому +2

    Sir you are my inspiration.

  • @Luve_yourself
    @Luve_yourself 2 роки тому

    Sor aaap shi kehtey fun hona chahiye mujhey mzaa ataa hey aoki class leyney mein 😀🌹love you harry bhaii

  • @akshay.pawar.
    @akshay.pawar. 4 роки тому +1

    Sir, you are doing great job !

  • @jigarjoshi9198
    @jigarjoshi9198 4 роки тому

    I like your easy way of explanation ...sir it's great

  • @laxmigupta9401
    @laxmigupta9401 4 роки тому +1

    1st viewer me... Thanku sir

  • @Sandeep_kumar_anand_
    @Sandeep_kumar_anand_ 4 роки тому

    Hero he aap Harry Bhaiya Q ki aap itna Acha se samjha dete he ham sabko thanks Bhaiya ♥️

  • @samuelfrank1369
    @samuelfrank1369 2 роки тому

    Thanks a lot Bhaiya...Me 100th comment....Hurray!!!!!!

  • @cannabis6870
    @cannabis6870 4 роки тому

    Bhaiya you are my ideal...

  • @ameydudwadkar2547
    @ameydudwadkar2547 2 роки тому

    This is very usefull for us👌👌

  • @jenilgandhi9941
    @jenilgandhi9941 4 роки тому

    nice explanation harry bhai

  • @TheVedicWarrior
    @TheVedicWarrior 2 роки тому

    LOVE UHH 3000 ❤❤🙌

  • @Secret_Superstar_Girl
    @Secret_Superstar_Girl Рік тому +1

    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.

  • @engineerbhai7642
    @engineerbhai7642 4 роки тому

    Very nice video. You are best coder.

  • @freekeys
    @freekeys 4 роки тому

    Harry bhai apko lambi umar de😂 sachi me bahut helpful ho ap

  • @mahbobalam4430
    @mahbobalam4430 4 роки тому

    Vai u r awesome.... 😍😍😍

  • @RohanDasRD
    @RohanDasRD 4 роки тому +1

    Awesome Job Bhai!

  • @programmingwithjavascript3579
    @programmingwithjavascript3579 4 роки тому +3

    8:58 listen carefully and tell me on comment 🤔🤔🤔🤔

  • @gbcsongs8164
    @gbcsongs8164 3 роки тому

    LOVE YOU HARRY BAHI FROM PAKISTAN

  • @vaibhavgupta4413
    @vaibhavgupta4413 4 роки тому

    Great channel

  • @jalajgautam8951
    @jalajgautam8951 3 роки тому

    maza agya harry bhai :')

  • @desientertainers9706
    @desientertainers9706 3 роки тому

    My guru😍😍

  • @vickygupta1392
    @vickygupta1392 4 роки тому

    Very nice 👍👌

  • @vaibhavpatekar119
    @vaibhavpatekar119 4 роки тому

    Thank you sr....

  • @Jayesh_Tarole
    @Jayesh_Tarole 2 роки тому

    Harry Bhai ❤❤❤
    W3 School

  • @sumanvlog7050
    @sumanvlog7050 4 роки тому

    Great bro

  • @nishantsingh859
    @nishantsingh859 4 роки тому +6

    Bhai ethical hacking course par bhi video banao :)
    Luv u Harry Bhai ❤️

  • @kalpitjindal688
    @kalpitjindal688 4 роки тому

    good job buddy

  • @swarnalisaha7096
    @swarnalisaha7096 2 роки тому

    thanks

  • @garvit11joshi
    @garvit11joshi 4 роки тому +1

    Bro, I really like your videos but please make a playlist on react. or can you suggest a playlist?

    • @summershorts525
      @summershorts525 2 роки тому

      he had also made a video on react . check it out!! that's is awesome video

  • @omprakashprajapati2952
    @omprakashprajapati2952 3 роки тому

    server, cpu aur ram ke liye hath jod krr bhik mang rha hoga 😂😂😂😂😂😂 ......... This one very nice

  • @AbhishekSharma-ts8my
    @AbhishekSharma-ts8my 4 роки тому +1

    Great work
    you have done 👍
    Just keep it up

  • @sumitnautiyal9934
    @sumitnautiyal9934 4 роки тому

    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

  • @Luve_yourself
    @Luve_yourself 2 роки тому

    Sir 😂akhri baat: sir bht sara piyaar apko Pakistan sey 😁

  • @manrahulbajwa
    @manrahulbajwa 4 роки тому +1

    Django social media tutorials we are wating

  • @Aakib180
    @Aakib180 4 роки тому +1

    Harry bhai please make Social network in one video in django please i also shared your django playlist daily please make harry bhai

  • @dhruvilmehta3455
    @dhruvilmehta3455 4 роки тому +2

    Data structures and algorithm full course kab aayega ??????

  • @creationduwal
    @creationduwal 4 роки тому +1

    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.

  • @abhinavadarsh7150
    @abhinavadarsh7150 4 роки тому +1

    bro web hosting on ubuntu server in virtual box par one video

  • @YogeshKumar-vn9kf
    @YogeshKumar-vn9kf 4 роки тому

    Harry bhaiya please make video on graphic designing full course please please please

  • @B-gmiGamer
    @B-gmiGamer 4 роки тому

    Harry bhai! Ek android study apk banao like G.K or other

  • @Aakib180
    @Aakib180 4 роки тому

    Harry bhai please make social network in one video please please

  • @farajabbas7459
    @farajabbas7459 4 роки тому

    Hi harry, please make the series of node.js completely please, your subscriber from Pakistan

  • @keshabpal6640
    @keshabpal6640 10 місяців тому

    what are the differences between r and r+ in practical result.

  • @JitendraSingh-lz8yo
    @JitendraSingh-lz8yo 3 роки тому +1

    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 .....

  • @manojtripathi7583
    @manojtripathi7583 4 роки тому

    Bhaiya java language tutorial kab la rhe h please reply............

  • @vashupandey2212
    @vashupandey2212 4 роки тому +5

    hey Harry Porter oh sorry Harry Coder,😊😊

  • @princesukhala7106
    @princesukhala7106 2 роки тому

    Done done again

  • @AkashSingh-of4wc
    @AkashSingh-of4wc 4 роки тому

    Harry Bhai machine learning and deep learning lecture kab Tak start karenge

  • @udayan285
    @udayan285 2 роки тому

    Thanks #HarryBhai

  • @asdf-od5nm
    @asdf-od5nm 4 роки тому +1

    How to open and image then add text on it and save it?

  • @rajkumarsingh3826
    @rajkumarsingh3826 3 роки тому

    sir content is awesome. But the website has so many errors please check it.

  • @kaushalshah2930
    @kaushalshah2930 4 роки тому

    Harry bhai c# pe video banaye

  • @ahmedkahout3537
    @ahmedkahout3537 4 роки тому +2

    first

  • @ashokkumarsingh7117
    @ashokkumarsingh7117 4 роки тому

    😑😑😑Harry bro you come in my dream 😑😑😑

  • @chillsoftwarengineer
    @chillsoftwarengineer 4 роки тому

    Bhai url rewriting ke upar bnao na video please or live kese krte h php website with url rewriting

  • @nayanraval5359
    @nayanraval5359 4 роки тому +1

    File Mode: r+, a+,c,e ek bar zarror dekhe ! :)

  • @Aakib180
    @Aakib180 4 роки тому

    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+

  • @pushpendrasharma873
    @pushpendrasharma873 4 роки тому

    Bhai plz ek playlist data structures par bana do plzzz

  • @afridshaikh2986
    @afridshaikh2986 4 роки тому

    Bhai python beginner ke liye konsi book refer karna hongi
    Bhai please reply

  • @mannujindal7449
    @mannujindal7449 4 роки тому +1

    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

  • @gururaj2199
    @gururaj2199 4 роки тому

    Very good indeed!!!!

  • @yogeshpanzade5572
    @yogeshpanzade5572 4 роки тому

    If we read a binary file in binary reading mode then will we get its compiled content

  • @hindilanguage7001
    @hindilanguage7001 4 роки тому +1

    Bhai Aapke Instagram pr massage Kiya tha Aapne seen nhi kiya

  • @siddusmart1376
    @siddusmart1376 2 роки тому

    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

  • @satnamdeveloper3312
    @satnamdeveloper3312 3 роки тому

    sir agar mera document hindi aur english mai hai to vo kaise read karega?

  • @thedaktech1850
    @thedaktech1850 4 роки тому

    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

  • @Luve_yourself
    @Luve_yourself 2 роки тому

    Sir mein zumeydari leyta hun apney files ko close krney ka 😁

  • @moviehub8900
    @moviehub8900 4 роки тому

    Sir react native tutorial please

  • @Rohan_jurni
    @Rohan_jurni 3 роки тому +1

    harry bro, this is Rohan, plz make a playlist on hacking too, with projects

  • @user-wm7do5kz4f
    @user-wm7do5kz4f 3 роки тому

    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.

  • @vivekkumar-yt7os
    @vivekkumar-yt7os 4 роки тому

    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.. 🙏

  • @amitbhuria943
    @amitbhuria943 4 роки тому

    Hello sir kya aap chat application bna sakte ho javascript me.
    Communicate two html files

  • @itxxsaiff
    @itxxsaiff 2 роки тому

    PHP Tutorial #35 Watched

  • @amanshaw4588
    @amanshaw4588 4 роки тому

    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

  • @abdurrazzaque5551
    @abdurrazzaque5551 4 роки тому

    how i can master any programming language

  • @funnyboys6733
    @funnyboys6733 4 роки тому

    Sir PHP pe jitna ho sake bato please

  • @tycoon9328
    @tycoon9328 4 роки тому

    c++ ki video dal do bhiya

  • @maheshpawar7166
    @maheshpawar7166 4 роки тому

    Erlang programming language playlist please

  • @coderunstudio
    @coderunstudio 3 роки тому

    freeze hi nahi hai ghar mein harry bhaiya🤣😥

  • @shashidiet5590
    @shashidiet5590 4 роки тому

    Bhai 10 tarikh ko video kyo nahi dala
    Mai aapke video ke liye tadap rha hu

  • @sagardabhi7125
    @sagardabhi7125 2 роки тому

    ❤️

  • @kiragaming4499
    @kiragaming4499 3 роки тому

    please make a playlist for php

  • @MohitKumar-uh1dv
    @MohitKumar-uh1dv 4 роки тому

    Automatically band ho jata hai 🥰🙏🥰

  • @mdzahidhussain4170
    @mdzahidhussain4170 4 роки тому

    First..

  • @snphpowerhouse
    @snphpowerhouse 4 роки тому

    👌

  • @ankitsharma5329
    @ankitsharma5329 4 роки тому

    Hello

  • @hemantsharmachannel
    @hemantsharmachannel Рік тому

    Coding world ke harry porter

  • @Abhishek-n4w1s
    @Abhishek-n4w1s Рік тому

    harry minati

  • @lildax5390
    @lildax5390 4 роки тому +1

    13:27 😂

  • @dixitbalasys
    @dixitbalasys 7 місяців тому

    Harry bhai you are married

  • @lakshkumrawat140
    @lakshkumrawat140 4 роки тому

    Sir video PHP ki he
    Par aapne thumbnail HTML wali boilerplate kyu lagayi he
    😁😁

  • @anythingtop2574
    @anythingtop2574 3 роки тому

    very long