Previous Thread
Next Thread
Print Thread
Hop To
#43924 01/25/2005 2:43 PM
Joined: Sep 2004
Posts: 28
F
newbie
newbie
F Offline
Joined: Sep 2004
Posts: 28
I´m trying to introduce a new layout which contains some dynamic elements, which switch atrributes like color / navigation elements, depending on in which section you currently are.
I´m using the apache variable $SCRIPT_FILENAME.

But, somehow this won´t work in the header of UBBT.
simple example:
<?php echo $SCRIPT_FILENAME; ?>

This won´t execute. I have plenty of php code in header and footer, but somehow this won´t work.
Any idea why?
thanks!

Joined: Jun 2006
Posts: 182
A
member
member
A Offline
Joined: Jun 2006
Posts: 182
Try $_SERVER['SCRIPT_FILENAME']

respectively

<?php echo "{$_SERVER['SCRIPT_FILENAME']}"; ?>

Joined: Sep 2004
Posts: 28
F
newbie
newbie
F Offline
Joined: Sep 2004
Posts: 28
it worked, great, thanks!


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
PHP 8 bug in membermanage.tmpl
by phoenix011235 - 09/08/2026 7:47 PM
Are any of these legitmate?
by Baldeagle - 09/06/2026 1:37 PM
After server reboot
by Morgan - 09/02/2026 8:27 AM
Email Settings
by Outdoorking - 05/13/2026 2:44 AM
Who's Online Now
0 members (), 206 guests, and 158 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Ride safe!
Ride safe!
by Morgan, December 7
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260527)