WEBVTT

00:00.620 --> 00:03.830
I will call you back again to another lecture in PHP.

00:03.830 --> 00:10.610
And in this video lecture we go ahead and look at how to set up PHP on our computers.

00:16.940 --> 00:19.010
So as a beginner, I believe you.

00:19.010 --> 00:21.110
Maybe you don't have PHP on your computer.

00:21.140 --> 00:25.250
What if you have PHP already set up with any local server?

00:25.280 --> 00:27.590
You can actually continue with that.

00:27.590 --> 00:31.070
But if you want to join me and set up this, there is no problem.

00:31.070 --> 00:32.960
We can go ahead and do that together.

00:32.960 --> 00:38.090
But for absolute beginners who do not have PHP already set up on their computers, this is actually

00:38.090 --> 00:38.630
for you.

00:38.660 --> 00:41.840
Now let's go ahead and move on step by step.

00:41.840 --> 00:46.370
We are on the official page of PHP php.net.

00:46.370 --> 00:51.920
So go to your browser and type in Php.net and you are going to come to this page.

00:51.920 --> 00:56.240
And once you get to this page, you move straight and hit on downloads.

00:56.240 --> 01:00.650
And once you hit on downloads, you are going to get to this awesome page.

01:00.650 --> 01:07.660
And from this page you can see we have current PHP and that is 0.30.01.

01:07.660 --> 01:09.970
And we have old stable PHP.

01:10.150 --> 01:13.450
And this is another old stable PHP.

01:13.480 --> 01:19.330
So any time you're downloading this ensure you download the current stable PHP.

01:19.540 --> 01:25.690
The version might have changed depending on the time you are taking this lecture, but it doesn't matter.

01:25.690 --> 01:32.410
What matters most is that you're actually going to download the latest version, the current stable

01:32.650 --> 01:35.170
PHP at the time of taking this course.

01:35.680 --> 01:44.920
So now at the time of making this video, it is a this was actually released on August 29th, 2024.

01:44.950 --> 01:48.520
This might have actually changed by the time you are also taking this course.

01:48.610 --> 01:49.750
That doesn't matter.

01:49.750 --> 01:53.620
It means that it's been upgraded and that would be much safer.

01:53.650 --> 01:59.590
Now I am using windows PC and I have windows download actually pop up right in here.

01:59.590 --> 02:07.200
So PHP actually dictates the, uh, your operating system and the to actually give you what you need.

02:07.230 --> 02:14.610
Now go ahead and hit on windows download if you are using windows PC and I'm using 64 bit system and

02:14.610 --> 02:18.270
whatever I'm going to get here is about 64 bit system.

02:18.270 --> 02:21.570
So you can check the one you are using.

02:21.570 --> 02:24.960
If you are using 34 bit, you're going to see maybe 32 bit.

02:25.020 --> 02:28.950
I mean, if you are using 32 bit system and not that four bit system.

02:28.950 --> 02:34.770
So if you are using 32 bit system, you go ahead and then load the thread safe.

02:34.830 --> 02:38.850
So if you're using 64 you also download thread safe.

02:38.850 --> 02:46.110
So I will not be using the non thread safe version for this because this is more secure than this.

02:46.140 --> 02:56.340
If you look at the zip file, the zip file is a 30.67 MB for non thread safe, and for the thread safe

02:56.340 --> 03:00.270
we have a 30.81 MB for the thread safe.

03:00.350 --> 03:09.620
So if you're using a windows PC and this is 64 bits, you got a hit on downloads and hit on the zip

03:09.620 --> 03:10.040
file.

03:10.070 --> 03:13.250
And once you click on the zip file it will actually download this.

03:13.250 --> 03:19.490
So once it downloads you can see right in here I have this actually downloaded the two minutes ago.

03:19.520 --> 03:24.920
The reason why I did this 30 minutes ago was because I don't want this to waste time downloading for

03:24.920 --> 03:30.860
us, so it's actually downloaded a fresh because I downloaded this just 30 minutes ago.

03:30.890 --> 03:33.290
Now let's go ahead and hit on this.

03:33.290 --> 03:37.700
And uh, once you click on that, you have this right in here.

03:37.730 --> 03:40.130
So this is the download page.

03:40.130 --> 03:43.850
And I have this zip file actually here.

03:43.880 --> 03:44.570
All right.

03:44.570 --> 03:50.390
So what I need to do right now is I'll go ahead and extract whatever that I have downloaded.

03:50.420 --> 03:53.420
This is PHP 0.30.11.

03:53.420 --> 03:55.370
And this is 64 bit.

03:55.400 --> 04:01.180
I'm going to keep this on the root directory of my website or of my computer.

04:01.210 --> 04:07.870
Now let's go ahead and right click on these and go ahead and hit on Extract All.

04:07.870 --> 04:11.560
And it's good to give you a pass where this is going to be structured.

04:11.560 --> 04:14.830
It actually wants to extract this to the download page.

04:14.860 --> 04:18.430
But I want this to go to the root directory of my computer.

04:18.430 --> 04:21.130
What I need to do is that I'll go ahead and hit on browse.

04:21.160 --> 04:21.730
I'll go ahead.

04:21.730 --> 04:25.120
I hit on PC, I'll go over and select the look at this.

04:25.210 --> 04:27.010
I'll go ahead and select this.

