4images Forum & Community

4images Modifications / Modifikationen => Templates & Styles (Requests & Discussions) => Topic started by: FlashZeroX on March 12, 2003, 09:43:08 PM

Title: Have some problems to include php code
Post by: FlashZeroX on March 12, 2003, 09:43:08 PM
Hello,

i'am having a problem to include a php code like this:

<? $page = basename("$PHP_SELF"); echo "$page?id=wir_vorstellen"; ?>

I've put it into the header but if i also just write <?php ?> in the header i get this error message:

Parse error: parse error in /is/htdocs/33942/www.stadtwerke-hbm.de/gallery/includes/template.php(133) : eval()'d code on line 181

It is very import that it works with php code. Has someone a solution?
I read the forum a few times but i don't find anything tha could help me.
The Faq doesn't help me too because i don't want to include a file...
Title: Have some problems to include php code
Post by: V@no on March 12, 2003, 10:01:57 PM
Code: [Select]
<?php
$page 
basename&#40;"$PHP_SELF"&#41;; echo "$page?id=wir_vorstellen";
?>

<?php and ?> must be ALONE in the line.
Title: Have some problems to include php code
Post by: Chris on March 12, 2003, 10:59:35 PM
http://www.4homepages.de/forum/viewtopic.php?t=4295