Resource to learn PHP
Hello, I noticed that PHP is widely used and many companies are looking for that so I wanted to learn it and build project with that so that it add more weights to my CV.
Can anyone suggest any resource where I can learn PHP please.
29 Replies
php.net
you will need that one, a lot
that's the official docs? isn't there a "Getting started" section ?
PHP: Hypertext Preprocessor
PHP is a popular general-purpose scripting language that powers everything from your blog to the most popular websites in the world.
it isn't what you want, but there is one
oh ok, I will use that as a reference
you can use https://onlinephp.io/ or https://3v4l.org/ to test the code without using apache and installing php
noted, thanks !
but if you want a complicated site, you can just download the php non-thread-safe version, throw it somewhere and then use the
-S
argument
it will be a miserable experience, but it runsto run php locally you mean?
yes
ok ok ty
if you want, you can install php in wsl
just google "perfect server debian 12 php 8.4" and you should have enough information for it
it doesn't run natively on windows?
it does, but almost nobody will run windows on a server
almost everything is on linux
ok ok
I always wondered, is there a reason for that?
I mean, why most people use linux to host something, not windows for eg
also, this separates the responsibilities, and any mistakes you make will only affect wsl
- cost
- efficiency
- stability
oh, and most important of all:
- freedom
Ok, noted
Thanks !
you're welcome
if you're worried about using wsl, there is a project i've made in #showcase
but yes, it's possible to run on windows without any work
however, you will need to find something like xampp or install everything yourself anyways
(to clarify cost: Microsoft at one point had a pricing structure that probably killed IIS and hosting sites on windows machines. No one would have cared about the couple hundred bucks you had to pay for a windows license for the OS, but they made a license that said that every uniquely identified user, through any means, required a Client Access License, which cost €5 a month. So if you had a PHP site running on IIS (which is a faff to begin with) with a MySQL database, and had 10k unique users, Microsoft wanted €50k a month from you)
about this, it isn't unusual to see servers with over 5 years of uptime without restarts and still going strong
and the only time those servers' uptime ends is to decomission the server or an hardware failure or just moving buildings
i struggle keeping windows 11's uptime to more than 3 weeks without issues
just imagine how bad it would be to have to restart a server every few weeks
there are some hosts that sell you windows machines, and they are so pricey
it really doesn't make any sense
oh ok I see
hmm by the way, XAMPP is just a software package, like a toolbox where we have several tools which can be used to test/deploy a website?
test
there are others, but i stopped looking for those, so, i don't know that many alterntives
and can't remember any now
ok ok
IIS is just a web server like apache, NGINX etc?
yeah, but one you can easily ignore
and honestly, you should
it has so many problems
yep noted
if you're comfortable with docker, you can use it in wsl too
just know about it but havent' really use it. I need to get started with docker and linux, I know some basics for linux commands, I learned that in uni but I believe I haven't really dive into it the right way. Should try to do so now
you should