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

Hi,
I have created a file named welcome.php with content:
<?php
echo 'welcome';
?>

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

<?php
echo 'welcome';
?>

instead of:
welcome

why is that?
ramyaniv
 
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?
Nobbie
 
Posts: 13176
Joined: 09. March 2008 13:04


Return to Apache

Who is online

Users browsing this forum: No registered users and 127 guests