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. On 3/8/06 3:53 PM, "Google Kreme" <[EMAIL PROTECTED]> wrote: > > I have a page that I am doing a lot of work with that is php/html. I > have the site saved on my local drive in ~/Sites/dev/ and I have http > on my server pointing to ~/Sites/ as the document root. > > if I op-en up safari and type in http://localhost/dev/ I get the > index page of the site. If I open the preview window in BBEdit I get > a bunch of php code and some part of the html code, although it's all > mixed with the php: > > To: ' .$pname. ' > ' .$addrs . ' > ' .sprintf("%03d-%03d-%04d", substr($pnum,0,3),substr($pnum, > 3,3),substr($pnum,6,4)); // substr($pnum,0,3),substr($pnum,3,3),substr > ($pnum,6,4)) . ' echo' > ' .$city . ', ' .$zip . ' > Pickup Date: ' . date('j [EMAIL PROTECTED]:i', $runDate) . ' > Call Time: ' . date('H:i', strtotime($tcall)) .' > > for example. > > I have the site defined in the BBEdit preferences as: > > Site Name: Dev > web server name: (the real path to the site on the server) > Site path on server: htmld/dev/ > Default Page Name: index.html > Local Site Root: ~/Sites/dev > [x] Use local preview Server > Preview Server URL: http://localhost/dev/ > > (I've also tried http://localhost/) > > -- <[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]>
