On 11/8/2011 6:53 AM, Ashley Sheridan wrote:
Sorry for this slightly off-topic post and it not being connected to
the thread that it originally came from, but I remember Tedd was
asking about this.
I'd thought that the executable flag on files didn't do anything for
things like PHP files, etc
Sorry for this slightly off-topic post and it not being connected to
the thread that it originally came from, but I remember Tedd was
asking about this.
I'd thought that the executable flag on files didn't do anything for
things like PHP files, etc, but I've just found something that says
Em Quarta 11 Abril 2007 19:38, Buesching, Logan J escreveu:
> IF db not exists THEN
> locate -u
> END-IF
>
> I'd hate to see the time it'd take to create a first-time database...
> this could take awhile to run.
>
_maybe_ locate -u is faster than ls / -Rv... Need to test before
Børge Holen wrote:
On Wednesday 11 April 2007 23:50, Jarrel Cobb wrote:
Don't you have to run locate -u first to generate the database before using
locate? You can't just assume a database exists already can you?
not an updated one at least, updatedb can also be used to update.
Probably can
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
> >
in $_ENV and $_SERVER, on Linux. I don't have handy access
> to a working Windows installation, yet it needs to work on Windows as well.
>
> If it really does exist on Windows, this might be the ticket, otherwise
> a partial solution for Linux only.
>
>
>>> but that
ight be the ticket, otherwise
a partial solution for Linux only.
> > but that was only on linux.
> > on windows (where my php cli install is a bit borked),
> > I didn't find it but I did find "PHPRC" which points to
> > the directory that the php executable live
On Wed, April 11, 2007 2:49 pm, Mattias Thorslund wrote:
> 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
>
if it always exists but on the few boxes
I tried I found and entry in both $_SERVER and $_ENV:
"_" => '/usr/bin/php'
but that was only on linux.
on windows (where my php cli install is a bit borked),
I didn't find it but I did find "PHPRC" which points to
the
ts.php.net
Subject: Re: [PHP] location of the PHP executable
Em Quarta 11 Abril 2007 18:50, Jarrel Cobb escreveu:
> Don't you have to run locate -u first to generate the database before
using
> locate? You can't just assume a database exists already can you?
>
If you can use lo
Jim Lucas wrote:
> Mattias Thorslund wrote:
>> 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 becau
Em Quarta 11 Abril 2007 18:50, Jarrel Cobb escreveu:
> Don't you have to run locate -u first to generate the database before using
> locate? You can't just assume a database exists already can you?
>
If you can use locate, you can use which... =P
BTW, do something to check OS then:
IF OS == *ni
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 OS
Mattias Thorslund wrote:
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&qu
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
eaders from body and send it back to the client. For simple
: php pages this thing works fine. But (obviously) it does not work for
: pages requiring parameters.
: So my question is what exactly the php executable searches for in the
: environment? Which are the (CGI???) variables I'll have
mple
php pages this thing works fine. But (obviously) it does not work for
pages requiring parameters.
So my question is what exactly the php executable searches for in the
environment? Which are the (CGI???) variables I'll have to set so that
it will process POST and GET correctly?
Tnx i
Sure... with the use of the proper MIME type and if they have that MIME type mapped to
that application.
Think of a PDF.. it gets sent out with the header Content-type: application/pdf
Your browser has a reference for that MIME type to link it to acrobat reader...
so it opens up reader (or the plu
No, you cannot execute commands on the users machine. However, if you
use the right content-type
header and the user browser is set up to open movie streams in a player,
you don't need it.
Edward Peloke wrote:
Hello all,
Can php call an executable on the users machine? I have some divx movies
Hello all,
Can php call an executable on the users machine? I have some divx movies
and I want the user to be able to click on a link and the php page will open
the divx player and start to stream the movie. is this possible?
Thanks,
Eddie
--
PHP General Mailing List (http://www.php.net/)
To
2001 6:06 AM
Subject: [PHP] php executable
|
| Is it possible to surpress the
|
| X-Powered-By: PHP/4.0.6
| Content-type: text/html
|
| text when running php from the commandline?
|
| Thanks.
| Nick.
|
|
| --
| PHP General Mailing List (http://www.php.net/)
| To unsubscribe, e-mail: [EMA
php -q
try php -h for other options - if that fails, there's always the manual -
http://www.php.net/manual
- Original Message -
From: "Nick Davies" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, August 20, 2001 8:06 PM
Subject: [PHP] php executa
Is it possible to surpress the
X-Powered-By: PHP/4.0.6
Content-type: text/html
text when running php from the commandline?
Thanks.
Nick.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact
: [EMAIL PROTECTED]
Subject: [PHP] Using one invocation of PHP executable to generate
multiple pages?
Hi,
I have PHP installed on a Win95 machine. What I'd like to do is to use
a PHP page that will create multiple HTML pages.
I guess that I can execute PHP.EXE multiple times, but was thi
Jim,
PHP works with your server to generate the HTML output, so PHP is "running"
all the time, it's not like a CGI script. PHP code is embedded in your HTML
pages, so you can use it to control the generated HTML. You can turn it on
and off within the page. Carefully look at Chapter 1 Page 1 of
Hi,
I have PHP installed on a Win95 machine. What I'd like to do is to use
a PHP page that will create multiple HTML pages.
I guess that I can execute PHP.EXE multiple times, but was thinking that
this means that it's going thru the overhead of starting up PHP.EXE each
time. Is there any way t
Hi Brandon,
@ 1:36:32 PM on 2/13/2001, [EMAIL PROTECTED] wrote:
> I am trying to locate the php executable on my server. Is there an
> easy way to do this?
Linux, I assume?
shell> su
shell> updatedb
shell> locate php | grep bin
May find it.
-Brian
--
PHP General Mai
Hello,
I am trying to locate the php executable on my server. Is there an easy way
to do this?
Thank you,
Brandon Orther
WebIntellects Design/Development Manager
[EMAIL PROTECTED]
800-994-6364
www.webintellects.com
28 matches
Mail list logo