Hey there peeps,
So I have MAMP set up. Got a host set up in it. Server name = zonedev. Disk location is set up to where I have all my files saved on the HD. (Not in MAMPs httdocs folder, by the way, if that matters)
Now, in Coda, I set up a site. Root URL http://zonedev:8888/ Local URL http://zonedev:8888/ Local Root same path as the Disk Location in MAMP.
The site "icon" (cause it's bigger than an icon) after saving the setting for Coda does show a little preview of the index.html page. So far so good-ish.
What I want to do, though, is to be able to preview PHP docs in Coda. Without MAMP running, it would just spit out an error message where the PHPinclude should go (no file found blah blah) Now with MAMP and the site set up in Coda, when I preview a PHP file, it just shows it as text and doesn't render anything.
Also, the preview address will be something like: file:///Volumes/Macintosh%20HD/Users/blah/Documents/blah/about_us.php
but if I type in the "local address" http://zonedev:8888/about_us.php it will preview the PHP for me, and includes and all.
Questions are, am I setting up my MAMP and Coda (particularly coda) right?
If so, is there a way to get Coda to do this: when I hit preview, it will preview http://zonedev:8888/about_us.php instead of the filepath file:///Volumes/Macintosh%20HD/Users/blah/Documents/blah/about_us.php
Thank you oh so much everyone!!!
So I have MAMP set up. Got a host set up in it. Server name = zonedev. Disk location is set up to where I have all my files saved on the HD. (Not in MAMPs httdocs folder, by the way, if that matters)
Now, in Coda, I set up a site. Root URL http://zonedev:8888/ Local URL http://zonedev:8888/ Local Root same path as the Disk Location in MAMP.
The site "icon" (cause it's bigger than an icon) after saving the setting for Coda does show a little preview of the index.html page. So far so good-ish.
What I want to do, though, is to be able to preview PHP docs in Coda. Without MAMP running, it would just spit out an error message where the PHPinclude should go (no file found blah blah) Now with MAMP and the site set up in Coda, when I preview a PHP file, it just shows it as text and doesn't render anything.
Also, the preview address will be something like: file:///Volumes/Macintosh%20HD/Users/blah/Documents/blah/about_us.php
but if I type in the "local address" http://zonedev:8888/about_us.php it will preview the PHP for me, and includes and all.
Questions are, am I setting up my MAMP and Coda (particularly coda) right?
If so, is there a way to get Coda to do this: when I hit preview, it will preview http://zonedev:8888/about_us.php instead of the filepath file:///Volumes/Macintosh%20HD/Users/blah/Documents/blah/about_us.php
Thank you oh so much everyone!!!