Re: [PHP] I want to write a Multi-threaded PHP Application

2006-04-27 Thread D. Dante Lorenso
Gonzalo Monzón wrote: Use Python, it is the way to go if you're willing to use mt :-) I've already written the multi-threaded server using Java. I want to do this in PHP, however, because the PHP threads can re-use PHP classes I've already written and hence standardize on a single codebase

Re: [PHP] I want to write a Multi-threaded PHP Application

2006-04-27 Thread Jochem Maas
D. Dante Lorenso wrote: Gonzalo Monzón wrote: Use Python, it is the way to go if you're willing to use mt :-) I've already written the multi-threaded server using Java. I want to do this in PHP, however, because the PHP threads can re-use PHP classes I've already written and hence

Re: [PHP] I want to write a Multi-threaded PHP Application

2006-04-27 Thread D. Dante Lorenso
Jochem Maas wrote: I've already written the multi-threaded server using Java. I want to do this in PHP, however, because the PHP threads can re-use PHP classes I've already written and hence standardize on a single codebase and language. Many other languages have threads (Java, C#, Python,

Re: [PHP] I want to write a Multi-threaded PHP Application

2006-04-27 Thread Jochem Maas
D. Dante Lorenso wrote: Jochem Maas wrote: I've already written the multi-threaded server using Java. I want to do this in PHP, however, because the PHP threads can re-use PHP classes I've already written and hence standardize on a single codebase and language. Many other languages have

Re: [PHP] I want to write a Multi-threaded PHP Application

2006-04-27 Thread Richard Lynch
On Thu, April 27, 2006 3:24 am, D. Dante Lorenso wrote: priority. You simply can't be an enterprise language without these basic features. You simply can't put Threads in the same sentence with basic features, not even by implication. :-) There is NOTHING basic about threads, no matter how

Re: [PHP] I want to write a Multi-threaded PHP Application

2006-04-27 Thread Richard Lynch
On Thu, April 27, 2006 4:18 am, D. Dante Lorenso wrote: Evolution of the language is a must. I AM working on trying to spec out an extension for PHP which would implement what I want with threading without having to hack zend and the core. I might think that some other C developers would

Re: [PHP] I want to write a Multi-threaded PHP Application

2006-04-27 Thread Gonzalo Monzón
D. Dante Lorenso escribió: Gonzalo Monzón wrote: Use Python, it is the way to go if you're willing to use mt :-) I've already written the multi-threaded server using Java. I want to do this in PHP, however, because the PHP threads can re-use PHP classes I've already written and hence

Re: [PHP] I want to write a Multi-threaded PHP Application

2006-04-27 Thread Stut
D. Dante Lorenso wrote: I've already written the multi-threaded server using Java. I want to do this in PHP, however, because the PHP threads can re-use PHP classes I've already written and hence standardize on a single codebase and language. Many other languages have threads (Java, C#,

Re: [PHP] I want to write a Multi-threaded PHP Application

2006-04-27 Thread Gonzalo Monzón
I forgot to put some final note into my last message. PHP can be good for a lot of things, but not really for other. Wonder when requirements grow long in some ways you could not ever expect in a project like your's: A simple example: need 5 concurrent connections in your hacked

Re: [PHP] I want to write a Multi-threaded PHP Application

2006-04-27 Thread D. Dante Lorenso
Stut wrote: D. Dante Lorenso wrote: IMHO, if your main goal is to allow your threaded app to reuse existing PHP classes then your best bet is to investigate embedding PHP into something written in C or C++. This is a very good point. I have also been looking into the idea pitched a few

Re: [PHP] I want to write a Multi-threaded PHP Application

2006-04-27 Thread Barry
Gonzalo Monzón schrieb: I forgot to put some final note into my last message. PHP can be good for a lot of things, but not really for other. Yeah true (o_O) -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] I want to write a Multi-threaded PHP Application

2006-04-27 Thread D. Dante Lorenso
Gonzalo Monzón wrote: I've been developing desktop applications with PHP-GTK since 2002, far beyond the web script context, and in the more complex projects I did, was a must to implement multi-process and IPC communication due to the lack of threading in PHP, as to deal with some issues like

Re: [PHP] I want to write a Multi-threaded PHP Application

2006-04-27 Thread Gonzalo Monzón
D. Dante Lorenso escribió: Gonzalo Monzón wrote: I've been developing desktop applications with PHP-GTK since 2002, far beyond the web script context, and in the more complex projects I did, was a must to implement multi-process and IPC communication due to the lack of threading in PHP, as

RE: [PHP] I want to write a Multi-threaded PHP Application

2006-04-26 Thread Warren Vail
I did one (well sort of) once. I created a php script which was started by cron every minute. It read a mysql table looking for items to process, and on finding one, would stamp the entry in the table as being processed and it would then proceed with what it needed to do, which sometimes took

RE: [PHP] I want to write a Multi-threaded PHP Application

2006-04-26 Thread Richard Lynch
On Wed, April 26, 2006 6:05 pm, Warren Vail wrote: not likely until at least PHP 8.0. However, my needs for a thread are very simple and might be able to avoid the complexities of shared One thing you could consider... If you had one main script that did a stream_select on multiple URLs and