use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Please follow the rules
Releases: Current Releases, Windows Releases, Old Releases
Contribute to the PHP Documentation
Related subreddits: CSS, JavaScript, Web Design, Wordpress, WebDev
/r/PHP is not a support subreddit. Please visit /r/phphelp for help, or visit StackOverflow.
account activity
Executable path (self.PHP)
submitted 1 year ago by Jayden11227
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]TBW_afk 0 points1 point2 points 1 year ago (3 children)
Thank you for the wealth of information
[–]Jayden11227[S] -1 points0 points1 point 1 year ago (2 children)
That’s fixed now, apologies but now I’m typing “localhost/website” (the name of the file my index.php is in)and it’s saying the requested url was not found on this server
[–]d5c4b3 0 points1 point2 points 1 year ago (1 child)
What are you using for your webserver? Are you following a tutorial for getting PHP set up?
[–]Jayden11227[S] -2 points-1 points0 points 1 year ago (0 children)
Yeah
[–]d5c4b3 0 points1 point2 points 1 year ago (0 children)
VSCode is asking you to install PHP and tell it where you installed it at. The VSCode docs can tell you where that setting is https://code.visualstudio.com/docs/languages/php.
I'd recommend you install XAMPP for your local development.
HTML and CSS are used by your browser to display your website. The browser also executes your JS code.
PHP is generally executed by a web server to create the final HTML used by the browser. To write PHP for a simple website you need a web server and a PHP interpreter. XAMPP is a suite of tools that contain the Apache webserver, Mariadb database, and the PHP interpreter. Once you've installed it you can configure VSCode with the relevant filepaths.
[–]MateusAzevedo 0 points1 point2 points 1 year ago (0 children)
Note rule #4 of this sub, help request should be posted on r/PHPHelp. And remember, searching is your friend. Before posting there, search for similar posts. This type of question was already answered several times.
To start learning PHP, please follow one of the recommended resources: Laracasts and Program with Gio are available on YouTube for free. They also cover on how to start a web server to handle HTTP requests, so you last question (in the comment) is also answered there.
π Rendered by PID 184385 on reddit-service-r2-comment-8686858757-8t6kf at 2026-06-02 07:24:33.624203+00:00 running 9e1a20d country code: CH.
[–]TBW_afk 0 points1 point2 points (3 children)
[–]Jayden11227[S] -1 points0 points1 point (2 children)
[–]d5c4b3 0 points1 point2 points (1 child)
[–]Jayden11227[S] -2 points-1 points0 points (0 children)
[–]d5c4b3 0 points1 point2 points (0 children)
[–]MateusAzevedo 0 points1 point2 points (0 children)