Beginner PHP Tutorial - 77 - File Handling: Writing to a File

  Рет қаралды 100,749

thenewboston

thenewboston

Күн бұрын

Пікірлер: 47
@thetechgeneration
@thetechgeneration 12 жыл бұрын
I had the same problems with MAMP. If you are using a local version of apache, you have to give your LAMP/WAMP/LAMP stack permission to write files.
@McGavel1
@McGavel1 9 жыл бұрын
Very cool stuff. Thanks for going through this in a an easy-to-understand step-by-step fashion.
@lorenz987
@lorenz987 7 жыл бұрын
I couldn't create a file on my webserver so had to manually change permissions (chmod) of the folder where my files were in. Even 6 years after these tutorials were made, they are still helpful!
@paulmcneice1
@paulmcneice1 11 жыл бұрын
dude i know this was four months ago but what i did was (on mac) Open applications folder Locate XAMPP folder Right click, get info Click the 'locked' padlock symbol Enter admin password Change 'Everyone' permissions to read & write select the 'cog' icon' drop down option at the very bottom and select 'Apply to enclosed items' this will adjust the permission across all sub-folders as well. Re-lock the padlock symbol Task complete,
@johnpatrickbrines7168
@johnpatrickbrines7168 8 жыл бұрын
Hello i cant view my Index try to look at 2:37 of this video please help me
@OCEANbreezeDIA
@OCEANbreezeDIA 13 жыл бұрын
@noneofthem Did you check the newly written files' permissions in Linux?
@mastermax7777
@mastermax7777 13 жыл бұрын
i have been waiting long for this tutorial :d ty alex for making these wonderful tutorials
@WhereTheStoryEnds
@WhereTheStoryEnds 13 жыл бұрын
Great tuts. Could you tell me what screen recorder are you using?
@gauravdawg
@gauravdawg 11 жыл бұрын
i was just wondering why does reloading the file.php does not keep writing the values again and again in the names.txt
@thisisnotreal900
@thisisnotreal900 11 жыл бұрын
Hi guys, if the " " (the newline) part doesn't seem to work in your program, try " " instead. It works for me :)
@senpaicore925
@senpaicore925 7 жыл бұрын
Hey I'm wondering why " " doesn't work for me. And how to use PHP_EOL?
@benx05
@benx05 11 жыл бұрын
any idea how to use this on linux? it won't create any file..
@PugsForties
@PugsForties 13 жыл бұрын
How do you get to this page? This "Index Of" page?
@lestercute892
@lestercute892 7 жыл бұрын
So where this function would be useful in the actual website? you didn't tell us at the end of this video.
@S.Hexa.L
@S.Hexa.L 7 жыл бұрын
it do not work on windows sever 2012 can sum one help me?
@navjeetsingh7556
@navjeetsingh7556 12 жыл бұрын
i am notgeeting the result i received an error suggest me the solution
@pocong7ganu
@pocong7ganu 7 жыл бұрын
here how to use PHP_EOL fwrite($handle, 'Alex'.PHP_EOL); fwrite($handle, 'Bilis');
@dionadewiriana6457
@dionadewiriana6457 7 жыл бұрын
this actually works, thanks
@anthonyrosamilia3498
@anthonyrosamilia3498 10 жыл бұрын
So if i wanted to make a submit button inside index.html would it be and this would make whats in file.php write to the text file as well?
@KrizaIid117
@KrizaIid117 9 жыл бұрын
As long as I know, there's no METHOD="LINK" for a FORM element, so you should use an anchor with href: Execute file.php And yes, this will execute whatever is inside file.php.
@vaishnaviganseh2884
@vaishnaviganseh2884 8 жыл бұрын
Hello Alex. I am having trouble opening the file. I get this warning when I do so. "Warning: fopen(names.txt): failed to open stream: Permission denied in /Applications/XAMPP/xamppfiles/htdocs/services/filehandling/file.php on line 4" How am I meant to solve this issue? Please help :)
@wavestechnology6926
@wavestechnology6926 7 жыл бұрын
Hi there Wonderful tutorials :) is it possible (in video tutorial ) to change video number from '"79" to be "78" so the first tutorial will be "Write" and then "append" and lastly "reading" when you watch first file then "reading " there is code not clearing but cleared in the "append" video . Thanks indeed :)
@jhimsonraypamisa5628
@jhimsonraypamisa5628 9 жыл бұрын
" " for new line doesn't works on my php :3 please help!
@brunoribeiro1383
@brunoribeiro1383 6 жыл бұрын
It is backslash above your enter key, not the forward slash
@Dalwanaage
@Dalwanaage 13 жыл бұрын
Good tuts. Thanks the Thenewboston and Alex.
@sunkyamzat7732
@sunkyamzat7732 8 жыл бұрын
concise and explicit..makes perfect sense.
@lahavs10
@lahavs10 13 жыл бұрын
If for anyone the linebreak doesn't work, use the.PHP_EOL instead.
@movie627
@movie627 11 жыл бұрын
if or doesn't work for you! Just use PHP_EOL
@RahilWazirAli
@RahilWazirAli 12 жыл бұрын
early in the morning watched this fresh tutorial
@Kanosauries
@Kanosauries 12 жыл бұрын
Thanks a lot! Otherwise, I would have taken forever to figure out why nothing was happening.
@BrianSy
@BrianSy 11 жыл бұрын
didn't work for me, worked
@hassanbaiga
@hassanbaiga 12 жыл бұрын
You mean CRUD ?
@PaulFriemel
@PaulFriemel 9 жыл бұрын
@Paul Mcneice you are the F'in man
@JoyfulElephant
@JoyfulElephant 12 жыл бұрын
That applies to SQL. Not here
@IanStubbsR
@IanStubbsR 12 жыл бұрын
Thanks! That worked perfectly for me.
@ryandsouza9093
@ryandsouza9093 10 жыл бұрын
in the subtitles: 1:00 the third one is for acne lol
@camarenalove
@camarenalove 13 жыл бұрын
Great teacher!
@bigfuzzydog
@bigfuzzydog 11 жыл бұрын
Yep - that did work for me. Thanks!
@cjvaans4484
@cjvaans4484 11 жыл бұрын
The worked for me.
@alex_smith123
@alex_smith123 11 жыл бұрын
I wish he wrote bucky instead of billy
@Decodeish1
@Decodeish1 12 жыл бұрын
This is so like c++.
@vyuutuube
@vyuutuube 9 жыл бұрын
great work Alex.
@rajalakshmi-ki3he
@rajalakshmi-ki3he 6 жыл бұрын
tq
@westfield90
@westfield90 6 жыл бұрын
So helpful
@TheGuroguro12
@TheGuroguro12 8 жыл бұрын
thanks.
@gauravdawg
@gauravdawg 11 жыл бұрын
Thanks :)
@mann5681
@mann5681 7 жыл бұрын
i want to follow you everywhere alex...pl give me ur social urls...like fb and instagram...etc
Beginner PHP Tutorial - 78 - File Handling: Reading a File
8:50
thenewboston
Рет қаралды 93 М.
Beginner PHP Tutorial - 82 - File Handling: Listing Files Part 1
5:30
#behindthescenes @CrissaJackson
0:11
Happy Kelli
Рет қаралды 27 МЛН
Jaidarman TOP / Жоғары лига-2023 / Жекпе-жек 1-ТУР / 1-топ
1:30:54
SLIDE #shortssprintbrasil
0:31
Natan por Aí
Рет қаралды 49 МЛН
Beginner PHP Tutorial - 73 - Setting PHP Sessions
7:44
thenewboston
Рет қаралды 191 М.
Writing Code That Runs FAST on a GPU
15:32
Low Level
Рет қаралды 572 М.
Read Text File Into a PHP Array with PHP file() Function
3:44
Clever Techie
Рет қаралды 4,7 М.
Become a bash scripting pro - full course
36:00
CODE IS EVERYTHING
Рет қаралды 72 М.
How Do Linux Kernel Drivers Work? - Learning Resource
17:02
LiveOverflow
Рет қаралды 563 М.
⚡️NEWS | UNITED RUSSIA OFFICE AND ATMS BURNED DOWN | COMPLAINING TO PUTIN ABOUT GREF
9:14
x86 Assembly: Hello World!
14:33
John Hammond
Рет қаралды 1,4 МЛН
Malware Development: Processes, Threads, and Handles
31:29
Beginner PHP Tutorial - 75 - Creating Cookies with PHP
7:42
thenewboston
Рет қаралды 140 М.
#behindthescenes @CrissaJackson
0:11
Happy Kelli
Рет қаралды 27 МЛН