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
Version 7.7.5 Images suddenly not displaying
by Stovebolt - 05/04/2024 11:19 AM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
Who's Online Now
2 members (Ruben, ahmed047), 394 guests, and 184 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240506)