i have .htaccess on root of my web:
ErrorDocument 400 /e.php
ErrorDocument 401 /e.php
ErrorDocument 403 /e.php
ErrorDocument 404 /e.php
ErrorDocument 500 /e.php
When i try get via http an nonexisten html document : noneasdfaasd.html i
got result of e.php script.
When i try to get nonexisten dfsd
I have a script that when I execute via a browser retrieves information.
Ultimately I want this automated. There has been mention on these lists
about compliling php as cgi, which I think may help
This also may help out with some timeout issues that arise.
can anyone point me in the right dire
where still using
it.
-Original Message-
From: David Duong [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 18, 2002 2:08 PM
To: [EMAIL PROTECTED]
Subject: [PHP] PHP CGI
Can PHP be considered CGI?
Would PHP replace Perl as the main language of CGI?
--
PHP General Mailing List (http://www.php.
On Sun, 17 Mar 2002, David Duong wrote:
> Can PHP be considered CGI?
Sometimes.
CGI is a standardized interface between web servers and backend
applications. PHP can communicate with web servers using that mechanism,
but it doesn't have to (depends on the web server in use).
I think the probl
I mean any time you hear the word CGI it is rarely referring to PHP, always
Perl (My most comfortable Web language). You'd think that CGI only refers
to Perl.
If you goto a site and download scripts under category CGI you would be
downloading Perl scripts, PHP has its own category.
Should CGI s
arch 18, 2002 3:47 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] PHP CGI
I mean any time you hear the word CGI it is rarely referring to PHP, always
Perl (My most comfortable Web language). You'd think that CGI only refers
to Perl.
If you goto a site and download scripts under category CG
On Sun, 17 Mar 2002, David Duong wrote:
> I mean any time you hear the word CGI it is rarely referring to PHP, always
> Perl (My most comfortable Web language). You'd think that CGI only refers
> to Perl.
Back in the day, CGI repositories had a greater representation of programs
written in C an
> Who knows? It might. Its use is growing rapidly, and it's much easier to
> learn. A few years ago the prospect would have been unthinkable, due to
> the vastly greater supply of Perl CGI web apps and free libraries in
> circulation. These days the advantage is not so strong. And PHP is far
>
On Sunday, March 17, 2002, at 10:07 PM, David Duong wrote:
> Can PHP be considered CGI?
>
> Would PHP replace Perl as the main language of CGI?
Unless you are specifically referring to Common Gateway Interface, the
term "CGI" should be deprecated in favor of the term "server-side
scripting l
Hi Caspar,
@ 10:54:13 AM on 11/21/01, Caspar Kennerdale wrote:
> I have a script that when I execute via a browser retrieves information.
> Ultimately I want this automated. There has been mention on these lists
> about compliling php as cgi, which I think may help
By automated do you mean wi
automation issue
thanks
-Original Message-
From: Brian Clark [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 21, 2001 16:04
To: PHP is not a drug.
Subject: Re: [PHP] php- cgi
Hi Caspar,
@ 10:54:13 AM on 11/21/01, Caspar Kennerdale wrote:
> I have a script that when I execute
Hi Caspar,
@ 11:11:25 AM on 11/21/01, Caspar Kennerdale wrote:
> yes ideally with cron- I know nothing about it really other than a
> little bit i've read- but my isp says they can execute a perl file
> and not a php file via cron.
ISP's can be strange about that stuff, but it's understandable
Thanks I'll give it a go
-Original Message-
From: Brian Clark [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 21, 2001 16:26
To: PHP is not a drug.
Subject: Re: [PHP] php- cgi
Hi Caspar,
@ 11:11:25 AM on 11/21/01, Caspar Kennerdale wrote:
> yes ideally with cron- I know
Brian Clark wrote:
> way you'd configure a cgi-bin for perl-cgi scripts, but I don't know
> if running php as an apache module AND as a cgi is going to fly.
PHP as both CGI and Module on the same box works just fine.
In fact, using multiple mime types and file extensions, you can have as
many
At 03:54 PM 11/21/2001 +, Caspar Kennerdale wrote:
>I have a script that when I execute via a browser retrieves information.
>
>Ultimately I want this automated. There has been mention on these lists
>about compliling php as cgi, which I think may help
I saw the following somewhere and saved
I have installed the CGI version of PHP and customized Apache's
httpd.conf. (Had to use CGI for this instance).
Since I only need (and want) a few php scripts to be available on this
server, I added the following line to httpd.conf in order to get my
script to work.
ScriptAlias /myfile.php /loca
Ok, I give up... how do I build PHP as a CGI-Binary? I've spent two days
searching the configure file for this.
Julia
--
[ Julia Anne Case ] [Ships are safe inside the harbor, ]
[Programmer at large] [ but is that what ships are really for.]
[ Admining Linux ] [
Hi all,
This is a tough one, wasn't able to find a solution so far. But
I hope that someone can help me out
or point me in the right direction.
Here is what I got:
/src contains a bunch of cgi scripts that require apache to have an
entry like this
ScriptAlias /src "/home/src/"
When I try t
The solution ended up being the need to re-compile php with the
"--enable-discard-path" configure option. This removed the
"#!/usr/local/bin/php" line from the top of the file.
Thanks for the feedback.
Tim
Tim Livers wrote:
> I have installed the CGI version of PHP and customized Apache's
> h
IF you dont specify --with-apache or --with-apxs configure options you will build the
CGI !
- Frank
>Ok, I give up... how do I build PHP as a CGI-Binary? I've spent two days
>searching the configure file for this.
>
>Julia
>
>--
>[ Julia Anne Case ] [Ships are safe inside the harb
do .php files work anywhere else?
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf
> Of Maroufski
> Sent: Thursday, March 22, 2001 5:41 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] PHP/CGI Help
>
>
> Hi all,
> This
Of Maroufski
> Sent: Thursday, March 22, 2001 5:41 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] PHP/CGI Help
>
>
> Hi all,
> This is a tough one, wasn't able to find a solution so far. But
> I hope that someone can help me out
> or point me in the right directio
php4 "php excicution file location"
> AddType application/x-httpd-php4 .php
>
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf
> > Of Maroufski
> > Sent: Thursday, March 22, 2001 5:41 PM
> > To: [EMAIL PROTECTED]
Hi All,
Just need a bit of help on an issue i currently have. I have a php
script that is being called like a cgi and am trying to read stdin so that
i can get the raw http data that is being passed to apache. My problem is
that it all works fine outside the web environment but as soon as
Yes I have set cgi.force_redirect=0 in my php.ini file. I have trippled
checked this! I am running PHP 4.2.0 on Win2K IIS5 as CGI. What am I
missing? Any known bugs?
Tx
MH
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
I have a RH 7.2 server with php 4.1.2 installed as a CGI.
I'm trying to run this script
#!/usr/local/phpcgi/bin/php -q
I get this as output:
[root@dev bin]# ./test.php
Error in argument 1, char 3: option not found
Error in argument 1, char 3: option not found
Usage: php [-q] [-h] [-s [-
Can someone confirm the following that was sent to me by my hosting provider. If have
php script file that can not be found throwing 500 errors instead of 404 errors.
~~
Because PHP-CGI is a little strange, you (as far as I know) apparently
can't set up any so
I've been trying to get the cgi version of php working with Apache and
suexec but so far I have not had much success. I've installed the Apache
module version of php and it seems to work fine. I then installed the
cgi version of php and it too seems to work fine as long as it
doesn't run throug
c.com/volunteer.htm
- Original Message -
From: <[EMAIL PROTECTED]>
Newsgroups: php.general
Sent: Friday, February 23, 2001 1:18 PM
Subject: [PHP] php (cgi version) with Apache and suexec - help
>
> I've been trying to get the cgi version of php working with Apache and
>
e Music? Buy a CD: http://l-i-e.com/artists.htm
> Volunteer a little time: http://chatmusic.com/volunteer.htm
> - Original Message -
> From: <[EMAIL PROTECTED]>
> Newsgroups: php.general
> Sent: Friday, February 23, 2001 1:18 PM
> Subject: [PHP] php (cgi version) with Apache
Hi,
I've FreeBSD 4.2/Apache 1.3.9/PHP 4.0.6
I've installed PHP in Apache, it works very well
I need to have too PHP 4.0.6 in CGI mode (With Suexec but I don't think it's
the problem) but I've a problem.
In CGI mode, the path of PHP is always written at the top of the result
I'll take for exampl
Hi,
I'll synthetize the problem with the response I have givven to Curt.
I've FreeBSD 4.2/Apache 1.3.9/PHP 4.0.6
I've installed PHP in Apache, it works very well
I need to have too PHP 4.0.6 in CGI mode (With Suexec but I don't think it's
the problem) but I've a problem.
In CGI mode, the path
It's not you. I just built a bare cgi version of php, nothing but
'./configure' and got the same result.
I used this simple script to be sure I was in fact running the cgi binary
and it showed I was.
info.cgi
#!/usr/local/bin/php
I got the correct info page, but with the #!/usr/local/bin/php a
Nope it fails when he removes the line. It fails on me as well, I tried
it. Also note I did say that the ouput of phpinfo() was correct. The
output showed the page had been handled by the php cgi binary, not the
module.
The module has a large config line and several extensions
configured in, the
install
<[EMAIL PROTECTED]>
Sent: Saturday, October 20, 2001 6:05 PM
Subject: [PHP-INST] Re: [PHP] PHP/CGI problem: #!/path/php at top of CGI
script appears in output
> It's not you. I just built a bare cgi version of php, nothing but
> './configure' and got the same
35 matches
Mail list logo