For local previews it's accessing the file via the file:/// URL, which would bypass rendering the PHP. Maybe try set up a "remote" address pointing to your local webserver?
Anybody else struggling to get php pages to preview in the local side ?
All I get is my php code in black.
I've turned on web sharing in apple preferences and tried using MAMP but neither work :/
Thanks
David
Thanks
Yeah Steven from Panic talks about this aswell on his blog http://stevenf.com/2007/04/coda_a_site_for_sore_eyes.php
Can't seem to get it to work at the moment probably better to use an external server until this bug is fixed in an update
Thanks
David
CaptainHaddock-
The local "sync" thing took me a second to figure out - in your sites you need to define your local root and the remote root where it will be published to. Then when you save locally you'll have the "publish all" button pop up at the bottom of the local pane.
I'm not using this app, but I bet I wouldn't call that a bug. Do you know how PHP works? It requires a module running through a web server to interpret it and generate HTML. You can't just "preview" PHP. People who use Dreamweaver have to come to grips with this concept too. I don't know the particulars of Coda, but if you setup your site so you're actually looking at it via a web server -- on your local host or otherwise -- it will then be able to interpret the PHP. Just loading it up through your filesystem isn't going to work.