‫All right.
‫So if you're on windows you have a couple options.
‫Zamp or Zamp was popular for a really long time.
‫And I mean, it's still used, but it's a little outdated.
‫I think a more modern solution is larrigan, which as far as I know, is only available for windows.
‫It's a great way to get started with PHP and MySQL, because it does include PHP and Apache Server and
‫a MySQL database, and you won't have to install MySQL separately later on because it's included with
‫Larrigan.
‫So you can download Larrigan from this website here.
‫So larrigan.org.
‫So you just want to go down to the, you can either get the portable or the full.
‫I would suggest just downloading the full and installing it.
‫Once you start larrigan up it will show you a screen like this.
‫And you'll also have in the bottom right, you'll have an icon that you can double click to open this
‫screen.
‫There's also a bunch of options if you right click.
‫So from here you can start and stop Apache and MySQL.
‫If you click on the web button, that's going to take you to just local hosts.
‫So that's the root of your document.
‫So basically where you want to create your projects.
‫And of course you can create sub folders and so on.
‫And then if we click on database that opens up a tool where you can connect to your databases and you
‫can add columns and rows and columns, you can create new databases.
‫So really cool.
‫I mean there's a lot that that is included here.
‫If you click on terminal it uses commander which is a third party terminal.
‫And you can see I'm in my w-w-w.
‫So that's my my document root.
‫If I do an LS, you can see the folders that I have in in my basically my server.
‫Now this document root is really important because that's where you need to create your projects.
‫Unlike with Mac OS, when we installed PHP with homebrew, you can use any folder with Larrigan you
‫have to go to your C drive.
‫So let me just open up my file manager here.
‫And if I go to this PC C drive and then you'll have this Larrigan folder.
‫And in here is where basically all your, your server stuff is.
‫But this W-w-w folder is your document root.
‫You can see these are the same files that you saw in the terminal.
‫So what you're going to want to do is create a new folder.
‫And I'll just create a test just like I did with the Mac video.
‫We'll say test project.
‫And let's say in that test project I want an index PHP file.
‫So I'll go ahead and say index dot PHP say yes to that.
‫All right.
‫So now what's really cool about Larrigan is it automatically creates virtual hosts.
‫So because I called this test project I could I can access it two ways in the browser.
‫So I could go to slash test dash project.
‫And it should load the index PHP which is just blank, just a white screen in fact.
‫Let's go and open that up.
‫I'm going to open this up with VS code.
‫All right.
‫And then let's see for now.
‫All right.
‫So for now let's just go into index.php.
‫Let's say PHP and then we'll echo hello world.
‫Save that.
‫If I come back over here and reload we see Hello World.
‫Now you can access it this way.
‫But like I said it creates what's called a virtual host with a local domain.
‫So since I called it Test project, I can just go to test dash project dot test.
‫Okay.
‫We use the test domain.
‫Okay.
‫Now that's not working because I just have to restart Larrigan or not restart Larrigan but Apache.
‫So if I go right here and click stop, that will stop all services.
‫And then I click Start All.
‫You'll get a little notification that it's going to start up and then come back over here reload.
‫And we see hello world.
‫So now anything I put in that test project folder is accessible through this domain.
‫And of course it's just local.
‫So I think that's really cool.
‫And you can go to your host file and manually edit this if you want to use a different domain.
‫But like I said, it just it creates it based off of the folder name.
‫All right.
‫So now you're ready to start coding PHP.