[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 
idea how to avoid this? Of course I can strip simply everything
to [...]/htdocs/, but isn't there a smarter way?

Cheers,

Kiko

-- 
It's not a bug, it's a feature.

[.nfq]

christoph starkmann

tel.: 0821 / 56 97 94 34
fax.: 0821 / 56 97 94 38

http://www.gruppe-69.com/

ICQ: 100601600
-- 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[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 !--navigation.inc-- at the top of everyfile,
I'd like to use something like: !--$included_file--

===
  Ron Dyck
  WebbTech
  www.WebbTech.net
  [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[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 Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]