Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

apache 2.2.8, PHP & SSI

  • 18-03-2008 9:59pm
    #1
    Registered Users, Registered Users 2 Posts: 1,002 ✭✭✭


    I have tried nearly every solution google throws up...but still no luck!
    All of this works in the LIVE environment but not in my local. I have just installed WAMP and am stuck trying to get SSI working.
    • I have an index.php file in the root of the site.
    • I have a header.php in an SSI folder.
    • index.php has a directive: <? include ("/ssi/header.php"); ?>
    • header.php has php code that displays an image depending on the page.
      <?
      if ($PHP_SELF == '/index.php')
      {
      echo ('<img src="/images/banner.gif" width="390" height="157">');
      }
      elseif ($PHP_SELF == '/aboutus.php')............... ?>
    • httpd file has these added:
      Options Indexes Includes FollowSymLinks

      AddType text/html .php
      AddOutputFilter INCLUDES .php
    • One more thing... I have a .htaccess file in the root which rewrites .php to .html


Comments

  • Closed Accounts Posts: 7,145 ✭✭✭DonkeyStyle \o/


    Might be a daft question, but have you got short tags enabled locally? (<? as opposed to <?php)?


  • Registered Users, Registered Users 2 Posts: 9,579 ✭✭✭Webmonkey


    Might be a daft question, but have you got short tags enabled locally? (<? as opposed to <?php)?
    +1 since as I believe PHP5 has them turned off by default


  • Registered Users, Registered Users 2 Posts: 1,002 ✭✭✭MargeS


    Nice one! I'd never in a million years have seen that. I'm new to PHP so have no experience with PHP v4. That fixed the problem, so now I am getting proper errors being logged.
    I'm having a problem changing the (include_path='.;C:\php5\pear') to my own path. But I reckon I can muddle through this. Thanks again.


Advertisement