I already installed MAMP in my macbook pro. I want to run a php. what can i do?
+2
A:
If you have done everything right, open your browser and type this:
http://localhost
to see if it opens successfully and then you can open your sites.
Also check out the mamp's documentation on how to configure it and run php scripts.
Sarfraz
2010-02-17 18:47:03
+1
A:
Drop the PHP file into the HTDOCs folder in MAMP, for example let's call it hello_world.php and now you can run it by going to:
TravisO
2010-02-17 19:33:52
A:
Depending on the port settings of MAMP (Preferences -> Ports) you have to call http://localhost:8888/filename.php
(MAMP ports) or http://localhost/filename.php
(default ports). The file "filename.php" have to be located in this folder: /Applications/MAMP/htdocs/
Dirk Einecke
2010-05-19 14:07:04