Browser shows text of php file

Alles, was den Apache betrifft, kann hier besprochen werden.

Browser shows text of php file

Postby ramyaniv » 02. September 2023 15:01

I have created a file named welcome.php with content:
echo 'welcome';

typing in the browser localhost/welcome.php, the browser shows:

echo 'welcome';

instead of:

why is that?
Posts: 5
Joined: 29. August 2023 21:05
XAMPP version: 8.0.28
Operating System: osx 15

Re: Browser shows text of php file

Postby Nobbie » 03. September 2023 10:52

Wrong configuration. What does your browser show if you enter http://localhost only, where did you put your welcome.php?
Posts: 12974
Joined: 09. March 2008 13:04

Return to Apache

Who is online

Users browsing this forum: No registered users and 41 guests