I'm updating my portfolio to include PHP, however, I'm having trouble getting the PHP to work on a HTML page. The HTML works on the PHP page as expected. How do I connect the PHP to the HTML page. Right now when I view the HTMl page with the PHP on it I just see the PHP code. I'm a beginner at PHP and have studied it for about three months.
You need a server to parse PHP code. Either upload your HTML page(s) to your remote server or set up a local testing server on your PC. Below are some Apache testing servers you can download (free).
WAMP for Windows
XAMPP for Windows
XAMPP for Mac
MAMP for Mac
Setting up a PHP environment in Dreamweaver
Building your first dynamic website – Part 1: Setting up your site and database connection