Chicky Egg
Chicky Egg

Reputation: 153

Using Brackets and MAMP to preview php file

I need help to preview my php file. I've been trying for days now and can't get it to work. My apache and mySQL servers are both connecting. I've set up my Brackets and it did open up a preview screen in Chrome but whatever i have in the file just won't show up. enter image description here

enter image description here

enter image description here

Please help me out, thanks! Angel

Upvotes: 0

Views: 756

Answers (1)

chris g
chris g

Reputation: 1108

From here, it appears that you're probably getting a silent PHP parse error, you can check the PHP log in MAMP to confirm.

The standard PHO opening tag is

Give this a try:

<?php 
     echo "Hello world";
?>

Upvotes: 1

Related Questions