trafik25 Posted April 15, 2011 Share Posted April 15, 2011 Im new to PHP, and for some reason I cannot get it to work on my Mac. I can type all the code I want but when I run it in a browser I just get a blank page. For instance when I type <?php phpinfo(); ?> to find out my version just for fun, that's all that shows up in the browser is <?php phpinfo(); ?>. It doesn't show me the standard PHP version page. I use MAMP, and everything is fine and running. I have no idea what is going on. Help? Quote Link to comment https://forums.phpfreaks.com/topic/233778-need-help/ Share on other sites More sharing options...
kenrbnsn Posted April 15, 2011 Share Posted April 15, 2011 How are you invoking your script? You need to use a URL like http://localhost/path/to/your/script.php Ken Quote Link to comment https://forums.phpfreaks.com/topic/233778-need-help/#findComment-1201868 Share on other sites More sharing options...
Pikachu2000 Posted April 15, 2011 Share Posted April 15, 2011 How are you attempting to access the file in the browser? What is in the address bar? Quote Link to comment https://forums.phpfreaks.com/topic/233778-need-help/#findComment-1201869 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.