04:27.040 --> 04:31.300
Now I have C and a colon backslash.

04:31.300 --> 04:36.760
Now if I should be able to extract everything here that it has so many files right in there.

04:36.760 --> 04:40.330
So I need to input all this file inside a folder.

04:40.330 --> 04:43.240
So I'm going to name that folder to be PSP.

04:43.960 --> 04:44.440
All right.

04:44.440 --> 04:46.720
So this folder is actually the PSP.

04:46.750 --> 04:48.250
I've just written this.

04:48.250 --> 04:54.760
So go ahead and add PSP so that everything we're going to extract will be right inside this folder.

04:54.790 --> 04:59.410
Now if you have done that you go ahead and hit on extract.

04:59.440 --> 05:05.810
And once you hit he's on extract, they should begin to extract everything that is in this zip file

05:05.810 --> 05:06.530
for you.

05:06.950 --> 05:12.320
And it has done extracting and actually pop up this folder for us.

05:12.350 --> 05:18.590
Now if you go ahead and hit on your local disk, you can see the PHP which we just created is right

05:18.590 --> 05:19.310
in here.

05:19.310 --> 05:22.520
So if you check that you can see that everything is here.

05:22.970 --> 05:29.120
Now the next thing I want to do, which I've actually done because of PHP and I'll be using these and

05:29.120 --> 05:36.470
I'm going to take you step by step on what to do is you're going to check on the environment variable

05:36.470 --> 05:41.240
of your computer to actually add this path to your environment variable.

05:41.240 --> 05:44.540
Now we're going to do is because I'm using PC.

05:44.570 --> 05:49.040
So I have to actually go ahead and type on this.

05:49.820 --> 05:59.780
So you go over to your computer and I'll go over here and I'm going to type in environment.

05:59.780 --> 05:59.860
Yes.

06:00.430 --> 06:02.050
And what's the type environment there.

06:02.080 --> 06:03.370
It's actually come out.

06:03.370 --> 06:06.670
So it did system environment variables.

06:06.670 --> 06:08.230
So I'll go ahead and hit on this.

06:08.230 --> 06:10.270
And I'm going to drag this right in here.

06:10.270 --> 06:16.600
And what I'm going to do right now is I'm going to hit on environment variables.

06:16.600 --> 06:20.470
And uh you can see your paths.

06:21.100 --> 06:21.430
All right.

06:21.460 --> 06:25.000
So what I'm going to do now is I'll go ahead and hit on edit.

06:25.090 --> 06:32.470
So inside here I have this part called uh c colon backward slash PHP.

06:32.500 --> 06:40.660
Now if you are new because you don't have this go ahead I hit on a date and you're going to see this.

06:40.690 --> 06:42.730
You go ahead and add this path to your own.

06:42.730 --> 06:47.980
So once you add this path is actually telling PHP anytime you're running it that is going to follow

06:47.980 --> 06:51.460
this path and execute whatever that you have.

06:51.460 --> 06:55.990
And whenever you finish, you go ahead and click okay and uh, click okay.

06:55.990 --> 07:04.200
And you actually go ahead and apply because that is what you need to do and are to get PHP set up on

07:04.200 --> 07:05.040
your computer.

07:05.070 --> 07:09.060
The next thing I'll go ahead and click okay and that is gone.

07:09.690 --> 07:15.480
So the next thing I'm going to do to ensure that that part is actually discoverable and the PHP can

07:15.480 --> 07:20.160
actually discover that part is I'll go to my computer and type cmd.

07:20.430 --> 07:25.080
And once I type cmd and hit on this drug this right in here.

07:25.110 --> 07:35.970
And if I want to check if PHP is there, what I'm going to do is I'll go ahead and uh, hit on p h p.

07:35.970 --> 07:43.860
So to check on PHP, I'll go ahead and uh, first of all check the part and then check if the PHP is

07:43.860 --> 07:45.300
there for me to check the part.

07:45.330 --> 07:53.940
I'll go ahead and type equal and put percentage uh, parts and plus the percentage and then go ahead

07:53.940 --> 07:54.840
and hit enter.

07:54.840 --> 07:58.650
And it's going to pop out every part of your computer.

07:58.650 --> 08:07.460
And you can see the last one I added, which I have already added before on my system is a C colon backslash

08:07.700 --> 08:12.350
PHP, and it shows that PHP is actually on a computer, so that is good.

08:12.380 --> 08:18.890
Now if I want to check the version of the PHP which we just inputted right now, what I'm going to do

08:18.890 --> 08:25.100
is say p p and uh, give a space minus v and hit enter.

08:25.100 --> 08:32.270
And you can see I have PHP 8.30.11, because this is a stable version that we have.

08:32.270 --> 08:37.160
And right now we have PHP installed and set up on our computer.

08:37.160 --> 08:38.090
So bravo.

08:38.090 --> 08:40.280
And that is really so good.

08:40.580 --> 08:41.120
All right.

08:41.150 --> 08:46.190
So the next thing we're going to do right now is in the next video lecture, we are going to start PHP

08:46.190 --> 08:51.590
and we're going to set up and start running PHP on our computers.

08:51.590 --> 08:55.460
And that is going to be very cool and it's going to be very amazing.

08:55.460 --> 08:56.510
So thank you so much.

08:56.510 --> 09:00.020
And I'm going to see you in the next video lecture.
