PHP not working

Michael641

Commendable
Apr 27, 2016
11
0
1,560
I typed my php code into the notepad text editor (windows 10) and when I run it the code that I typed into notepad shows (vs the Hello World statement that was supposed to show), has anyone else had this problem, does anyone have any solutions? I tried to use xammp with Netbeans but I get the error 400.
 
Solution
PHP does not work natively with no additional tools - on the code side, at least. You need a server-side element to execute it.

If you want to set up your own PHP server to test your code, you can use XAMPP.

Alternatively, you can probably find a PHP interpreter online that will let you test and run your scripts in the browser.

Also, don't use notepad. Notepad is garbage. Go download Notepad ++. It has syntax highlighting for PHP and a bunch of other helpful programmer stuff.

canadianvice

Distinguished
Jul 25, 2012
235
1
19,115
PHP does not work natively with no additional tools - on the code side, at least. You need a server-side element to execute it.

If you want to set up your own PHP server to test your code, you can use XAMPP.

Alternatively, you can probably find a PHP interpreter online that will let you test and run your scripts in the browser.

Also, don't use notepad. Notepad is garbage. Go download Notepad ++. It has syntax highlighting for PHP and a bunch of other helpful programmer stuff.
 
Solution

TRENDING THREADS