Placeholder Image

字幕列表 影片播放

  • The question is, is what do you need in order to learn?

  • PHP?

  • Oddly enough, almost ironically enough, one of things that I would say that you should do is go out and buy a book on how to code in PHP.

  • I personally like visual quick start guys, FTC compliance.

  • They don't sponsor me.

  • They don't pay me.

  • I don't get a dime for saying this, but I personally like the visual Quick start guide.

  • But if you don't get the visual quick start guide, there's Sam's and 24 hours there's Peak Pit.

  • There's a whole bunch of different PHP coding books out out there, and I would highly recommend you go out there and you buy a book on how to code and PHP.

  • Now you may be sitting there thinking, Well, wait a minute.

  • I'm watching this, this track on how to program in PHP.

  • There's other online resource is why would I go out and buy a book?

  • Now that seems that seems obsolete, and the reason is is that books are a very good way of being able to see code laid out for you.

  • So when you're coding, especially when you're learning basically It's kind of like monkey See Monkey Monkey do, Simon says.

  • Type of thing, where when you're writing code, essentially, you see what the other person did.

  • And then you write that out and then just can't get a little bit for whatever code that you're trying to do, whether you're doing four statements or loops or anything like that.

  • And so what I found is books just make life pretty easy because you can have all the code right now with the explanation right beside it, and you can see everything that you need to see in a very user friendly fashion.

  • Beyond that, in a book, it's very easy to use a highlighter or be able to write notes.

  • It's easy to fold pages or put full post its in tow mark the different areas that you need, and I just find books to be very simple.

  • So for me, if I'm gonna be creating some kind of little application, I can go in and I can put posted notes in the book in the different areas for the things that I need.

  • So let's say I need I need to be able to an html form we need to build a connect to the dad two days, and then I need to be able to send e mails so I can go in and I can put the post it notes and those those different areas.

  • And then what?

  • I'm creating the form.

  • I just flip to the form and then I can I can code for that.

  • And then when I need to connect it to the database, I conflict where the database information isn't I could do that.

  • And then what?

  • I'm gonna do an e mail.

  • I can flip to the email section, and I just find books to be an incredibly useful tool for learning how to code.

  • I know it seems obviously, and again I'm somebody that reads a Kindle.

  • So I read my books normally on a Kendall.

  • But I'm telling you and Cody, I think I think books are just the bee's knees.

  • I would really argue you go out.

  • You spend the 20 or $30 for a book, whether it's a visual quick start guide, whether it's something else, the other thing that you're going to need is you're going to need an environment to run the PHP code.

  • And do you remember that?

  • PHP code is a server side scripting language.

  • So that means you need a server that you can install PHP on or that PHP is installed on.

  • And you also need an http server or a Web server component.

  • So we're talking about a pantry here, so either need Apache.

  • Uh, I I s possibly, uh uh Engine ex.

  • Possibly So you need one of those Web servers, and then you need to have PHP installs a PHP is the interpreter for the code.

  • So the Web server presents the website to a browser and the PHP interpreter that goes in and it reads the PHP code and does whatever the PHP code needs to D'oh.

  • So if you want to be able to set up a server environment very easily, I would argue you should think about downloading, installing Zampa X A M p p.

  • So what this will do is if you have a Windows computer, a Lennox impute Ori Matt computer.

  • They have packages for the different major operating systems.

  • You install it in one package, it won't sell Apache for you.

  • Well, I think installs Maria de B, which is Ah, basically a drop in replacement for my sequel.

  • It won't stall PHP, and then it also installs pearl.

  • But basically, this is a way to turn the computer that you're using into a Web server so that you can run PHP and you can create websites right off of your computer.

  • You could also build your own web.

  • Sarah.

  • If you want to, this is this is your own project.

  • If you want it to your own project, you could create a lamp server, a Lennox, a Paki, my sequel PHP Server.

  • Go out there.

  • There's there's a lot of different tutorials on how to do it.

  • You create a lamp server.

  • So the Windows Apache, my sequel.

  • PHP Server.

  • You create an II s server so you could create a server that way.

  • And then you're your desktop computer, your client computer with then basically what you do is you would upload the PHP code to the server that you're using, and then you would run the code from that server.

  • So that's one way to do it.

  • One of things that I suggest.

  • I get a lot of pushback from people on this, but I really think it's one of the better ways to learn PHP is too.

  • Frankly, spend the 3 to $5 month on a shared hosting plan.

  • So if you go to go, Dad, here you go to host Gator, whoever else you can buy a shared hosting plan for three bucks or five bucks a month, that will run PHP.

  • So whatever you buy a shared hosting plan, it gives you a whole bunch of additional functionality.

  • So you get the Web hosting, but you also get PHP and my sequel, email accounts and all that kind of thing.

  • And so one of things with the shared hosting plans is you could just spend that little bit of money and then you have an environment that you know works.

  • This is a very important thing when you're going to be learning PHP, remember, in order have PHP work.

  • You have to have a lot of different systems, all working together for the output to function properly.

  • So if you mess up the firewall, if you do something stupid with the pack, you configurations.

  • If you if you set, you set up your own environment.

  • But you don't know really how this stuff works.

  • You don't really understand.

  • I p addresses.

  • You really don't understand permissions and that type of thing.

  • One of problems you can run into is that you think the problem is with your codes.

  • You sit there and you write your code and you think it should work.

  • And then you keep going to execute the code, and it keeps failing.

  • And so then you spend days, you spend days rewriting the code.

  • You're right.

  • It once that maybe you put the semicolon somewhere house and he's been days and days rewriting the code.

  • Trying to figure out what you're doing wrong in PHP 20 issues is you may not be doing anything wrong then.

  • PHP There may be a permission issue with files and folders on your computer.

  • There may be a firewall issue.

  • There may be some other idiotic problem going on.

  • And so you think your issue is with writing PHP when really the issue is something else entirely, that you don't even know enough to go and try to troubleshoot.

  • So one of my arguments for people that are really knew if you don't, if you don't know how to swap hard drive so you don't really know what a router is.

  • You don't really know what a switch is.

  • You don't really know what a default gateway is.

  • I would argue.

  • Go out and get a shared hosting plan again.

  • Hosts Cate or go, Daddy.

  • Whatever else, get 35 bucks a month, because then you know you have an environment that works.

  • You know, the Web server works.

  • You know the PHP works.

  • You know, all of that stuff works.

  • You can simply throw your PHP code up there.

  • You can see that it does what it's supposed to do.

  • And then you can focus on learning PHP code and not trying to troubleshoot shoot server issues.

  • I know we get a lot of pushback.

  • Why?

  • Why am I gonna spend $5 a month lever type military spending $5 a month and not have to worry about certain things can be very valuable.

  • So those are the different ways you can do it.

  • You can either install Zampa onto your computer, run it.

  • That way you can build your own web server.

  • If you want to do that, I would argue you go with the sheriff hosting one of things.

  • I will warn you is if you install example onto your own computer again your Mac or your Windows computer.

  • Do you realize you are installing a Web server?

  • So that does have vulnerabilities.

  • If you're worried about hacking and worried about security, do be careful because you're literally installing a webs, a fully functional Web server onto your your your daily driver, your client operating system.

  • And again, if you don't know exactly what you're doing, you might run into some some security problems.

  • Ah, beyond that, one of things you're gonna need is at a minimum is an ass key text editor.

  • So I like note pad plus plus, you can use note pad.

  • Basically, you can use anything that does ask you text.

  • You can use something more complicated, a full fledged I d if you want to, but you just need all you.

  • All you need is an asking text editor, so you don't have to go out.

  • You don't have to buy any expensive package in order being a code and PHP just anything that writes text and allows you to save into a dot PHP for bat.

  • The final thing that you may need is on FTP client.

  • So if you're going to be running your own server, uh, or if you're going to be using a shared hosting plan like I would recommend in order to be a upload your code to that server or two that shared hosting plan, you will have an F.

  • You'll need to use an FTP client either something like files illa or something built into your operating system for a sec and basically what that does that that allows you to take the PHP file from your computer and upload it, move it to the server.

  • Now it is important to understand that if you were running the Web server off of the computer that you're using, you don't need an FTP client because you're actually on the computer.

  • That's one of the benefits of running a Zampa server.

  • Off of your computer is the files.

  • Everything resides just right there on your computer so you don't have to.

  • You don't have to upload.

  • You'll have to download.

  • You're just dealing with the files that are sitting on your computer, so these are the things that you'll need in order to be able to learn how to do PHP.

  • There is some other functionalities that certain things like mail servers.

  • So there's a male function that's very useful and very fun to play with.

  • In order for that male function work, you have to have a functioning mail server.

  • I'm not even God.

  • Try to explain to you how it's enough.

  • It's functioning mail server.

  • So this is one of the things to be thinking about is again.

  • It's it's useful for if you buy a shared hosting plants.

  • If you buy a shared hosting plan, things like the email server will work.

  • So when you call the male function ah, that will simply work again.

  • If you go down to your host Gator, any of those it'll it'll function out of the box.

  • But there is some function like that, like things like the email server functionality of the male function.

  • Other things that you may have to set up or may not work if you don't have things configured within your environment.

  • But those are the basic things that you need in order to learn.

  • PH.

  • Be again.

  • Overall, it's relatively easy.

  • You don't really need to spend a lot of money to learn PHP or have any fancy equipment if you have.

  • If you have some crappy 15 year old computer, you really can learn Ph.

  • B and really learn how to use PHP well.

The question is, is what do you need in order to learn?

字幕與單字

單字即點即查 點擊單字可以查詢單字解釋

A2 初級

PHP - 需要學習什麼... (PHP - What is Needed to Learn...)

  • 2 0
    林宜悉 發佈於 2021 年 01 月 14 日
影片單字