Page 1 of 1

Error browser displays PHP as a plain text

PostPosted: 07. March 2024 13:02
by AnandiTech
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]

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

PostPosted: 07. March 2024 18:36
by Nobbie
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.