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: 93
Joined: Thu Oct 05, 2017 9:59 am

Script name varible within PHP-Code

Post by RobiX » Mon Nov 27, 2017 10:10 pm

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
kinerity
Community Team Member
Community Team Member
Posts: 1886
Joined: Mon Sep 01, 2014 1:00 am
Location: sudo rm -rf /
Name: Kailey Truscott
Contact:

Re: Script name varible within PHP-Code

Post by kinerity » Tue Nov 28, 2017 3:40 am

I'm pretty sure it's $user->page['page_name'].
Kailey Truscott - Community Team

RobiX
Registered User
Posts: 93
Joined: Thu Oct 05, 2017 9:59 am

Re: Script name varible within PHP-Code

Post by RobiX » Tue Nov 28, 2017 9:52 pm

thank you

Post Reply

Return to “phpBB Custom Coding”

Who is online

Users browsing this forum: Ger and 2 guests