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

КОМЕНТАРІ • 111

  • @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

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

  • @meghana3005
    @meghana3005 3 роки тому +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

  • @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

  • @coding_classes_
    @coding_classes_ 7 місяців тому +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

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

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

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

    Sir you are my inspiration.

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

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

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

    Sir, you are doing great job !

  • @Secret_Superstar_Girl
    @Secret_Superstar_Girl 9 місяців тому +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.

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

    thanks

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

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

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

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

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

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

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

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

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

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

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

    hey Harry Porter oh sorry Harry Coder,😊😊

  • @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

  • @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 ♥️

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

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

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

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

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

    Bhaiya you are my ideal...

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

    LOVE UHH 3000 ❤❤🙌

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

    Thanks #HarryBhai

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

    LOVE YOU HARRY BAHI FROM PAKISTAN

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

    nice explanation harry bhai

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

    This is very usefull for us👌👌

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

    Awesome Job Bhai!

  • @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

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

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

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

    Thank you sr....

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

    Done done again

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

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

    Great channel

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

    Very nice video. You are best coder.

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

    Harry bhai please make social network in one video please please

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

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

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

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

    Great bro

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

    My guru😍😍

  • @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

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

    Vai u r awesome.... 😍😍😍

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

    Very nice 👍👌

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

    1st viewer me... Thanku sir

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

    maza agya harry bhai :')

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

    good job buddy

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

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

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

    ❤️

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

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

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

    Harry Bhai ❤❤❤
    W3 School

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

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

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

    Great work
    you have done 👍
    Just keep it up

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

    Bhai plz ek playlist data structures par bana do plzzz

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

    PHP Tutorial #35 Watched

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

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

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

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

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

    Harry bhai c# pe video banaye

  • @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

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

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

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

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

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

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

  • @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

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

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

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

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

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

    Sir react native tutorial please

  • @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+

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

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

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

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

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

    👌

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

    Very good indeed!!!!

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

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

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

    Sir PHP pe jitna ho sake bato please

  • @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

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

    c++ ki video dal do bhiya

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

    first

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

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

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

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

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

    Erlang programming language playlist please

  • @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

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

    how i can master any programming language

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

    please make a playlist for php

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

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

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

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

  • @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

  • @SauravSinghGarg-yb2vu
    @SauravSinghGarg-yb2vu 2 роки тому

    freeze hi nahi hai ghar mein harry bhaiya🤣😥

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

    Hello

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

    Coding world ke harry porter

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

    Automatically band ho jata hai 🥰🙏🥰

  • @user-kq9uu8hb3g
    @user-kq9uu8hb3g Рік тому

    harry minati

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

    First..

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

    very long

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

    13:27 😂

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

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

  • @dixitbalasys
    @dixitbalasys 4 місяці тому

    Harry bhai you are married

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

    me nahi karta LOL!!!