Author Topic: Have some problems to include php code  (Read 5251 times)

0 Members and 1 Guest are viewing this topic.

Offline FlashZeroX

  • Pre-Newbie
  • Posts: 8
    • View Profile
Have some problems to include php code
« 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...

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Have some problems to include php code
« Reply #1 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.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile