Jump to content

[SOLVED] Get current document name?


thefortrees

Recommended Posts

Hi all -

 

I would like to retrieve the current document name and store it in a variable.

 

Example: I am at page http://www.home.com/currentinfo.php.

I would like to take the string 'currentinfo.php' and assign it to a variable.

 

Is there any PHP function or global variable that can do that?

 

Thanks,

T

Link to comment
https://forums.phpfreaks.com/topic/58733-solved-get-current-document-name/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.