Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
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

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.
 
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.

That's why I didn't see it. I didn't want to edit the file locally any more, so I just wasted a pile of time trying to find a "publish all" button that didn't seem to exist.

It's like they just never tested the app with designers like me who have existing, semi-finished sites they want to upload and occasionally edit.
 
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.

Yes I do know how PHP works !!!

If you had read the first post properly you would have seen that I have enabled the osx php web server and installed MAMP which is an Apache PHP + MySQL server.

I've got php to work in dreamweaver and rapidweaver before and Steven in his blog suggests that there is a problem.
 
Wow it's so amazingly fast.. i love it :)

I only think that colorcoding should be more advanced, like dreamweaver,
for ex: form & table tags in dreamweaver are coded in another color, much better.

Also for function high_lighting in php, it shouldn't high light non-excistsing functions, to help seeing typo's fast..

When editing a PHP+HTML file, only code hints for php are enabled, even after the ?> tag.

Also superglobals like $_POST & $_GET should be another color..

A few little things, but it's soo fast & usefull.
 
Just downloaded the trial of this yesterday and must say that I love it. I'm not a PHP coder by any means (stuck in an ASP world) but this app makes me want to learn it and move to the 'other side'. Plus having the reference books built into the app is absolutely brilliant. Kudos to Panic on this great piece of software.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.