Jared wrote:
foo.php, I get "No input file specified." Instead of the standard 404
error. Is there a way to customize this?
Easy with Apache [1,2], with en ErrorDocument [1] directive.
Ex with this in a .htaccess (the FileInfo Override [3] is required)
containing this line:
ErrorDocument 404 /Lame
urt Zirzow [mailto:[EMAIL PROTECTED]
Sent: Friday, July 02, 2004 3:38 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] PHP cgi
* Thus wrote Steve Douville:
> There used to be a way that stripped something from a PHP binary that
> drastically reduced the size of the cgi file. For the life of me, I
* Thus wrote Steve Douville:
> There used to be a way that stripped something from a PHP binary that
> drastically reduced the size of the cgi file. For the life of me, I can't
> remember and can't find it on google anywhere. Anyone know what it is?
You're looking for the 'strip' command
Curt
--
* Thus wrote Andrew Warner ([EMAIL PROTECTED]):
> I've never used php cgi version, and all the httacces configuration
> I've tried to map .phpc files to the php cgi binary hasn't worked
> right. I need an example htacces file or an example of a script
> header line with php location.
With cgi
That worked like a charm. Thanks Chris. I've added this to my snippet
collection. :)
At 12:02 AM 7/24/2003, Chris Shiflett wrote:
--- CDitty <[EMAIL PROTECTED]> wrote:
> Thanks man. That got rid of the error, however it is not using the
> variable in the script.
You have to read them in. I th
--- CDitty <[EMAIL PROTECTED]> wrote:
> Thanks man. That got rid of the error, however it is not using the
> variable in the script.
You have to read them in. I think you can just loop through $argv, so something
like this will show you what PHP is receiving:
Hope that helps.
Chris
=
Be
Thanks man. That got rid of the error, however it is not using the
variable in the script. I can't run this via wget or the browser since
the importing files are rather large.
Any other ideas?
Chris
At 11:33 PM 7/23/2003, Chris Shiflett wrote:
--- CDitty <[EMAIL PROTECTED]> wrote:
> I have
--- CDitty <[EMAIL PROTECTED]> wrote:
> I have written a script that runs fine when I run it via the
> command line. However, when I tack on variables to the command
> line, I get an error.
>
> This works.
> php -q ./import.php
>
> This doesn't
> php -q ./import.php?feed=eastwood
I might be
Hi David--
If that is the issue then I would suggest looking into the suexec module
for Apache...as long as you're very careful with the permissions, you
should be fine!
Also, my reference to the code was more a "caveat" than anything else.
In your case, if the script was working from the sell,
Hi Marco
Thanks for the tips, they were what I was thinking was the problem, that
even when the php cgi was owned by the correct user, that if it was being
called via another web based script, that it would be executed as apache (in
this case) rather than the actual owner of the cgiscript (vpopma
Without seeing your code... only one guess: what are the permissions on
the file like? When you're running the script from the web server,
you're running it as the user under which the web server is running
(usually nobody or apache if you're using Apache on Linux), and this
causes problem if that
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
> 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 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
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
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
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
simple answer - yes and possibly
I believe, anything that's run on a server to output stuff to a browser, can
be considered a CGI program
The second question is like asking - "Will COBOL ever become obsolete?" -
maybe, possibly, but there'll, no doubt, be someone, somewhere still using
it.
-O
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
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
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
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
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,
@ 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
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
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
Hi Peter,
Thanks for all the help. I actually started playing with what you told
me, and then did some trial-and-error testing
and found out that I didn't need ScriptAlias /src "/home/src/" at all.The
.php3 files ran when I removed it, then I added these
two lines to get the .pl and .cgi
you also need to have
ScriptAlias /src "/home/src/"
Action application/x-httpd-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, Mar
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 is a tough one, wasn't able to fin
The php.ini file has safe-mode = Off so I don't think that is the problem.
Suexec is checking to see that the php binary has the same uid/gid as the
virtual host user running the php script. Since the php binary is owned
by the web server user and the script is owned by one of the virtual hos
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
Don't use safe-mode in your suExec PHP CGI configure.
suExec pretty much does everything safe mode does anyway, and more.
--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/vo
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
34 matches
Mail list logo