PassMark Logo
Home » Forum

is php require statement possible in search_template.html

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • yourfungames
    Junior Member
    • Jul 2006
    • 2

    #1

    is php require statement possible in search_template.html

    Hi,

    I am using zoom search engine(professional) for www.doctorgoodskin.com. I have uploaded the search engine here- http://doctorgoodskin*com/search/search.php.

    I want the search page to look like the other pages on my site. I use php require statements to import the header file, menu files etc.

    Code:
    <?php require"../header/header.html";?>
    <?php require"../header/menu.html";?>
    Since the search file is php, I thought this code would work. But it is not working.

    Is it possible to use php in the search_template.html file? Can you suggest any other way to achieve this.

    Thanks much,

    Nishant
  • David
    Administrator
    • Dec 2004
    • 4714

    #2
    This is covered in our FAQ question,

    Q. How can I add server-side scripting (eg. PHP, ASP) to the search template?

    -------
    David

    Comment

    • yourfungames
      Junior Member
      • Jul 2006
      • 2

      #3
      Thanks! It worked! See this page- http://www.doctorgoodskin.com/search/

      One more question, if I make any changes in the configuration, then do I have to reindex my site for the changes to take place. Or is there any other way?

      Regards,

      Nishant

      Comment

      • David
        Administrator
        • Dec 2004
        • 4714

        #4
        In general yes. Configuration changes require the site to be reindexed. This is becuase configuration changes often alter the structure and content of the index files.

        ----
        David

        Comment

        Working...