[PHP] Question about PHP-CGI, mysqld and sudden spiking average load readings on Linux Virtual Dedicated Server running CentOS 6.3

2013-02-11 Thread Gary Lebowitz
I have noticed when doing a "top" via SSH on my GoDaddy virtual dedicated server that every time a user logs in in the COMMAND column I see the PHP-CGI process start to run, followed by mysqld. Often when these two processes run I start to see a spike in average load, and sometimes

[PHP] 答复: [PHP] Re: Problem of load balance among php-cgi process

2011-10-20 Thread Sean Chen
lol. The last one: 500 23880 0.0 0.0 209136 10832 ?S21:23 0:01 /usr/local/websrv/php/bin/php-cgi --fpm --fpm-config /usr/local/websrv/php/etc/php-fpm.conf 500 27195 15.0 0.1 210196 12644 ?S23:02 0:02 /usr/local/websrv/php/bin/php-cgi --fpm --fpm-config

Re: [PHP] Re: Problem of load balance among php-cgi process

2011-10-20 Thread Jim Lucas
On 10/20/2011 5:20 AM, sean chen wrote: >> The red one is busy My email client is color blind. -- Jim Lucas http://www.cmsws.com/ http://www.cmsws.com/examples/ http://www.bendsource.com/ C - (541) 408-5189 O - (541) 323-9113 H - (541) 323-4219 -- PHP General Mailing List (http://www.php.ne

[PHP] Re: Problem of load balance among php-cgi process

2011-10-20 Thread sean chen
It's cause by eaccelerator module, when I remove this module, the php-cgi works well. Is there some compatible issue between eaccelerator and php? Regards Sean 2011/10/19 Sean Chen > Hi, > > ** ** > > I’ve got a problem when running PHP with nginx, there are several

[PHP] Problem of load balance among php-cgi process

2011-10-19 Thread Sean Chen
Hi, I've got a problem when running PHP with nginx, there are several php-cgi processes and only one is busy at one time, like this: 500 23868 0.0 0.0 209164 10948 ?S21:23 0:01 /usr/local/websrv/php/bin/php-cgi --fpm --fpm-config /usr/local/websrv/php/etc/php-fpm

Re: [PHP] CGI PHP vs. FastCGI vs. mod_php vs. application server?

2011-10-12 Thread Mike Mackintosh
Nice write up Richard On Oct 12, 2011, at 7:06, Richard Quadling wrote: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] CGI PHP vs. FastCGI vs. mod_php vs. application server?

2011-10-12 Thread Richard Quadling
On 12 October 2011 09:19, saeed ahmed wrote: > greeting all, > > As far as I know, there are different ways to write a PHP application: > - CGI, ie. the usual way : some PHP code in web pages, and the PHP > interpreter is loaded each time a PHP page is called > - FastCGI : apparently, the interpre

[PHP] CGI PHP vs. FastCGI vs. mod_php vs. application server?

2011-10-12 Thread saeed ahmed
greeting all, As far as I know, there are different ways to write a PHP application: - CGI, ie. the usual way : some PHP code in web pages, and the PHP interpreter is loaded each time a PHP page is called - FastCGI : apparently, the interpreter is loaded at boot time; the application itself might

[PHP] CGI/FastCGI problem when debugging

2011-05-15 Thread taomin
Hi, everyone, I built a project base on ZF in Zend Studio 8, and run well. But when I debug the index.php as PHP Web Page, it always get the index.php file "save as", and then an CGI/FastCGI error, soon or later. I use Zend Debugger, and Local Zend server. I googled much , and have changed setting

Re: [PHP] Re: Want a answer about php-cgi

2010-04-22 Thread Sharl.Jimh.Tsin
thanks for your reply. i think i have know the reason now. the CGI version of php is not built by default,we MUST add "--enable-cgi" to configure explicitly. Best regards, Sharl.Jimh.Tsin 2010/4/22 Lupus Michaelis : > Le 21/04/2010 12:17, Sharl.Jimh.Tsin a écrit : > >>

[PHP] Re: Want a answer about php-cgi

2010-04-22 Thread Lupus Michaelis
Le 21/04/2010 12:17, Sharl.Jimh.Tsin a écrit : i can not find php-cgi file in the bin/sbin directory. WHY? ("--disable-cgi" is not used) cd to your build directory, then type next command : find . -name php5-cgi -or -name php-cgi -- Mickaël Wolff aka Lupus Michaelis http://lu

Re: [PHP] Want a answer about php-cgi

2010-04-22 Thread Sharl.Jimh.Tsin
hiplu : >>> Did you try --with-fastcgi or --enable-fastcgi >>> >>> >>> >>> >>> >>> Shiplu Mokaddim >>> My talks, http://talk.cmyweb.net >>> Follow me, http://twitter.com/shiplu >>> SUST Programmers, http://g

Re: [PHP] Want a answer about php-cgi

2010-04-21 Thread Sharl.Jimh.Tsin
rs, http://groups.google.com/group/p2psust >> Innovation distinguishes bet ... ... (ask Steve Jobs the rest) >> >> >> >> On Wed, Apr 21, 2010 at 5:17 PM, Sharl.Jimh.Tsin >> wrote: >>> i can not find php-cgi file in the bin/sbin directory. WHY? >> > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Want a answer about php-cgi

2010-04-21 Thread Sharl.Jimh.Tsin
talks, http://talk.cmyweb.net > Follow me, http://twitter.com/shiplu > SUST Programmers, http://groups.google.com/group/p2psust > Innovation distinguishes bet ... ... (ask Steve Jobs the rest) > > > > On Wed, Apr 21, 2010 at 5:17 PM, Sharl.Jimh.Tsin > wrote: >>

Re: [PHP] Want a answer about php-cgi

2010-04-21 Thread shiplu
, Sharl.Jimh.Tsin wrote: > i can not find php-cgi file in the bin/sbin directory. WHY? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Want a answer about php-cgi

2010-04-21 Thread Sharl.Jimh.Tsin
--with-zlib --with-bz2 --with-gd --with-mhash --with-imap --with-imap-ssl --with-ldap --with-mcrypt --with-mysql=/usr/local/mysql --with-mysql-sock=/tmp --with-mysqli=/usr/local/bin/mysql_config --with-xmlrpc after make install. i can not find php-cgi file in the bin/sbin directory. WHY? ("--di

Re: [PHP] C++, $_POST -> php-cgi

2009-06-10 Thread Simon
I'm working on something similar, here's the pseudo-code of what happens to ensure the PHP script run by my server doesnt see any difference than when it runs under apache or others... Say the php file to execute is "index.php" and it was called from a form post, the form tag also specified GET ar

[PHP] C++, $_POST -> php-cgi

2009-06-08 Thread Jasper
Hi, i'm planning to create a win32 http server that supports cgi. Does anybody see the problem in C++ -source? Php doesn't give any output, but if I don't set the rfc3875 environment variables, all output comes normally (expect post and other variables aren't set). Only what I'm able to set is $_

Re: [PHP] cgi vs php

2009-02-06 Thread Thodoris
Thodoris napsal(a): Y In cgi i can use perl ,c etc suppose i use perl now how efficiency differs? How cgi written in perl and php is differ in working in context of web service? other difference?. but their differ. On Thu, Feb 5, 2009 at 6:45 PM, Jay Blanchard wrote: [snip] can a

Re: [PHP] cgi vs php

2009-02-05 Thread Vikas Sharma
Thanx for your reply Thodoris i really new to this. i will follow your suggestions. and i admit tht my query was silly its b'zoz i know less . but wht the hell reply by the "Martin Zvarík". has he done all this in womb. MZ u also need to think before commenting such. On Thu, Feb

Re: [PHP] cgi vs php

