Re: [PHP] Re: process creation

2009-01-23 Thread Ashley Sheridan
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\

Re: [PHP] Re: process creation

2009-01-23 Thread Török Alpár
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

Re: [PHP] Re: process creation

2009-01-23 Thread Nathan Rixham
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

Re: [PHP] Re: process creation

2009-01-23 Thread Török Alpár
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,

[PHP] Re: process creation

2009-01-23 Thread 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, but the child apps would be in a zombie stat

Re: [PHP] process creation

2009-01-23 Thread Per Jessen
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

RE: [PHP] process creation

2009-01-23 Thread bruce
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"

RE: [PHP] Java / PHP Bridge

2009-01-23 Thread Boyd, Todd M.
> -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,

RE: [PHP] Java / PHP Bridge

2009-01-23 Thread Boyd, Todd M.
> -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

Re: [PHP] Java / PHP Bridge

2009-01-23 Thread Bastien Koert
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

[PHP] Re: process creation

2009-01-23 Thread Tony Marston
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

Re: [PHP] process creation

2009-01-23 Thread Török Alpár
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

Re: [PHP] process creation

2009-01-23 Thread Alexandre Gaigalas
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

[PHP] process creation

2009-01-23 Thread 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 in a zombie status, and couldn'

Re: [PHP] Java / PHP Bridge

2009-01-23 Thread Nathan Rixham
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

Re: [PHP] Java / PHP Bridge

2009-01-23 Thread ceo
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

Re: [PHP] Java / PHP Bridge

2009-01-23 Thread Nathan Rixham
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

RE: [PHP] Java / PHP Bridge

2009-01-23 Thread Boyd, Todd M.
> -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

Re: [PHP] Java / PHP Bridge

2009-01-23 Thread ceo
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

[PHP] Authentication by client certificate

2009-01-23 Thread Jesus Campos
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

Re: [PHP] PHP 5.2.8 fails to find libiconv

2009-01-23 Thread Thodoris
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

Re: [PHP] distinguish between null variable and unset variable

2009-01-23 Thread Thodoris
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

[PHP] Java / PHP Bridge

2009-01-23 Thread DaveLyons85
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