Script name varible within PHP-Code

Need some custom code changes to the phpBB core simple enough that you feel doesn't require an extension? Then post your request here so that community members can provide some assistance.

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
Post Reply
RobiX
Registered User
Posts: 110
Joined: Thu Oct 05, 2017 9:59 am

Script name varible within PHP-Code

Post by RobiX »

What is the name of the script name variable which I can use within PHP-files?
Within templates I can use {SCRIPT_NAME} which works - but, e.g., $script_name in PHP files doesn't ... tnx


http://localhhost/script.php <--- script is the name of the script which I need
User avatar
Kailey
Community Team Leader
Community Team Leader
Posts: 3733
Joined: Mon Sep 01, 2014 1:00 am
Location: sudo rm -rf /
Name: Kailey Snay
Contact:

Re: Script name varible within PHP-Code

Post by Kailey »

I'm pretty sure it's $user->page['page_name'].
Kailey Snay - Community Team Leader
Knowledge Base | Documentation | Community rules

If you have any questions about the rules/customs of this website, feel free to send me a PM.
RobiX
Registered User
Posts: 110
Joined: Thu Oct 05, 2017 9:59 am

Re: Script name varible within PHP-Code

Post by RobiX »

thank you
Post Reply

Return to “phpBB Custom Coding”