2009-02-05 Thread Martin Zvarík
Thodoris napsal(a): Y In cgi i can use perl ,c etc suppose i use perl now how efficiency differs? How cgi written in perl and php is differ in working in context of web service? other difference?. but their differ. On Thu, Feb 5, 2009 at 6:45 PM, Jay Blanchard wrote: [snip] can any

Re: [PHP] cgi vs php

2009-02-05 Thread Thodoris
Y In cgi i can use perl ,c etc suppose i use perl now how efficiency differs? How cgi written in perl and php is differ in working in context of web service? other difference?. but their differ. On Thu, Feb 5, 2009 at 6:45 PM, Jay Blanchard wrote: [snip] can anybody tell me the benef

Re: [PHP] cgi vs php

2009-02-05 Thread Vikas Sharma
Y In cgi i can use perl ,c etc suppose i use perl now how efficiency differs? How cgi written in perl and php is differ in working in context of web service? other difference?. but their differ. On Thu, Feb 5, 2009 at 6:45 PM, Jay Blanchard wrote: > [snip] > can anybody tell me the benefits

RE: [PHP] cgi vs php

2009-02-05 Thread Jay Blanchard
[snip] can anybody tell me the benefits of php over cgi or vice versa? i need to compare both? [/snip] CGI is a gateway to be used by languages PHP is a language -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] cgi vs php

2009-02-05 Thread Vikas Sharma
can anybody tell me the benefits of php over cgi or vice versa? i need to compare both? -- vikas sharma

[PHP] Howto build statically linked PHP CGI (without shared libs)

2008-09-10 Thread santi
;-static" flags.. but the CGI builds using shared libs, example: # file /tmp/php-cgi /tmp/php-cgi: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.5, dynamically linked (uses shared libs), stripped # ldd /tmp/php-cgi | head libcrypt.so.1 => /lib/li

[PHP] Re: How to pass POST data to php-cgi

2008-03-16 Thread Hui Chen
I solved the problem myself. Following command works: export CONTENT_LENGTH=4; export REQUEST_METHOD=POST; export SCRIPT_FILENAME= test.php ; export CONTENT_TYPE=application/x-www-form-urlencoded; echo s=44 | php-cgi output: X-Powered-By: PHP/5.2.3-1ubuntu6.3 Content-type: text/html 44 a

[PHP] How to pass POST data to php-cgi

2008-03-16 Thread Hui Chen
Hi, I'm writing a simple httpd with php support via cgi/fastcgi. I tried several ways to pass POST data to php-cgi (by writing to child process's stdin from parent process), however, none of them worked Here's the most simple not working example: $ export CONTENT_LENGTH=4; exp

Re: [PHP] Re: php-cgi limitations

2006-03-09 Thread Max Schwanekamp
El Bekko wrote: Max Schwanekamp wrote: Can anyone offer or point me to a summary of differences between running php as an Apache module vs as a cgi executable? Specifically, I'm wanting to upgrade our servers to php 5 but there is one crucial third-party app we're using that still needs php 4

[PHP] Re: php-cgi limitations

2006-03-09 Thread El Bekko
Max Schwanekamp wrote: Can anyone offer or point me to a summary of differences between running php as an Apache module vs as a cgi executable? Specifically, I'm wanting to upgrade our servers to php 5 but there is one crucial third-party app we're using that still needs php 4, so I'm hoping I

[PHP] php-cgi limitations

2006-03-09 Thread Max Schwanekamp
Can anyone offer or point me to a summary of differences between running php as an Apache module vs as a cgi executable? Specifically, I'm wanting to upgrade our servers to php 5 but there is one crucial third-party app we're using that still needs php 4, so I'm hoping I can run just that app

[PHP] PHP CGI Security

2006-01-17 Thread Tim Traver
Hi all, ok, I have come up with an architecture to offer PHP to customers as a CGI, and want to get some opinions to make sure I'm not missing any glaring holes... I've decided to use suPHP to fork off PHP CGI scripts as the user and group. It seems to work pretty well, and I ha

[PHP] PHP CGI Variables

