freeCodeCamp.org
Learn the PHP programming language in this full course / tutorial. The course is designed for new programmers, and will introduce common programming topics using the PHP language.
⭐️Course Contents ⭐️
⌨️ 1. (0:00) Introduction
⌨️ 2. (1:56) Windows Installation
⌨️ 3. (7:32) Choosing a Text Editor
⌨️ 4. (11:06) Hello World & Setup
⌨️ 5. (20:29) Writing HTML
⌨️ 6. (27:30) Variables
⌨️ 7. (38:09) Data Types
⌨️ 8. (44:27) Working With Strings
⌨️ 9. (54:50) Working With Numbers
⌨️ 10. (1:05:14) Getting User Input
⌨️ 11. (1:15:37) Building a Basic Calculator
⌨️ 12. (1:22:13) Building a Mad Libs Game
⌨️ 13. (1:28:59) URL Parameters
⌨️ 14. (1:35:52) POST vs GET
⌨️ 15. (1:41:44) Arrays
⌨️ 16. (1:50:26) Using Checkboxes
⌨️ 17. (1:57:22) Associative Arrays
⌨️ 18. (2:04:55) Functions
⌨️ 19. (2:12:10) Return Statements
⌨️ 20. (2:19:10) If Statements
⌨️ 21. (2:37:16) If Statements (con’t)
⌨️ 22. (2:47:13) Building a Better Calculator
⌨️ 23. (2:56:53) Switch Statements
⌨️ 24. (3:05:09) While Loops
⌨️ 25. (3:15:18) For Loops
⌨️ 26. (3:26:24) Comments
⌨️ 27. (3:31:08) Including HTML
⌨️ 28. (3:36:51) Include: PHP
⌨️ 29. (3:45:57) Classes & Objects
⌨️ 30. (3:56:23) Constructors
⌨️ 31. (4:06:18) Object Functions – PHP – Tutorial 31
⌨️ 32. (4:13:52) Getters & Setters
⌨️ 33. (4:29:17) Inheritance
Course developed by Mike Dane. Check out his YouTube channel for more great programming courses: https://www.youtube.com/channel/UCvmINlrza7JHB1zkIOuXEbw
🐦Follow Mike on Twitter: https://twitter.com/GiraffeAcademy
🔗The Giraffe Academy website: http://www.giraffeacademy.com/
—
Learn to code for free and get a developer job: https://www.freecodecamp.org
Read hundreds of articles on programming: https://medium.freecodecamp.org
Hey everyone! Thanks for watching my course
Follow me on twitter at https://twitter.com/mike_dane
my calculator is returning to 0
<body>
<form action="calculator.php" method="post">
First num:<input type="number" step="0.0001" name="num1"> <br>
OP:<input type="text" name="op"><br>
Second num:<input type="number" name="num2"> <br>
<input type="Submit">
</form>
<?php
$num1 = $_POST["$num1"];
$num2 = $_POST["$num2"];
$op = $_POST["op"];
if($op == "+"){
echo $num1 + $num2;
} elseif ($op == "-"){
echo $num1 – $num2;
} elseif ($op == "/"){
echo $num1 / $num2;
} elseif ($op == "*"){
echo $num1 * $num2;
} else{
echo "Invalid operator";
}
?>
</body> please help me to check
For anyone who is facing an error in CMD for php, update your Microsoft visual C++.
I can't put in words how much i appreciate your courses Mike
I learned to program about 6 years ago from your unity videos. I still remember how amazing it was to have those first games run. Since then I have learned more than 20 languages and even though I have drifted away from unity and game development, and more into node and backend web dev, game development will always have a special place in my heart. Thank you for making these awesome tutorials years later for new people to try and experience the same thing that I did.
01:15:37 I had tried, however warning is shown: Undefined array key "num1", undefined array key "num2"
Has anyone else seen he's "the Office" Fan ? ;p
Great tutorial, thank you, Mike!
𝐕𝐞𝐡𝐢𝐜𝐥𝐞 𝐒𝐞𝐫𝐯𝐢𝐜𝐞 𝐒𝐲𝐬𝐭𝐞𝐦 𝐖𝐞𝐛𝐬𝐢𝐭𝐞🌐💤
#like #subscribe✨️ #share
ᴍᴏʀᴇ ᴅᴇᴛᴀɪʟs ɪɴ ʜᴇʀᴇ👇
https://youtu.be/xZhTb1FY6Co
Thank you very mush for this amazing video. ❤❤❤❤
Ignore me – just commenting a bookmark lol 1:14:07
In the build a better calculator how come we don't need to add step to the second number input?
if(_SESSION['prm']==true){_C8->execute(auto,auto,auto);};
1:14:45
Question: I am doing the GET forms, but what is happening is that if I refresh my page and the variables are empty, I am getting an error where there should be blank line on the screen.
Warning: Undefined array key "num1" in (URL) on line 44.
Like how do I get rid of it?
Hi. Can you please help with this error?
C:Userspreet>php -v
PHP Warning: 'C:WINDOWSSYSTEM32VCRUNTIME140.dll' 14.0 is not compatible with this PHP build linked with 14.29 in Unknown on line 0
I followed all steps exactly as you said.
PHP syntax moslty from C++, thanks for this course
Finished this in 2 days… Once again I'll say… Without this online community of developers we students couldn't have done it alone. So a big thanks to freecodecamp ❤️
Great course.
May God truly bless you
Hello! Can someone help me? I cannot run my code. My browser always says "The requested resource was not found in this server" even though I have saved my php file in the folder. I am using Visual Studio Code. Thank you
This video is covered with Basic php properly.
Understandable and valuable course .
Must watch if your are looking for Basic php.
Clear explanations, Thank you
Thanks a lot for the course!
it helps a lot <3
I'm from Ukraine. We are having a very difficult time. But I believe that a person should try to overcome any difficulties and develop no matter what. I really thank the author of this free tutorial and wish from the bottom of my heart a peaceful sky, good health, prosperity and love!!!
when i try to use variable it displays error Parse error: syntax error, unexpected identifier "name", expecting "," or ";" can you please tell me the solution please
When you teach about the constructeur we can delete the variables and the code still works, so we dont really need them right?
1:23:08
awww mike stop it ur making me blush
This video helped me get my first job!
Thank you so much for this!
so i add the php file directory to the Path in env but it dosent show up when i check for it in the command prompt. any ideas?
Mike knows everything!
Дякую за можливість вивчати програмування , дякую Вам за вашу нелегку працю !
You have great tutorials mike
Thanks, finally I understood the point of Setter and Getter.
Dear Mike, I am very much grateful to you. May God bless you always. I want to learn web development with Php. Could you make a video tutorial on it.
Thanks i completed this course, Can you create a master class for mastering functions and arrays?