On Sat, 2009-01-24 at 00:22 +0200, Török Alpár wrote:
> as i said it's hate here, and i might be wrong but consider the following :
>
> for($icount=0;$icount<11;$icount++)
> {
> $iPid = pcntl_fork();
> $iChildrenCount = 0;
> if ($iPid == 0)
> {
> // child
> echo ("child $icount\
as i said it's hate here, and i might be wrong but consider the following :
for($icount=0;$icount<11;$icount++)
{
$iPid = pcntl_fork();
$iChildrenCount = 0;
if ($iPid == 0)
{
// child
echo ("child $icount\n");
}
else
{
// parrent
}
}
this is essential what you do in
Török Alpár wrote:
2009/1/23 Nathan Rixham
bruce wrote:
A simple question (or so I thought).
Does php allow an app to create/start a process/application that can
continue to run on its own, after the initiating program/app terminates?
It appears that the spawning/forking functions might wo
2009/1/23 Nathan Rixham
> bruce wrote:
>
>> A simple question (or so I thought).
>>
>> Does php allow an app to create/start a process/application that can
>> continue to run on its own, after the initiating program/app terminates?
>>
>> It appears that the spawning/forking functions might work,
bruce wrote:
A simple question (or so I thought).
Does php allow an app to create/start a process/application that can
continue to run on its own, after the initiating program/app terminates?
It appears that the spawning/forking functions might work, but the child
apps would be in a zombie stat
bruce wrote:
> A simple question (or so I thought).
>
> Does php allow an app to create/start a process/application that can
> continue to run on its own, after the initiating program/app
> terminates?
Generally yes, but it's partially up to the spawned process to
completely detach itself.
> It
Hi Török.
My test code had/has something similar.. but it kept displaying zombie
processes as well as legitimate processes in the ps tbl/display...
Turns out I had a mistake in the test "client" ap/process that I was
creating... This was causing the child process to die, resulting in a "zombie"
> -Original Message-
> From: Boyd, Todd M.
> Sent: Friday, January 23, 2009 1:44 PM
> To: 'Bastien Koert'
> Cc: php-general@lists.php.net
> Subject: RE: [PHP] Java / PHP Bridge
>
> > -Original Message-
> > From: Bastien Koert [mailto:phps...@gmail.com]
> > Sent: Friday, January 23,
> -Original Message-
> From: Bastien Koert [mailto:phps...@gmail.com]
> Sent: Friday, January 23, 2009 1:13 PM
> To: c...@l-i-e.com
> Cc: php-general@lists.php.net
> Subject: Re: [PHP] Java / PHP Bridge
>
> On Fri, Jan 23, 2009 at 10:02 AM, wrote:
>
> >
> > Zero real experience, but what
On Fri, Jan 23, 2009 at 10:02 AM, wrote:
>
> Zero real experience, but what I hear is that the Java / PHP bridges are a
> bit brittle and difficult to shore up properly...
>
> You may want to consider going with HTTP REST / RPC services instead, as
> those are quite solid, and you can get what yo
I have achieved this by using curl_exec() to issue another HTTP request on
the same server. By setting the timeout to a small number I regain control
and can continue with other things while the new process runs to completion.
Here is my code:
$url = 'HTTP://' .$_SERVER['HTTP_HOST'] .'/newp
2009/1/23 bruce
> A simple question (or so I thought).
>
> Does php allow an app to create/start a process/application that can
> continue to run on its own, after the initiating program/app terminates?
>
> It appears that the spawning/forking functions might work, but the child
> apps would be i
On Fri, Jan 23, 2009 at 3:47 PM, bruce wrote:
> A simple question (or so I thought).
>
> Does php allow an app to create/start a process/application that can
> continue to run on its own, after the initiating program/app terminates?
>
> It appears that the spawning/forking functions might work, b
A simple question (or so I thought).
Does php allow an app to create/start a process/application that can
continue to run on its own, after the initiating program/app terminates?
It appears that the spawning/forking functions might work, but the child
apps would be in a zombie status, and couldn'
c...@l-i-e.com wrote:
And vice-versa:
Any PHP functionality that needs to be called from Java can be a web service
using whatever weapon you find suitable.
yup and if I may suggest, wso2 WSF for PHP is probably you're best bet
for doing this;
http://wso2.org/ no finer php web service fram
And vice-versa:
Any PHP functionality that needs to be called from Java can be a web service
using whatever weapon you find suitable.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
c...@l-i-e.com wrote:
Zero real experience, but what I hear is that the Java / PHP bridges are a bit
brittle and difficult to shore up properly...
You may want to consider going with HTTP REST / RPC services instead, as those
are quite solid, and you can get what you want.
Note that this is a
> -Original Message-
> From: c...@l-i-e.com [mailto:c...@l-i-e.com]
> Sent: Friday, January 23, 2009 9:02 AM
> To: php-general@lists.php.net
> Subject: Re: [PHP] Java / PHP Bridge
>
>
> Zero real experience, but what I hear is that the Java / PHP bridges
> are a bit brittle and difficult
Zero real experience, but what I hear is that the Java / PHP bridges are a bit
brittle and difficult to shore up properly...
You may want to consider going with HTTP REST / RPC services instead, as those
are quite solid, and you can get what you want.
Note that this is all hearsay on my pa
Hi there,
I would like to create a application that can be able to authenticate by
client certificate.
Can I make this by apache/php? Anyone can recomend me documantation?
Thanks,
JCampos
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
I'm attempting to install PHP 5.2.8 on CentOS 5.2 x86_64. The glibc iconv
doesn't seem to function very well, leading to a bunch of failed tests when
running 'make test' (see below). After a bit of Googling I stumbled upon
http://nl2.php.net/manual/en/intro.iconv.php which suggests to in
How can I tell the difference between a variable whose value is null and
a variable which is not set?
// cannot use === null:
ket% php -r '$null = null; var_dump(null === $null);'
bool(true)
ket% php -r 'var_dump(null === $unset);'
bool(true)
ket%
// - cannot use isset() either
Hi all,
I've been looking into running a complex Java simulation I've made from a
LAMP web server and was wondering if this was possible? Basically the user
is able to set the configuation from a page and then my intention is for a
PHP script to execute the Java. I've read into all the Java/PHP
23 matches
Mail list logo