Re: [PHP] Re: pcntl_fork doesn't work [RESOLVED]

2005-01-26 Thread John Davin
Thanks. I had read about passthru before but missed the note about running a program in the background. I ended up working out a solution using exec: exec( "/usr/bin/php my_other_php_script.php arg1 arg2 arg3 &"). (passed some data to the other script on the commandline). thanks, -John On Wed, 26

Re: [PHP] Re: pcntl_fork doesn't work

2005-01-26 Thread Marek
> > I could run a background job which periodically does the gethostbyaddr > > on the IP's stored on disk, but that's sort of a hack, and is more > > complicated than if I could fork. > Sounds like passthru() might do what you want > . Actually forking to resolve ip b

Re: [PHP] Re: pcntl_fork doesn't work

2005-01-26 Thread Ben Ramsey
John Davin wrote: Isn't there any other way to fork a process? PHP doesn't have thread support? Why isn't pcntl enabled by default? Surely the Windows compatibility isn't an issue, because pcntl could default to enabled in linux but disabled in windows. I'll tell you what I'm trying to do, in c

Re: [PHP] Re: pcntl_fork doesn't work

2005-01-26 Thread John Davin
That's what I was afraid of. My web host (totalchoicehosting) doesn't have pcntl compiled in either, so I'm sort of stuck. Isn't there any other way to fork a process? PHP doesn't have thread support? Why isn't pcntl enabled by default? Surely the Windows compatibility isn't an issue, because p

[PHP] Re: pcntl_fork doesn't work

2005-01-26 Thread Ben Ramsey
John Davin wrote: The manual says pcntl is present in php >= 4.1.0. I have 4.3.10, just the standard installation included on fedora core 3. Why wouldn't pcntl be working? Is there any other way for me to fork a process or thread? Take a look at http://www.php.net/pcntl. If you're using the st