Beginner PHP Tutorial - 105 - Reading a Simple XML File: Part 1

  Рет қаралды 90,179

thenewboston

thenewboston

Күн бұрын

Пікірлер: 55
@WhereTheStoryEnds
@WhereTheStoryEnds 12 жыл бұрын
No matter if Alex makes mistakes or not, these are still great tutorials.
@ShimonKupferman
@ShimonKupferman 3 жыл бұрын
This particular video helped me very much in a life-saving project. Bless you!
@ahmedbashir9290
@ahmedbashir9290 8 жыл бұрын
we really missing u bucky...!!!!
@h.p.lovecraft9079
@h.p.lovecraft9079 9 жыл бұрын
This way is little better i think: foreach($xml->producer as $producer){ foreach($producer as $value){ echo $value.' '; } echo ' '; }
@JohnInKansasCIty
@JohnInKansasCIty 9 жыл бұрын
just what I needed. good presentation. thanks!
@shourabhpayal1198
@shourabhpayal1198 8 жыл бұрын
thank goodness for 2x :D
@RahilWazirAli
@RahilWazirAli 12 жыл бұрын
thank you alex i was confused about this sign ->
@ATSPARIStransfers
@ATSPARIStransfers 7 жыл бұрын
Thank you !! thanks you so so so much !!!!! You're awesome !
@johnmart09
@johnmart09 11 жыл бұрын
thank you again.
@TuanNguyen-pj9ep
@TuanNguyen-pj9ep 8 жыл бұрын
Thank you very much!
@autocadal
@autocadal 7 жыл бұрын
you are just great. best wishies
@TheGuroguro12
@TheGuroguro12 8 жыл бұрын
Thank you.
@huw3851
@huw3851 6 жыл бұрын
Nice simple example to get you started - often the most difficult part. Of course mine didn't work first go but that appears to be an issue with my xml file - don't know why yet because it opens in a browser OK. But using a small simple xml file got me past that.
@horrorbreakdown
@horrorbreakdown 11 жыл бұрын
Great tutorial!
@lordyrich
@lordyrich 13 жыл бұрын
@MrValles10 XML elements dont need a dollar sign unless you turn on into a varaible for a foreach loop . So in that case he wasnt being a noob at all.
@shaun_rambaran
@shaun_rambaran 7 жыл бұрын
Thanks.
@Dalwanaage
@Dalwanaage 13 жыл бұрын
goot tut.
@cjvaans4484
@cjvaans4484 7 жыл бұрын
Nice!
@VonSherman
@VonSherman 10 жыл бұрын
very helpful saved me a lot of time thanks mate :)
@swapnilsonsurkar2136
@swapnilsonsurkar2136 8 жыл бұрын
finally xml :0
@MrValles10
@MrValles10 13 жыл бұрын
@deimis321 No, that part he was doing is BASIC PHP. Evn YOU wouldn't make a mistake like that. You can NEVER access a variabel by typing a 'word' without using the $-symbol, except if you define it. And secondary, he makes a second mistake on that same thing, cheezes
@Японскиекроссворды-разгадывани
@Японскиекроссворды-разгадывани 10 жыл бұрын
спасибо! облазил интернет нигде не мог найти этот ебучий код! а тут оказалось как то все уж сильно просто даже)
@michellevacunawa2098
@michellevacunawa2098 11 жыл бұрын
what if i want to display images? a big image and some thumbnails?
@RahilWazirAli
@RahilWazirAli 12 жыл бұрын
wish there could be 100's of subcribe buttons so i can click all of them for your videos
@Arcthoor
@Arcthoor 11 жыл бұрын
Why would you not want to use it? Seems organized and simple to me. What else would I use?
@lordyrich
@lordyrich 13 жыл бұрын
@MrValles10 Are you refering to the XML element 'age'?
@AlexGomes09
@AlexGomes09 11 жыл бұрын
+ reading xml seems a bit messy to me. Imagine there were too many deep structured xml data.
@xXxBladeStormxXx
@xXxBladeStormxXx 12 жыл бұрын
Kinda reminds me of objects and classes in C++
@TechLearningstudio
@TechLearningstudio 11 жыл бұрын
is there any way where we can dynamically update our XML file as per user input, Please reply?
@FFWDEntertainment
@FFWDEntertainment 13 жыл бұрын
What do you mean the root isn't important? What if I have multiple objects?
@thesickbeat
@thesickbeat 12 жыл бұрын
@MrValles10 If you speak as much programming languages as me or Alex does you make these kind of mistakes from time to time. If you consider someone a noob if he makes a mistake I wonder what knowledge you're sharing for free and how perfect you are.
@workingTchr
@workingTchr Жыл бұрын
For some reason the British just explain everything better.
@MrValles10
@MrValles10 13 жыл бұрын
BTW, to make things clear. I'm not saying that this tutorial is bad or something, I really done'! I just want to say that the part I am reffering to is really stupid. He could easily cut it out and rerecord it...
@LargeCube
@LargeCube 13 жыл бұрын
@LargeCube ahh I got it :) silly me
@Masteryxx
@Masteryxx 12 жыл бұрын
Then those multiple objects would be enclosed by a root tag.
@xxiRaQiAtheistxx
@xxiRaQiAtheistxx 11 жыл бұрын
I wonder what does this means ''$this -->"
@LargeCube
@LargeCube 13 жыл бұрын
i have a problem.... $xml = simplexml_load_file('example.xml'); Warning: simplexml_load_file() [function.simplexml-load-file]: I/O warning : failed to load external entity "example.xml" in H:\xampp\htdocs\Mokymasis\Reading a Simple XML File.php on line 2
@ashrafshealthvlog7385
@ashrafshealthvlog7385 9 жыл бұрын
billy is 16 years old
@husainahmmed9025
@husainahmmed9025 9 жыл бұрын
+Ashraful Alam billy is 16 years old but not Bucky.
@xxiRaQiAtheistxx
@xxiRaQiAtheistxx 11 жыл бұрын
in your xml file don't add "&" character or any other characters.
@MrValles10
@MrValles10 13 жыл бұрын
@lordyrich I am
@RagHelen
@RagHelen 8 жыл бұрын
Another cloned SimpleXML tutorial. They always have the same superfiacial content and they always use the producer[1] bullshit as if someone would actually count the order of the elements in an XML-file. Of course, one would use an key-child, but from that moment on, SimpleXML gets buggy and unreliable, especially the @-structure I have spent much time getting SimpleXML running in a real environment. It turnes out to be unnecessarily unsimple. For instance, every child has to be transformed into a PHP variable before you can use it. It would be easier to make one central php-files with hundreds of variables :)
@rw7799
@rw7799 6 жыл бұрын
what do you do instead? load xml into a database? not enough real world examples. xml is a piss of piss,,,its how you use it in websites etc that is the hard part..
Beginner PHP Tutorial - 106 - Reading a Simple XML File: Part 2
7:36
Learn Kotlin in 12 Minutes
12:01
Rahul Pandey
Рет қаралды 335 М.
2 MAGIC SECRETS @denismagicshow @roman_magic
00:32
MasomkaMagic
Рет қаралды 32 МЛН
How Strong is Tin Foil? 💪
00:25
Brianna
Рет қаралды 66 МЛН
Smart Sigma Kid #funny #sigma
00:14
CRAZY GREAPA
Рет қаралды 106 МЛН
Who's spending her birthday with Harley Quinn on halloween?#Harley Quinn #joker
01:00
Harley Quinn with the Joker
Рет қаралды 20 МЛН
How A Steam Bug Deleted Someone’s Entire PC
11:49
Kevin Fang
Рет қаралды 1 МЛН
Beginner PHP Tutorial - 96 - MD5 Encryption Part 1
7:48
thenewboston
Рет қаралды 62 М.
7 Cybersecurity Tips NOBODY Tells You (but are EASY to do)
13:49
All Things Secured
Рет қаралды 777 М.
Vim Tips I Wish I Knew Earlier
23:00
Sebastian Daschner
Рет қаралды 76 М.
How GitHub's Database Self-Destructed in 43 Seconds
12:04
Kevin Fang
Рет қаралды 1 МЛН
Beginner PHP Tutorial - 92 - Creating a non-unique Hit Counter
9:26
Крошечный Mac Mini на M4 Pro. Л - Любовь.
10:41
One CPU To Rule Them All - Ryzen 7 9800X3D Review
12:47
Linus Tech Tips
Рет қаралды 1,1 МЛН
Beginner PHP Tutorial - 108 - An Introduction to Databases
5:38
thenewboston
Рет қаралды 72 М.
2 MAGIC SECRETS @denismagicshow @roman_magic
00:32
MasomkaMagic
Рет қаралды 32 МЛН