Hello!
I'm familiar with perl, but not with php.
For a new online application of our institute, I made an cgi script. But for the lay-out, I must use certain CSS files that are made available on a general server of the institute.
Now I have to include following php-code in the header of the html-file. I tried several things, but nothing seems to work:
This is the php-code that must be included in the header:
---
<?php include("http://stijl.kuleuven.be/includes/styles1.inc");?>
<?php if (false) { ?>
<link rel="stylesheet" type="text/css" href="http://stijl.kuleuven.be/_c/main.css" media="all" />
<link rel="stylesheet" type="text/css" href="http://stijl.kuleuven.be/_c/subnav.css" media="all" />
<link rel="stylesheet" type="text/css" href="http://stijl.kuleuven.be/_c/nieuws.css" media="all" />
<?php } ?>
---
In my CGI script, the header is build with start_html(). But I really don't know a way to include the above php-code in the header.
Does somebody may have a solution?
regards,
Piet.
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.