[PHP] Name of file

2002-06-11 Thread Christoph Starkmann
I found the __FILE__ now, but this is not exactly what I want: I would like to have one script generating links to itself, only with different variables sent via GET like this: http://www.mydomain.tld/myscript.php?request=showcontent But __FILE__ gives me a file://-path... Do you have a smart i

[PHP] Name of file included

2002-02-05 Thread Ron Dyck
I need to access the name of a file included. ie: in index.php I've included various files, among them navigation.inc. Instead of manually typing at the top of everyfile, I'd like to use something like: === Ron Dyck WebbTech www.WebbTech.net [EMAIL P

[PHP] Name of file?

2001-11-20 Thread Jaime Iniesta Aleman
Here goes an easy one... I need a script that returns me the name of the page it is in. I mean, if this script is in a page called "test3.php", then it should return "test3.php", and if it is on a page called "heynow.php" it should return, you guessed it, "heynow.php". Thanks! -- PHP General