Re: [PHP] Executable flag on text files

2011-11-08 Thread Curtis Maurand
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

[PHP] Executable flag on text files

2011-11-08 Thread Ashley Sheridan
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

Re: [PHP] location of the PHP executable

2007-04-12 Thread Davi
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

Re: [PHP] location of the PHP executable

2007-04-11 Thread Chris
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

Re: [PHP] location of the PHP executable

2007-04-11 Thread Børge Holen
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 > >

Re: [PHP] location of the PHP executable

2007-04-11 Thread Jochem Maas
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

Re: [PHP] location of the PHP executable

2007-04-11 Thread Mattias Thorslund
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

Re: [PHP] location of the PHP executable

2007-04-11 Thread Richard Lynch
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 >

Re: [PHP] location of the PHP executable

2007-04-11 Thread Jochem Maas
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

RE: [PHP] location of the PHP executable

2007-04-11 Thread Buesching, Logan J
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

Re: [PHP] location of the PHP executable

2007-04-11 Thread Mattias Thorslund
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

Re: [PHP] location of the PHP executable

2007-04-11 Thread Davi
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

Re: [PHP] location of the PHP executable

2007-04-11 Thread Jarrel Cobb
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

Re: [PHP] location of the PHP executable

2007-04-11 Thread Jim Lucas
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

[PHP] location of the PHP executable

2007-04-11 Thread Mattias Thorslund
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

Re: [PHP] php executable and environmental variables

2003-11-06 Thread Eugene Lee
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

[PHP] php executable and environmental variables

2003-11-06 Thread Tom Diamond
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

Re: [PHP] executable

2002-12-27 Thread Michael J. Pawlowsky
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

Re: [PHP] executable

2002-12-27 Thread Marek Kilimajer
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

[PHP] executable

2002-12-27 Thread Edward Peloke
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

Re: [PHP] php executable

2001-08-20 Thread Chris Lambert
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

Re: [PHP] php executable

2001-08-20 Thread Jason Brooke
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

[PHP] php executable

2001-08-20 Thread Nick Davies
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

RE: [PHP] Using one invocation of PHP executable to generate multiple pages?

2001-02-26 Thread PHPBeginner.com
: [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

Re: [PHP] Using one invocation of PHP executable to generate multiple pages?

2001-02-25 Thread Miles Thompson
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

[PHP] Using one invocation of PHP executable to generate multiple pages?

2001-02-25 Thread Jim Lum
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

Re: [PHP] locating the actual php executable

2001-02-13 Thread Brian Clark
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

[PHP] locating the actual php executable

2001-02-13 Thread Brandon Orther
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