PHP Programming Language Tutorial - Full Course

freeCodeCamp.org · 4.2M views · 2018 · 4:36:39

Open on YouTube

Web developmentPython, Ruby & scripting languagescoursedated

Why Stack Overflow recommends it

Stack Overflow users link it as a beginner starting point for PHP, and many questions come from people following along with it and getting stuck on setup or code details.

Recommended by 3 people across 3 different months, 2019 to 2022.

What it is

A 4.5 hour freeCodeCamp course by Mike Dane that teaches PHP from scratch to new programmers. It covers installation, variables, strings, arrays, forms with GET and POST, functions, control flow, loops, includes, and object-oriented basics like classes, constructors and inheritance.

What people said

Recommends Gabriel Biacotti · 2020-09 · Stack Overflow · on “What is it missing/wrong with my new website not showing up?”

Thank you for your answer, but I've been following this tutorial in youtube: [this video] , and he didn't install anything more than what I did. Is there another way for having this working with the minimum changes in my pc?

Recommends Nathan · 2020-11 · Stack Overflow · on “Activate a Form in HTML”

Hello and welcome to Stack Overflow ! Unfortunaly, you cannot process or send the data of a form only with HTML and Javascript. It is because these languages are processed only client-side and cannot really send anything alone. To do it you will need to put all your input and checkbox fields, as well as the submit button (by the way you will need to add a type='submit' in your confirm button), in a <form> tag. This form tag will get 2 essential attributes : method and action . The method is how you want to send the data : in short, it will be GET if you want the data to be transferred via the URL (example : for a search bar), or it will be POST if you want it to be more secure and to transfe

Recommends Altimus Prime · 2022-03 · Stack Overflow · on “How do I create a web page to show dynamic data?”

This isn't a very good question for Stackoverflow because it doesn't deal with a specific problem is and is asking for general advice. Lots of different people have different solutions for getting started, but I think that learning PHP is probably the easiest place to start. [this video]

Cites davidlim · 2019-12 · Stack Overflow · on “How do I get the document root of my development server with cmd prompt?”

when I create a development server on command prompt using php -S localhost:4000 , unlike the youtube tutorial i am following, command prompt doesn't return me the document root. Tutorial output: PHP 7.4.0 Development Server ( [LINK] ) started Listening on [LINK] Document root is ______ Press Ctrl-C to quit. My output is just: PHP 7.4.0 Development Server ( [LINK] ) started This is the video tutorial i am using: [this video]

Cites MaxFriedman · 2020-03 · Stack Overflow · on “Why is this error showing up in command prompt?”

So I was following a tutorial on Youtube on getting starting coding php( [this video] I was told to put "php -v" in the command prompt to ensure php was working. When I typed that in, an error message saying "PHP Warning: 'vcruntime140.dll' 14.0 is not compatible with this PHP build linked with 14.16 in Unknown on line 0" Thanks

Cites harabatahat · 2020-08 · Stack Overflow · on “Access and return private attribute in a function”

I watch this [this video] Tutorial about PHP, and in his video he is making an attribute to be private , means that we can't access it outside the class . But when he is creating a function that returns that private attribute, he is able to echo that attribute. It's working for him, and for it just not printing anything <?php class Book { private $rating; public $title; function __construct($title, $rating) { $this -> title = $title; $this -> rate = $rate; } function getRating() { return $this -> rating; } } $book1 = new Book('Harry Potter', 'PG-13'); // object instance echo $book1 -> getRating(); // Does not print anything ?> Update I changed $this -> rate = $rate; To $this -> rate = $rating; Bu