2006-01-10 Thread Tim Traver
Hi all, ok, I want to re-post this so that more people might see it, cause there has to be an answer somewhere... When using the GCI version of PHP with apache, I need to be able to set some of the php_admin_values that normally get set in the php.ini file on the fly... Since I am not usin

[PHP] Using .htaccess files with PHP CGI

2005-10-18 Thread Jason Kovacs
want to set 'session.save_path' for each virtual host to a directory other than the one set in php.ini that only apache can read/write to since my suexec'd php cgi binary can only write session data to a directory owned by the virtual host user. How can this be done? Any help would be appreciated, thanks. -Jason Kovacs

Re: [PHP] cgi chmod problem

2005-09-25 Thread Al
Mikey wrote: Al wrote: I've got a php script that checks certain file permissions and if not OK for writing, chmods as required. I can use ftp_site(); but, prefer not to because the code is not readily transportable. Requires ftp login. I'd like a simple cgi file that can be called by my

Re: [PHP] cgi chmod problem

2005-09-25 Thread Mikey
Al wrote: I've got a php script that checks certain file permissions and if not OK for writing, chmods as required. I can use ftp_site(); but, prefer not to because the code is not readily transportable. Requires ftp login. I'd like a simple cgi file that can be called by my script as need

[PHP] cgi chmod problem

2005-09-25 Thread Al
I've got a php script that checks certain file permissions and if not OK for writing, chmods as required. I can use ftp_site(); but, prefer not to because the code is not readily transportable. Requires ftp login. I'd like a simple cgi file that can be called by my script as needed. My cgi f

[PHP] CGI vs Apache module

2004-12-14 Thread Sandy Keathley
We have a Redhat server, which only allows PHP 4.3.2 to be installed by RPM. I manually compiled and installed 4.3.9 using the configure params as the RPM install. It compiled the CGI version, which seems to run, but Apache (2.0) doesn't recognize it. phpinfo() still reports 4.3.2. Any ideas

Re: [PHP] CGI vs Apache module

2004-12-14 Thread Richard Lynch
Sandy Keathley wrote: > We have a Redhat server, which only allows PHP 4.3.2 to be > installed by RPM. I manually compiled and installed 4.3.9 using > the configure params as the RPM install. It compiled the CGI > version, which seems to run, but Apache (2.0) doesn't recognize it. > phpinfo() sti

Re: [PHP] CGI vs Apache module

2004-12-14 Thread Greg Donald
On Tue, 14 Dec 2004 15:09:21 -0600, Sandy Keathley <[EMAIL PROTECTED]> wrote: > We have a Redhat server, which only allows PHP 4.3.2 to be > installed by RPM. I manually compiled and installed 4.3.9 using > the configure params as the RPM install. Did you remove the PHP rpm(s) first? > It compil

Re: [PHP] PHP-CGI: custom 404 error?

2004-10-15 Thread Christophe Chisogne
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

[PHP] PHP-CGI: custom 404 error?

2004-10-15 Thread Jared
I'm running PHP as CGI instead of as an apache module because my hosting 1) suggests it and 2) this way I can compile my own PHP with whatever options I want, including a custom php.ini. Works great except when I load a page that doesn't exist, such as foo.php, I get "No input file specified."

[PHP] CGI / PHP max_exec_time

2004-07-17 Thread Head
hello list, im running a php script from CLI/CGI on linux which has a variable execution time, some times it doesnt terminates by itself so i have to set a max_execution_time to terminate the script. My problem is that the max_exec_time on CGI versions is always 0 (never time out) which produces z

RE: [PHP] PHP cgi

2004-07-02 Thread Vail, Warren
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

Re: [PHP] PHP cgi

2004-07-02 Thread Curt Zirzow
* 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 --

[PHP] PHP cgi

2004-07-02 Thread 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? TIA, Steve

[PHP] php-cgi+suexec and fastcgi

2004-06-04 Thread Adrian Teasdale
Hi there we need to run php under another user account as we are setting up a link with it to Qmail. Our plan is to use: php-cgi+suexec for this. fastcgi may be an alternative and we are just php-cgi+wondering if there is anything bad about using fastcgi for this? Any help appreciated Thanks

