PassMark Logo
Home » Forum

Announcement

Collapse
No announcement yet.

is php require statement possible in search_template.html

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

  • #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


    • #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


      • #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...
        X