Hi,
I want to get the path of a php script I'm running in cli.
I tried __FILE__,
but it only gives the file name.
pathname of script in cli
-
chris
- Site Admin
- Posts: 216
- Joined: Mon Jul 21, 2008 9:52 am
Re: pathname of script in cli
Oeps too fast
already found it: __DIR__

already found it: __DIR__