LMSouq
php-dev Open

How can I get the current script file name, but without the extension ".php"?

AL
Alex
1 month ago
3 views
Problem Description
If I have PHP script, how can I get the filename of the currently executed file without its extension? Given the name of a script of the form "jquery.js.php", how can I extract just the "jquery.js" part?

AI-Generated Solution

Powered by LMSouq AI · GPT-4.1-mini

✓ Solution Ready
Analyzing problem and generating solution…
Was this solution helpful?
Back to Knowledge Base