Help, trying to make ASP style tags work for PHP

J

Jerry McEwen

I've read a bunch of posts here and Googled and come up dry. Is my
host setup preventing this from working or am I doing something wrong?

Here is my question:

I am working on a site that is hosted on a PHP-enabled Apache server
and I rebuilt the site using a lot of PHP includes. The site owner
wants to edit in FrontPage and I cannot get pages to render as they
should in FP, not even in Preview Mode.

I have read the options and think the best solution is to:

A) Use ASP-style tags;
B) Modify .htaccess to override php.ini

I do not currently have access to the site's host, but am trying to
get this working on a server I can access and so far it fails.

I added this to .htaccess and tried it both above and below what is
already there:

<IfModule mod_php4.c>

php_value include_path ".:/usr/local/php"

php_flag asp_tags on

</IfModule>

Here is what was already there:

# -FrontPage-

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName www.mysite.com (this was changed for this post)
AuthUserFile /home/txallcom/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/txallcom/public_html/_vti_pvt/service.grp
 
J

Jerry McEwen

Okay, after reading some posts in
microsoft.public.frontpage.addins, maybe I am expecting too much. I am
partially where I would like to be, but here is a new problem.

I changed htaccess and ASP style tags are enabled, but I see no
difference. I also installed the PHP Rocket thing and can't see where
anything has changed.

If I open a PHP page in FP 2003, no PHP is rendered; that's okay. When
I go to Preview Mode, any link I click on gets fully rendered, but the
one page I am working on does not. If it did, I could be happy.

Please help!
 
B

Bob Lehmann

Server-side includes cannot be viewed in design mode or in the preview mode
as the includes run on the server.

You will need to use preview in browser.

Bob Lehmann
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top