In this video we will look at some functions to work with files, folders and paths such as basename(), dirname(), file_get_contents(), fopen(), fread() and much more
CODE: Code for this video
BROWSER EXTENSION: Momentum
EDUONIX COURSES: Please use affiliate links from website below
SUPPORT: We spend massive amounts of time creating these free videos, please donate to show your support:
FOLLOW TRAVERSY MEDIA:
Nguồn: https://svdpch.org/
Xem thêm bài viết khác: https://svdpch.org/cong-nghe/
Freaking awesome
Thanks a million for the great course, Brad. At 14:00 appending to a file seemed a bit too complicated to me and i was wandering if there is a way to do it in less code and res usage. I've found that file_put_contents() takes its mode as a parameter, so " file_put_contents($file, 'goodbye world', FILE_APPEND); " would work as well.
Nice series broken down to small pieces so that it is easy to follow and easy to go back to topics that need to be refreshed. Also Brad takes the time to show the alternative scenarios when entering lines of data.
I used to hate php but i am loving it now, thanks man keep it up, we really appreciate your efforts, so useful
How can I write a html file in PHP or any other extensions file like PHP itself or python
Thank You for the course
🙂
If anyone else was confused like I was, "fread" on line 62 takes two parameters, the $handle we defined and a file size it reads up to. To read the whole file we used the filesize function to read every byte of the file.
Hello Traversy, please can you show me how to use the PHP id3_tags
id3_get_frame_long_name
id3_get_frame_short_name
id3_get_genre_id
id3_get_genre_list
id3_get_genre_name
id3_get_tag
id3_get_version
id3_remove_tag
id3_set_tag
any help from you will be useful
Hey how to work with CSV files?
I take my hat off to you Brad!
damn very nice tutorial
11:55 Hello World hh
File Uploading is missing in this series
I am a college student and i am doing my last semester project, i am glad i saw your videos about php you helped me a lot with these videos . You are a better teacher from any other teacher at my college!!
thanks
Does the file extension trick for basename only work if you know the extension?
thanks for the php tutorials…it has been a blast so far. keep do it…your are great teacher.
In this video, I saw a lot of similarity with Python
definetly wishing for javascript/php/ajax with json related videos. Thumbs up.
Fantastic videos Brad. I've been working through your PHP playlist for the past couple of days and you are a fantastic teacher.
"Lets pass in $file …….. and we get nothing …….. thats because there is no $file2 …. " lmao so calm and steady was funny.
I use Ubuntu and when I use the last thing we did (create file2.txt and write to it). It creates the file and write to it but I cant save the file. So I figured I have to go into file system and change privileges manually. and for some reason I cant even do that since I don't own the file. some "deamon"-thing owns it.
It made me think about if you develop a website in Windows and deploy it on an Ubuntu system, can that give you problems you don't know before you test it (after you deployed it)?
I'm not so used to Ubuntu and learn it because so many website companies use it. I must say I miss Windows where everything works out of the box (more or less). But I'm not giving up yet on Ubuntu.
Great for beginners like me!
You have to be pissing alot of bootcamp peeps off … I love It !!! hehe
I really liked this series please keep sharing video Brad. Your all videos awesome you are really good teacher..
Please waiting for the next video
and kindly please make a tutorial on login system
waiting for next video