[PHP] php-cgi+suexec and fastcgi

2004-06-04 Thread Adrian Teasdale
Hi there we need to run php under another user account as we are setting up a link with it to Qmail. Our plan is to use: php-cgi+suexec for this. fastcgi may be an alternative and we are just wondering if there is anything bad about using fastcgi for this? Any help appreciated Thanks Ade

[PHP] php cgi, apache suexec, filesystem problems

2004-05-21 Thread Peter Risdon
Hi, I am having a lot of problems with any PHP routines that have to access the filesystem - things like exec(), shell_exec(), system(), backticked shell commands, copy(), move_uploaded_file() and so on. I have a non-standard setup with CLI, CGI and mod_php all installed. These scripts are usin

[PHP] creation of php-cli and php-cgi

2004-04-19 Thread Carel, Michael P. (Digitel-GSM)
Hi, I'm having a problem compiling php with cli and cgi support. When i compiled php in redhat 7.3 it creates both php-cgi and php-cli in sapi/cgi and sapi/cli directories, but when i compiled it in Redhat Advance Server only php-cli was created. I used the same config command parameters in

[PHP] CGI Error

2004-03-23 Thread Alex Hogan
Hi All, I am getting this error when I trying to pass some url params; CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: And nothing Has anybody seen this before? I did a search and it seems that there are a f

RE: [PHP] cgi error --- please help

2004-01-28 Thread Gryffyn, Trevor
:[EMAIL PROTECTED] > Sent: Wednesday, January 28, 2004 4:52 PM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] cgi error --- please help > > > I recently had this error. Turns out that my php binary was the > CLI(command line interface only) version, not the cgi version > and

Re: [PHP] cgi error --- please help

2004-01-28 Thread Len Borowski
I recently had this error. Turns out that my php binary was the CLI(command line interface only) version, not the cgi version and so it wasn't sending the headers before parsing the php file. You should look at getting the right php binary. Also, if you have a question, you don't make 2 seperate

[PHP] cgi error --- please help

2004-01-28 Thread Dale Hersh
CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. I am getting this error and I can't figure out what is causing the problem. If I hit refresh on the broswer, the page loads just fine. Any ideas??? Thanks, Dale RUNNING IIS 6.0 & MSSQL 2000 -- P

[PHP] CGI ERROR

2004-01-28 Thread Dale Hersh
CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. I am getting this error and I can't figure out what is causing the problem. If I hit refresh on the broswer, the page loads just fine. Any ideas??? Thanks, Dale RUNNING IIS6.0 & MSSQL 2000 -- PH

[PHP] CGI Error -- need some ideas

2004-01-28 Thread Dale
CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. I am getting this error and I can't figure out what is causing the problem. If I hit refresh on the broswer, the page loads just fine. Any ideas??? Thanks, Dale NOTE: RUNNING IIS 6.0 WITH MSSQL 20

Re: [PHP] CGI ERROR

2004-01-27 Thread - Edwin -
On Tue, 27 Jan 2004 18:41:39 -0800 "Dale Hersh" <[EMAIL PROTECTED]> wrote: > CGI Error > The specified CGI application misbehaved by not returning a > complete set of HTTP headers. > > I am getting this error and I can't figure out what is causing > the problem. If I hit refresh on the broswer, t

[PHP] CGI ERROR

2004-01-27 Thread Dale Hersh
CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. I am getting this error and I can't figure out what is causing the problem. If I hit refresh on the broswer, the page loads just fine. Any ideas??? Thanks, Dale -- PHP General Mailing List (http:

[PHP] Re: Headers and sessions in php .cgi

2004-01-10 Thread Justin Patrin
BøRge Strand wrote: Hi there, I have a problem setting my headers right with php running as .cgi. I have to specify a Content-type for the cgi file to work. But how should I do both that and start a session? I have a few options: #! /usr/local/bin/php This way $_SESSION['count'] stays unset even

Re: [PHP] Headers and sessions in php .cgi

2004-01-10 Thread Børge Strand
> > I have a problem setting my headers right with php running as > > .cgi. I have to specify a Content-type for the cgi file to work. > > But how should I do both that and start a session? > > Try using header() instead of print to set Content-Type. > > Hope that helps. Thanks Chris. I tried t

Re: [PHP] Headers and sessions in php .cgi

2004-01-10 Thread Børge Strand
> >I have a problem setting my headers right with php running as .cgi. I > >have to specify a Content-type for the cgi file to work. But how > >should I do both that and start a session? > > > >I have a few options: > > > >#! /usr/local/bin/php > > >session_start(); > >print 'Content-type:

Re: [PHP] Headers and sessions in php .cgi

2004-01-10 Thread Chris Shiflett
--- Børge Strand <[EMAIL PROTECTED]> wrote: > I have a problem setting my headers right with php running as > .cgi. I have to specify a Content-type for the cgi file to work. > But how should I do both that and start a session? Try using header() instead of print to set Content-Type. Hope that he

Re: [PHP] Headers and sessions in php .cgi

2004-01-10 Thread David Otton
On Sat, 10 Jan 2004 17:44:18 +0100 (MET), you wrote: >I have a problem setting my headers right with php running as .cgi. I >have to specify a Content-type for the cgi file to work. But how >should I do both that and start a session? > >I have a few options: > >#! /usr/local/bin/php >session_s

[PHP] Headers and sessions in php .cgi

2004-01-10 Thread Børge Strand
Hi there, I have a problem setting my headers right with php running as .cgi. I have to specify a Content-type for the cgi file to work. But how should I do both that and start a session? I have a few options: #! /usr/local/bin/php ' . "\n"; print '' . "\n"; if (!isset($_SESSION['count

[PHP] Different php.ini with php - cgi

2003-12-10 Thread Bc. Radek Krejča
Hello, I have PHP as Apache so and I wand to use it in the command line as CGI. As apache module I have running with safe mode in the command line I want to use PHP without SAFE MODE. My PHP is compiled with so modules. If I use this construction: #!/usr/local/bin/php -c /root/ -q

[PHP] CGI script not running under suexec

2003-12-05 Thread Anas Mughal
I had been running a CGI version of PHP version 3 for many months with no issues. (I had custom extensions in the CGI version.) Well, my hosting company decided to enable suexec on Apache (running on Redhat Linux). As I understand, with suexec enabled, only the owner of a particular CGI script

Re: [PHP] CGI error when loading iFRAME

2003-11-15 Thread Marek Kilimajer
Miroslav I. wrote: Hi, people #The problem: There is an error message that stops proper loading of one iFRAME, I couldn't understand what is the problem. Complete error message issued: CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers i

[PHP] CGI error when loading iFRAME

2003-11-14 Thread Miroslav I.
Hi, people #The problem: There is an error message that stops proper loading of one iFRAME, I couldn't understand what is the problem. Complete error message issued: >>CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are

[PHP] php cgi

2003-10-23 Thread Michael P. Carel
Hi, I have here a problem for having the php-cgi binary in linux. I compiled php with php-cli and php-cgi but after installation i can't find the php-cgi binary, i only have the php-cli under /usr/local/bin/. Any idea why? Please help.. here's what i've did: './conf

Re: [PHP] php cgi configuration w/ htaccess

2003-10-20 Thread Curt Zirzow
* 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 li

[PHP] php cgi configuration w/ htaccess

2003-10-20 Thread Andrew Warner
My ISP hosted website uses the php apache module version, but I'm trying to use php cgi version for the part of my site edit application that actually creates and edits files on the site. This will avoid all the permision and chmod hassle when php tries to create and edit files. My IS

Re: [PHP] CGI Error, IIS

2003-09-14 Thread John W. Holmes
nabil wrote: Why this happen with me with IIS CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: Although it's not a bug, read this: http://bugs.php.net/bug.php?id=12061 -- ---John Holmes... Amazon Wishlist: www.amaz

Re: [PHP] CGI Error, IIS

2003-09-14 Thread Curt Zirzow
* Thus wrote nabil ([EMAIL PROTECTED]): > Why this happen with me with IIS > CGI Error > The specified CGI application misbehaved by not returning a complete set of > HTTP headers. The headers it did return are: check your IIS logs. Curt -- "I used to think I was indecisive, but now I'm not so s

[PHP] CGI Error, IIS

2003-09-14 Thread nabil
Why this happen with me with IIS CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] CGI timeout problem

2003-07-29 Thread John W. Holmes
imran wrote: CGI Timeout The specified CGI application exceeded the allowed time for processing. The server has deleted the process. " does it mean that I have to use set_time_limit so the script doesn't time out ? I don't really understand why I should do that. You may be reaching an IIS imposed

[PHP] CGI timeout problem

2003-07-29 Thread imran
hello, I wrote a very simple upload script and it perfectly works for small files. But if the file is too huge (I tried with 8Mbytes), my browser displays: " The page cannot be displayed ... Cannot find server or DNS Error Internet Explorer " instead of uploading the file and submitting the for

[PHP] CGI Timeout

2003-07-29 Thread imran
Hi, i facing a error during uploading a big size file (abt 200 MB). i incred = upload file size in php.ini and also incred connection time in IIS (web = server), but i getting again this below written error msg. any one known abt this... CGI Timeout The specified CGI application exceeded the allo

Re: [PHP] PHP CGI mode and command line variables

2003-07-24 Thread CDitty
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

Re: [PHP] PHP CGI mode and command line variables

2003-07-23 Thread Chris Shiflett
--- 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

Re: [PHP] PHP CGI mode and command line variables

2003-07-23 Thread CDitty
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

Re: [PHP] PHP CGI mode and command line variables

2003-07-23 Thread Chris Shiflett
--- 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

[PHP] PHP CGI mode and command line variables

2003-07-23 Thread CDitty
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 This is the error that it returns - Could not open input file: ./i

[PHP] problem: The PHP CGI cannot be accessed directly.

2003-07-15 Thread pehepe php
My system is windows 98 second edition im using pws i built php 4.2.2 when ý struggle to reach any .php file for example 127.0.0.1/sample.php this error occur: Security Alert! The PHP CGI cannot be accessed directly. This PHP CGI binary was compiled with force-cgi-redirect enabled. This means

[PHP] Piping to a PHP cgi-binary... broken in v4.3.2?

2003-02-24 Thread Dan Hardiker
Hey all, echo "" | /path/to/php That works on php v4.2.x but Ive got 3 machines on v4.3.x and none of them seem to respond to the piping of the php config. v4.2.x Response [1

[PHP] php ISA v.s. php CGI

2003-01-31 Thread Victor
What is the difference between PHP ISAPI filter and PHP CGI (which one would be better to install on IIS 5?) -thanks, - vic __ Post your free ad now! http://personals.yahoo.ca -- PHP General Mailing List (http

[PHP] PHP_SELF on a php CGI

2002-12-10 Thread info
Hello Leif, hello all, i compiled successfully php-4.3-dev deom tarball as CGI on RedHat7.3 register_globals is on And here is how my php behave: When I run the following script: info70.php 1) from commandline then [SCRIPT_NAME] => info70.php is set correctly 2) direkt via http request from

[PHP] Re: php cgi question - solved

