Error browser displays PHP as a plain text

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Error browser displays PHP as a plain text

Postby AnandiTech » 07. March 2024 13:02

Hi,

I am facing same issue. I was wondering if someone could help me.

I am trying to access the php file from html file. And my browser displays the php file as text. But when I access the same php file from browser as localhost/myfile.php, it does the intended action.

my php file is in the location - c:/xampp/htdocs/myfile.php. My HTML File is also in the same location.

Thanks

[EDIT by Altrea: splitted from 12 years old (!!!) original thread]
AnandiTech
 
Posts: 1
Joined: 07. March 2024 12:40
XAMPP version: 8.2.12-0-VS1
Operating System: Windows

Re: [solved]Eror browser displays PHP as a plain text

Postby Nobbie » 07. March 2024 18:36

AnandiTech wrote:I am trying to access the php file from html file.


This is not a sufficient description. I think you should show us the HTML source code which relates to this issue, we need to know HOW you access the PHP from the HTML file, there are tons of different options.
Nobbie
 
Posts: 13176
Joined: 09. March 2008 13:04


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 179 guests