location of the PHP executable
- From: mattias@xxxxxxxxxxxx (Mattias Thorslund)
- Date: Wed, 11 Apr 2007 12:49:54 -0700
Hi,
I have looked in the documentation but can't find it:
My PHP script (which is run from the command prompt - CLI) needs to know
the file system location of the PHP executable. This is because it needs
to run a second PHP script. I know about the "which" command but it's
not available in all OSes, and that might not be the currently running
executable anyway.
I could prompt the user for this, but that seems kind of silly. Surely,
there must be some way of looking it up automatically?
Thanks,
Mattias
.
- Follow-Ups:
- Re: [PHP] location of the PHP executable
- From: "Richard Lynch"
- Re: [PHP] location of the PHP executable
- From: Jim Lucas
- Re: [PHP] location of the PHP executable
- Prev by Date: Re: [PHP] Re: Design Dilemma - Database Data Abstraction
- Next by Date: Re: [PHP] PHP editor
- Previous by thread: output gz compression
- Next by thread: Re: [PHP] location of the PHP executable
- Index(es):
Relevant Pages
|
|