Thanks a million, Kerri! That helps a lot.
On 3/18/06 3:50 PM, "Kerri" <[EMAIL PROTECTED]> wrote: > > Allen Watson wrote: > >> No one has really addressed the primary question: Why doesn't php code get >> executed when previewing a .php page in BBEdit, but _does_ get executed when >> viewed in a browser with http://localhost/~username/file.path? >> >> It seems to me that executing php code is a province of the apache server I >> am running; BBEdit knows nothing about php. So, although I find this >> inconvenient, it makes perfect sense to me, and I just save the file, switch >> to the browser, and refresh...I wish it could be easier. >> >> > It is. :-) > > Go to Preferences --> HTML Websites. Click the 'Add' button to make a > new website project, and set the 'local site root' to the directory > where your files are on your hard drive. You'll see, at the bottom, 'Use > local preview server'. If you check that box and set it to > http://localhost/, it will run your files through your local Apache > installation, parsing the PHP (since your local Apache seems configured > to parse PHP already) before displaying the result in BBEdit's preview > window. AND the live updating still works, which is tres cool. > > --Kerri > -- <[EMAIL PROTECTED]> Scripts for OE and Entourage: <http://homepage.mac.com/allen_a_watson/AppleScripts_For_You> Entourage questions: <http://www.entourage.mvps.org/> -- ------------------------------------------------------------------ Have a feature request? Not sure the software's working correctly? If so, please send mail to <[EMAIL PROTECTED]>, not to the list. List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml> List archives: <http://www.listsearch.com/BBEditTalk.lasso> To unsubscribe, send mail to: <[EMAIL PROTECTED]>