2002-10-16 Thread David Cook
opmail/etc...etc) and read it, > then break out the various details and display it, basically just showing me > what was already in the file. (using the shebang method, as my php cgi > interpreter is OUTSIDE the web tree, but thats another story of getting the > damn thing to work at all...

Re: [PHP] Re: php cgi question

2002-10-14 Thread David Cook
Okies, FINALLY I think I have the reason (though not the solution as yet) Marco, you were spot on, which I hadn't pursued properly, only looking at the immediate parent directory permissions. In fact the whole ~vpopmail structure down to the individual users directory has a VERY restrictive set o

Re: [PHP] Re: php cgi question

2002-10-13 Thread Marco Tabini
Ok, that's a big step forward then. It's possible that your user does not have access to the directory tree where the file resides? Have you tried listing that directory and or opening the file (for example with cat) while using that file? If you can narrow it down to a permission problem (and, at

Re: [PHP] Re: php cgi question

2002-10-13 Thread David Cook
hmmm safe mode is disabled - for the apache module version from phpinfo() safe_mode Off Off > Just out of curiosity--have you tried su-ing to the Apache user and > executing your script as that user? yep, same result (although I had to change the apache user for a few minutes so it had a shell..

Re: [PHP] Re: php cgi question

2002-10-13 Thread Marco Tabini
I think you might be unable to access documents outside the root if you're in safe mode. Just out of curiosity--have you tried su-ing to the Apache user and executing your script as that user? On Sun, 2002-10-13 at 21:36, David Cook wrote: > Hi again all > > Just a bit more info, trying to trac

[PHP] Re: php cgi question

2002-10-13 Thread David Cook
Hi again all Just a bit more info, trying to track some more things down. I made a few changes, changed getmail so that it would allow the getmailrc file to be group writable, made a few changes to the user/group structure (including making apache a member of a specific new group, and then setti

Re: [PHP] php cgi question

2002-10-13 Thread Marco Tabini
g from the sell, imho you made a good decision not to post the source, since the problem was clearly somewhere else. Marco On Sun, 2002-10-13 at 11:20, David Cook wrote: > Hi Marco > > Thanks for the tips, they were what I was thinking was the problem, that > even when the php cgi wa

[PHP] php cgi question

2002-10-13 Thread David Cook
ady in the file. (using the shebang method, as my php cgi interpreter is OUTSIDE the web tree, but thats another story of getting the damn thing to work at all... damn RPM'S sometimes... that --enable-force-redirect had me stuck for a few days) When I tested it out from the shell, using ./get

Re: [PHP] php cgi question

2002-10-13 Thread David Cook
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

Re: [PHP] php cgi question

2002-10-13 Thread Marco Tabini
rote up a script that was just for POC, that would get the data for where > that file was supposed to be (the /home/vpopmail/etc...etc) and read it, > then break out the various details and display it, basically just showing me > what was already in the file. (using the shebang method, as m

[PHP] Re: php cgi question

2002-10-13 Thread David Cook
Just a quick addition, both the submit/link were very basic, they both worked like this $location = "/cgi-bin/getmailtest.cgi"; // $location = "getmail.php"; echo "$location"; print("Click here to test the cgi\n"); print(""); print("press the button to try the cgi as a redirect this way"); prin

RE: [PHP] Calling PHP (cgi) from a perl script and passsing parameters

2002-10-10 Thread Jim Carey
ilto:[EMAIL PROTECTED]] > Sent: Friday, 11 October 2002 9:28 AM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Re: [PHP] Calling PHP (cgi) from a perl script and passsing > parameters > > > What you're referring is CLI, not CGI Version of PHP. > > Anyway, i as

RE: [PHP] Calling PHP (cgi) from a perl script and passsing parameters

2002-10-10 Thread Jim Carey
11 October 2002 9:28 AM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Re: [PHP] Calling PHP (cgi) from a perl script and passsing > parameters > > > What you're referring is CLI, not CGI Version of PHP. > > Anyway, i assume, you're using a PHP

Re: [PHP] Calling PHP (cgi) from a perl script and passsing parameters

2002-10-10 Thread Sascha Cunz
What you're referring is CLI, not CGI Version of PHP. Anyway, i assume, you're using a PHP version 4.2 or higher. Have a look at the $_SERVER['argc'] and $_SERVER['argv']. Sascha Am Donnerstag, 10. Oktober 2002 23:57 schrieb Jim Carey: > Hi, > > have been having problems passing parameters to

  1   2   3   >