1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Technical question for PHP writers

Discussion in 'Web & Email' started by vidyaishaya, Mar 15, 2004.

Thread Status:
Not open for further replies.
  1. vidyaishaya

    vidyaishaya Thread Starter

    Oct 26, 2001
    I have a client who needs BOTH some PHP and some SSI code in a webpage. The filetype needs to remain as SHTML. I tried making an SHTML page that included PHP, but what happens when I modify the .htaccess file is that one or the other gets done, but not both.

    For example, I used this in the .htaccess:

    AddType application/x-httpd-php .php .shtml
    AddType text/x-server-parsed-html .shtml
    DirectoryIndex index.shtml index.php index.html

    That does the PHP coding just fine in the shtml file, but not the
    <!--#exec cgi="/cgi-bin/Tracking/ax.cgi" --> SSI code
    line in the shtml page.

    When I switch the first two lines, it does the SSI, but not the PHP.

    How can I get it to do both the SSI *and* the PHP?


As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/212141

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice