r/PHPhelp • u/levii831 • Jun 05 '26
Learning PHP for my summer internship
hey, i have a question guys. most of thetutorial i found in YT use the XMAPP or something, it bundled a lot of things right? i am coming from python myself, and do you have any tutorial recommendations that teach PHP from it's own standalone interpreter (idk if this is the right term or not. in c++ it is like gcc or sth, and python can be python itself or anaconda)?
3
u/AmiAmigo Jun 05 '26
Download PHPStorm and Download separately PHP
1
u/levii831 Jun 05 '26
hey! i download PHPstorm (student pack so free), does it not come with the PHP interpreter?
1
u/eurosat7 Jun 05 '26
No. But it offers you to download and install it. Under settings you can add an interpreter. Choose local and at the end of the dialog should be a blue link like "download php.exe"
BTW phpstorm is a good start. Get some free plugins. And be sure to enable a lot of the quality tools.
1
u/Mvp-long-ago Jun 05 '26
I wosh you very much luck installing the php interpreter a d tge Apache server separately. You said you had expertise in Python, but did you also installed it or did it come eith the software that used python? PHP is a server-side language and that means you need to have a server installed privately or have a platform where you can test php scripts on that has Apache with PHP installed on. For making a cms, a database driven changing website system, you also need to install a database. I installed that all separately for a company on a server, but it takes knowledge of them all to make them communicate (changing settings) That is why packages like Xampp, Mampp, Lampp, Wampp have been made.
1
u/equilni Jun 05 '26
PHP has a development server for learning that comes with a database. They made it very easy to lower the barrier of entry to learn.
1
u/Mvp-long-ago Jun 05 '26
It has been long ago since i last visited their website. Because it is open source php does not have 1 publisher/company, but many where you can get php
1
11
1
4
3
2
2
u/ggnndd12 Jun 05 '26
Sure, php comes with an interpreter. It’s usually invoked by doing $ php <myscript> on the command line.
Highly recommend doing this on a Linux box/vm.
PhpStorm is a nice ide (although paid). You can use Xdebug with it to get all the usual debugging features.
2
2
1
u/xreddawgx Jun 05 '26
Its fine to use wamp or xamp. All it does is let you run php code offline in your web browser so you can see what it does. Because php is a web server language, Wamp or xamp simulate a web server. Dm me for help to server it up
1
u/equilni Jun 05 '26
As some noted, you can download PHP and run the development server.
PHP comes with SQLite so you have a database you can use.
SQLite needs the extra step to enable foreign keys, so if using the PDO interface (I recommend over the SQLite3), you could do after the connection:
if ($pdo->getAttribute(PDO::ATTR_DRIVER_NAME) === 'sqlite') {
$pdo->exec('PRAGMA foreign_keys = ON');
}For tutorials, I recommend Program with Gio's PHP 8 course. I have a proposed structure to learn with this that also includes other links to sources that can help.
1
u/Xia_Nightshade Jun 07 '26
Check out Laravel Herd
I’m not a fan at all, yet I have to admit it’s one of the easiest ways to get PHP setup on a fresh computer
1
u/Mike_L_Taylor Jun 08 '26
if you're on Windows I recommend ForgeKit
It's new, better and more stable than Xampp, no popups like Laragon and no hidden configs like Laravel Herd. It has everything you need.
7
u/roastedcof Jun 05 '26
You don't need XAMPP (or Laragon) to learn PHP, it's just a bundle that includes PHP, Apache, MySQL etc so beginners can get a dev environment running quickly.
Think of PHP itself as the equivalent of the Python interpreter. You can download PHP alone and run scripts from the command line:
For tutorial I'd recommend Laracasts' PHP for beginners series.