Thanks to all,

I've done the settings as stated in my first message.
MAMP is set to use its htdocs folder as site root, the server URL is
MAMP's preset localhost:8888, "Use local preview server" is checked.
My question is merely about having to save the file (ie. create it in
the site root folder) before previewing it.
If I understand this rightly this is required because the PHP in the
file has to be handled via the server (which requires the file to be
in it's root folder) when this is not required for the BBEdit built'in
HTML interpreter.
But then why is it that, once the file exists in the root folder, a
"non saved" php modification is updated "live" in the preview ?


On 9 fév, 22:26, Maarten Sneep <[email protected]> wrote:
> On 9 feb 2010, at 22:07, Robert A. Rosenberg wrote:
>
> > At 22:59 -0800 on 02/08/2010, jaladuvar wrote about Re: Settings for 
> > previewing php in BBEdit:
>
> >> Yes, it works fine both in BBedit Local Preview and in the browsers,
> >> but the preview requires that the file has been saved into it, which
> >> takes away the interest of the BBedit Local preview, which I like to
> >> use when writing up html code and would like to be able to use for php
> >> code as well of course...
>
> > Using BBEdit to view HTML you are editing, can work since there is a 
> > built-in HTML interpreter. PHP needs a Browser (and a running Server with 
> > PHP support). Thus BBEdit can not handle it on its own.
>
> If you run a server on your mac, BBedit will happily run the php files 
> through the server and show the results. This requires some setup, but this 
> is trivial enough:
>
> Preferences, HTML Web Sites. 'Add' or 'Change'. Fill out form. Make sure 'Use 
> local preview server' is checked.
>
> Maarten

-- 
You received this message because you are subscribed to the 
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/bbedit?hl=en
If you have a feature request or would like to report a problem, 
please email "[email protected]" rather than posting to the group.

Reply via email to