roScripts forum

Wordpress Script Generator
Easily write your own wordpress plugins!
www.wpsecrets.com

Learn Simple PHP
Learn PHP with these simple videos!
www.simplephp.com

PLR Poster
Post hundreds of articles to your wordpress blog(s) at a time!
www.softwarefactoryinc.com/blog-software


Go Back   roScripts forum > General > Website showcase

Website showcase If there's something that you would like to promote this is the place.

Reply
 
Thread Tools Display Modes
Old 08-21-2007, 12:58 AM   #1 (permalink)
ASDen
Junior Member
 
Join Date: Aug 2007
Posts: 2
Rep Power: 0 ASDen is on a distinguished road
Default Adding Multi-Threading to PHP (Purely New Idea Try it)

I had an idea of Adding Multi-threading functionality to php ( i called it PHPThreader ) in little words the idea was :-
1. make a Js class which Creates Ajax Objects in order to call PHP Scripts(Threads)
2. then make a PHP class Implements and Interfaces the Js Class
3. Implement the PHP Class with your script easily and LAUNCH threads very easy Just Like:-
$obj=new Thread($filename,$Inputs); in other words:-
$e=new Thread("Download.php","url="http://www.phpfreaks.com");

you will find the Classes & Documentation & Examples at :-
http://sourceforge.net/project/showfile ... _id=532251
where

AjT.php : the Js Class which is implemented by the PHP class

Threader.php : PHP Class, which is a front to deal with the Js Class

Bag.php : is also dealing with Js Class to know the status of Thread( a finishing Alarm )

Please tell me what do u think of the Idea & Implementation .Thanks in advance
ASDen is offline   Reply With Quote
Sponsored Ads   #1.5
Sponsored posting
 
 
Join Date: The beginning
Posts: lots
Sponsored by...

WM Media - Sell Your Website at above market prices!
Adbot is online  
Old 09-03-2007, 11:37 PM   #2 (permalink)
eBoxNet
Senior Member
 
Join Date: Jun 2007
Location: Greece
Posts: 240
Rep Power: 2 eBoxNet is on a distinguished road
Default

Good Work
eBoxNet is offline   Reply With Quote
Old 08-01-2008, 10:16 PM   #3 (permalink)
ASDen
Junior Member
 
Join Date: Aug 2007
Posts: 2
Rep Power: 0 ASDen is on a distinguished road
Arrow Re: Adding Multi-Threading to PHP (Purely New Idea Try it)

Hello everybody
it's been around 9 months since the last update to class and finally i got time to it
PHPThreader 1.6 Released
you can get it from sf here : h t t p://sourceforge.net/project/showfiles.php?group_id=203377&package_id=242365&re lease_id=617030
or from phpclasses here : h t t p://www.phpclasses.org/browse/package/4082.html
---
The new version has the following features :-
1)Full Online Documentation of class here : h t t p://ajphpth.sourceforge.net [An offline version is provided in sf]
2)new Communication Class : Shared Memory (shmop required )
3)new Thread Calling Class : CliThread (using shell calls)
4)new Abstract Mutex Class which can be used from user defined Communication Clases .
5)new automatic System of thread watching
6) a simple loader to overcome path issues
7)new methods like Join()
---
hope to hear from you about it
Thanks
ASDen is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump



All times are GMT. The time now is 04:03 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.