On Mar 24, 2006, at 5:07 PM, Craig Heilman wrote:
I've been following the discussion about Preview and localhost and
php, etc. but still have questions.
I enabled PHP by editing httpd.conf, then put a test.php file (with
<?php phpinfo(); ?> as the contents) in ~/Sites/test/ and then
added a "test" configuration in BBEdit's "HTML Web Sites"
preferences. So far, so good. I open the test.php file in BBEdit,
hit the "Preview in BBEdit" button and bingo, I get the PHP info
screen.
For the next test, I put an index.shtml file in ~/Sites/test/, then
added an include subdirectory (where the server-side includes
live), and finally added the path "~/Sites/test/include/ to the
HTML Web Sites configuration. Here's the HTML Web Sites details:
Site Name: Test Folder
Web Server Name: http://localhost/
Site Path on Server: ~craigh/test/
Default Page Name: index.shtml
Local Site Root: ~/Sites/test
Look for Templates & Includes in: ~/Sites/test/include
[x] Use Local Preview Server
Preview Server URL: http://localhost/
Now when I preview index.shtml, I just get the text contents of the
file - the web server is NOT processing the server-side includes.
The SSI's are of the form "<!--#include virtual="include/
header.include" -->
Any idea on what might be happening here?
Make sure the following two lines in httpd.conf are uncommented:
AddType text/html .shtml
AddHandler server-parsed .shtml
--
------------------------------------------------------------------
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]>