Very useful information I had previously missed, not using closing tags on php only files and how to embed php within html a better way, very useful and helpful, thanks!
hello i am just a kid learning web development . and recently my father asked me to create a small website for him . (a matriomony website). i was super stuck on the php part . i couldnt notice any errors in it . turns out its because i added the closing tag too . this was a big help
Note this block of code: //some html code here This code will generate an error unless you have a space before the closing bracket and semi-colon (e.g. ). I had to learn this the hard way after a long process debugging this problem on a file with long lines of code.
Hi and thanks for the videos! I was wondering if we have some code formatter like Prettier, or some good Vscode extension for PHP to automatically make those indentations and spaces in code?
You can recognize someone who never wrote c# or php by the lack of semicolons 🤣 This is what made me love Laravel, just using 2 open and close curlies instead of the php tags is soo much nicer.
bro i watched this like december 2023, going back right now september 2024, i just understand this lesson way clearer. still a noob tho and slow learner currently at episode 23 xd
You don't HAVE to learn HTML... But you will quickly realize that HTML is the "interface" that users on your website, will use to activate a lot of your PHP features. So it is strongly recommended that you know HTML, since most PHP features involve it.
Given that PHP is in the webpage (just like HTML) it looks like it will be executed in the browser. But it is server-side, does this mean that the PHP is executed in the server before the page is served? If so, is it executed just once or every time the page is served? When executing php, what is produced: HTML/javascript/typescript that will be executed in the browser or something else? It's good to get these concepts right from the beginning. Can you provide a realistic example of when we might want to use PHP?
PHP is executed on the server before any front-end, so not alongside HTML, CSS, and JavaScript, which is run inside the browser. Anytime you run code that should not be accessible to the user, we use PHP, and anytime we want to create dynamic content.
@@Dani_Krossing Thanks. How can PHP provide dynamic content if it runs earlier than hitting the front end? To be dynamic I'm guessing the PHP is run immediately before serving the page (so it picks up the latest content)?
Prof. Dani Krossing, please MySQL server isn't running on my XAMPP Control Panel. saying "Error: MySQL shutdown unexpectedly. This may be due to a blocked port, missing dependencies, improper privileges, a crash, or a shutdown by another method. Press the Logs button to view error logs and check the Windows Event Viewer for more clues. If you need more help, copy and post this entire log window on the forums". WHAT SHOULD I DO?
Thank you soooo much I am loving everything
a " Future You " ... brilliant !!
Oh boy, if only you could see how I've echoed out a TON of HTML within a php string... Time to go and refactor! 😂 Dani saves the day once again.
your approach is excellent every body just say that
Very useful information I had previously missed, not using closing tags on php only files and how to embed php within html a better way, very useful and helpful, thanks!
Great explanation!
hello i am just a kid learning web development . and recently my father asked me to create a small website for him . (a matriomony website). i was super stuck on the php part . i couldnt notice any errors in it . turns out its because i added the closing tag too . this was a big help
You're the best teacher on the world. Love you man.
Note this block of code:
//some html code here
This code will generate an error unless you have a space before the closing bracket and semi-colon (e.g. ).
I had to learn this the hard way after a long process debugging this problem on a file with long lines of code.
As a React and Angular dev, this syntax is just horrific 🤢
thanks for this - helped alot. I was just wondering if my editor was having issues
echo "Dani Krossing is a genius";
useful Thanks for sharing.
I followed your first 65 lessons on php. I still like the relaxed way, taking time! to explain everything. Big Thank you.
Thanks for the vid! :D
for anyone wondering the length of this whole course is 10h 49m 1s.
Gosh dang I have recorded a lot then 😅 good to know for if I make a “one combined video”
Beautiful video
Would really love u to do a step by step react js course
yes please
Me and my OCD trying to clean my monitor after seeing a white dot near the upper-left side of your narrator inset. 🤣 Great instruction btw!
thankyou sir
Thank you
thank u sir " Dani " lOve u ☺
Will you be doing a real world project in PHP this time? Hopefully a full CMS with Login Pleese.
Hi and thanks for the videos!
I was wondering if we have some code formatter like Prettier, or some good Vscode extension for PHP to automatically make those indentations and spaces in code?
oh, i shoud've learn HTML and CSS first
You can recognize someone who never wrote c# or php by the lack of semicolons 🤣
This is what made me love Laravel, just using 2 open and close curlies instead of the php tags is soo much nicer.
I am from somalia
I am not from somalia.
Should I save the file as a .Html or .PHP?
Teacher dani we need react course and python special django frame work and tailwind css
Oh please, Dani!
Great series I enjoyed it.
But can't believe Elon Musk has a programming UA-cam channel.
bro i watched this like december 2023, going back right now september 2024, i just understand this lesson way clearer. still a noob tho and slow learner currently at episode 23 xd
❣️
😊
Hi! I have programmed in java and python (no server/client things). Do I need to learn HTML before php?
You don't HAVE to learn HTML... But you will quickly realize that HTML is the "interface" that users on your website, will use to activate a lot of your PHP features.
So it is strongly recommended that you know HTML, since most PHP features involve it.
@@Dani_Krossing oh ok, thanks for responding! So you never JUST use php on it's own? It's always together with html?
Given that PHP is in the webpage (just like HTML) it looks like it will be executed in the browser. But it is server-side, does this mean that the PHP is executed in the server before the page is served? If so, is it executed just once or every time the page is served? When executing php, what is produced: HTML/javascript/typescript that will be executed in the browser or something else? It's good to get these concepts right from the beginning. Can you provide a realistic example of when we might want to use PHP?
PHP is executed on the server before any front-end, so not alongside HTML, CSS, and JavaScript, which is run inside the browser. Anytime you run code that should not be accessible to the user, we use PHP, and anytime we want to create dynamic content.
@@Dani_Krossing Thanks. How can PHP provide dynamic content if it runs earlier than hitting the front end? To be dynamic I'm guessing the PHP is run immediately before serving the page (so it picks up the latest content)?
Yes, PHP is loaded every time you open or refresh a page.
Can you help me and point why I cannot embed the php code in the html file?
So gland toi see ; and {} like in thé c language
Getting this error:
Parse error: Unclosed '{' on line 25
when writing this:
Some HTML text.
Prof. Dani Krossing, please MySQL server isn't running on my XAMPP Control Panel. saying "Error: MySQL shutdown unexpectedly. This may be due to a blocked port, missing dependencies, improper privileges, a crash, or a shutdown by another method. Press the Logs button to view error logs and check the Windows Event Viewer for more clues. If you need more help, copy and post this entire log window on the forums".
WHAT SHOULD I DO?
bro is it mandatory to watch your previous html course before watching this?
If you don’t know HTML before getting into PHP, you will struggle a bit yes.
If I use php, should I use html?
Knowing HTML is most of the time a requirement when getting into PHP yes.
Bash wants it’s echo back
i am honestly confused about the embedding html with php
Don't worry, we will get to do it a lot in the upcoming lessons. 🙂 Then you'll see actual examples of it being done.