Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get file name of calles php site

Status
Not open for further replies.

100bure

IS-IT--Management
Feb 11, 2002
12
CH
Hi
Is it possible to get the name of the called phpsite?
I mean, can I get the name within the called site?
For example if I call start.php then i would like to have shown on this site: "You called start.php".
 
I found the solution.

$filename=current(split("\.",basename($SCRIPT_NAME)));

 
Try $_SERVER['PHP_SELF'] too. It's a little quicker to type :) --
JR
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top