-1

I build a site in html code, and when Im trying to connect between the PHP script and the HTML code it sends me to a page, that the PHP script is writed there instad of activating the script. what can I do?

2 Answers2

0

Are you using xampp or some kind of server to run the file?

If not download xampp, start apache and mySQL, put the files into htdocs and then run it by typing localhost/filename.html and click on the link which will take you to the php file. It should display the php file then.

lukas13x
  • 73
  • 1
  • 12
-1

for some configurations, if your page has any PHP code, the extension must be .php and not .html

nekiala
  • 450
  • 9
  • 21