Results 1 to 1 of 1
Related
-
Question about asp includes Forum: Search Engine Optimization - SEO - Forum
Replies: 7 -
Includes! Forum: HTML Forum
Replies: 3 -
Server-side Includes Forum: HTML Forum
Replies: 2 -
Need some advice about includes Forum: Website Scripts Forum
Replies: 2 -
PHP includes Forum: PHP Forum
Replies: 19
-
06-11-2004, 06:41 PM #1
quik question reguarding includes
When i copy paste exactly what is in the includes into the file below - it works as it should. However, when i include the files header.php and footer.php, it generates the following errors. Parse error: parse error in /home/thevaria/public_html/tests/header.php on line 5 test Parse error: parse error in /home/thevaria/public_html/tests/footer.php on line 2
<?
$varone = 1;
if ($varone == 1) {
?>
<!-- just above here is where the header.php file would have ended. -->
test
<!-- just below here is where the footer.php file would have began. -->
<?
}
?>
The file with the includes looks like this..
<? include "header.php"; ?>
test
<? include "footer.php"; ?>
Like i said the includes are copied exactly from the code you see at the top, php tags and all. Any help is appreciated thx in advance.
*EDIT* for the heck of it i also tried include_once() with no luck :/Last edited by Variable; 06-12-2004 at 01:41 AM.
Cloudjiffy- PaaS for Developers
10-05-2020, 12:30 AM in Web Hosting Forum