OK, I have an interesting predicimant:
The site I am currently working on uses phtml html files.
For example (an co-incidentally my problem) we have a page
called search.phtml.
Now, in my apache config, I have set up:
AddHandler cgi-script .cgi
AddType application/x-httpd-php3 .phtml
AddType application/x-httpd-php3 .php3
AddType application/x-httpd-php3-source .phps
So what this does is enables apache to process includes in phtml files.
Which works fine and peechy. Now, my search.phtml page looks like this:
<html>
<? include ('http://edpd02/1337/common_inc/top_section.inc'); ?>
<head>
</head>
<body>
<? include ('http://edpd02/cgi-bin/1337/search.pl'); ?>
</body>
</html>
so what that does is displays a search page (includes a
navigation menu at the top of the page), and then prints the
results of running the search.pl script to the page( in
this case we didn't run a search, so it only displays
a search box)
now that works all fine aswell.
Problem is, when we run a search, the results are processed/
printed out by result.pl. This prints a new page, WITHOUT the
ability to include the navigational menu at the top!!
which is where my problem lies. I guess if you have readt this
and followed, you may know the answer, else I can't
to my knowledge explain it any better....
basically as a result of the search it displays the results
on a new page, and prints the
<? include ('http://edpd02/1337/common_inc/top_section.inc'); ?>
at the top of the html page, yet doesnt actually 'include' that inc file
Any ides on how to go about rectifying this?
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.