Official eMule-Board: Phpmule - Official eMule-Board

Jump to content


Page 1 of 1

Phpmule emule written in PHP

#1 User is offline   daikatana 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 1
  • Joined: 04-November 05

Posted 04 November 2005 - 08:40 AM

I have benn searching for a long time but I couldn't find such a project. Is there any project where you can use a p2p-Client in PHP ? :confused:

Is it possible to port eMule in PHP :confused:
That would be greate because at home I haven't a fast Internetconnection and at work are the ports blocked!

I hope there is any client... !!! :unsure:

Thanks
regards
Sigi
0

#2 User is offline   tHeWiZaRdOfDoS 

  • Man, what a bunch of jokers...
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 5630
  • Joined: 28-December 02

Posted 04 November 2005 - 09:19 AM

Implementing eMule in a different language won't change the ports it uses and therefor won't help you with your problem...
0

#3 User is offline   kabouterflop 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 67
  • Joined: 11-April 04

Posted 04 November 2005 - 04:49 PM

tHeWiZaRdOfDoS, on Nov 4 2005, 11:19 AM, said:

Implementing eMule in a different language won't change the ports it uses and therefor won't help you with your problem...
Well, I guess the idea is to run a PHP-based mule as part of an externally hosted website.
0

#4 User is offline   Andu 

  • Morph Team
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 13015
  • Joined: 04-December 02

Posted 04 November 2005 - 07:06 PM

Would that be even possible? I thought php was a rather specialised scripting language.
Three Rings for the Elven-kings under the sky,
Seven for the Dwarf-lords in their halls of stone,
Nine for Mortal Men doomed to die,
One for the Dark Lord on his dark throne
In the Land of Mordor where the Shadows lie.
One Ring to rule them all, One Ring to find them,
One Ring to bring them all and in the darkness bind them
In the Land of Mordor where the Shadows lie.


Dark Lord of the Forum


Morph your Mule

Need a little help with your MorphXT? Click here

0

#5 User is offline   dani_555 

  • Platinum eMule
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2913
  • Joined: 22-March 04

Posted 04 November 2005 - 10:00 PM

Andu, on Nov 4 2005, 08:06 PM, said:

Would that be even possible? I thought php was a rather specialised scripting language.
View Post
Torrentflux is a PHP based BitTorrent client. So, if it works for BT, why not for eD2K too?

This post has been edited by dani_555: 04 November 2005 - 10:01 PM

0

#6 User is offline   CiccioBastardo 

  • Doomsday Executor
  • PipPipPipPipPipPipPip
  • Group: Italian Moderators
  • Posts: 5541
  • Joined: 22-November 03

Posted 05 November 2005 - 01:46 PM

Beacuse BT uses HTTP, while ED2K use it's own (binary) one.
I doubt you can modify Apache (or whatever other webswerver PHP is running on) to accept ED2K connections.
If the port is a problem, try using port 80 for the incoming requests...
I am not liable of anything your boss can do to you, though ;)

This post has been edited by CiccioBastardo: 05 November 2005 - 01:47 PM

The problem is not the client, it's the user
0

#7 User is offline   zapbrannigan 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 9
  • Joined: 30-December 02

Posted 09 November 2005 - 10:17 PM

PHP has full sockets support - see http://uk2.php.net/m...ref.sockets.php. You would not need to use apache - you can run php from the command line. It is possible to make an emule client in php, the question must be: why? It would use a tonne of resources...

Python / perl probably would be better.
0

#8 User is offline   SlugFiller 

  • The one and only master slug
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 6988
  • Joined: 15-September 02

Posted 10 November 2005 - 01:20 PM

Current eMule is better, since it's not interpreted at all. The issue is, eMule in PHP would still be eMule, it won't suddenly work around blocked ports. So the whole concept is pointless.
Why haven't you clicked yet?

SlugFiller rule #1: Unsolicited PMs is the second most efficient method to piss me off.
SlugFiller rule #2: The first most efficient method is unsolicited eMails.
SlugFiller rule #3: If it started in a thread, it should end in the same thread.
SlugFiller rule #4: There is absolutely no reason to perform the same discussion twice in parallel, especially if one side is done via PM.
SlugFiller rule #5: Does it say "Group: Moderators" under my name? No? Then stop telling me about who you want to ban! I really don't care! Go bother a moderator.
SlugFiller rule #6: I can understand English, Hebrew, and a bit of Japanese(standard) and Chinese(mandarin), but if you speak to me in anything but English, do expect to be utterly ignored, at best.
0

#9 User is offline   StarShaper 

  • Splendid Member
  • PipPipPipPip
  • Group: Members
  • Posts: 146
  • Joined: 07-August 03

Posted 10 November 2005 - 04:15 PM

Yes, maybe it's possible to write a PHP-eMule, somehow :) . But there are so many problems you would have to solve and your PHP-eMule would still not work like the "original" eMule. The idea is simply ridiculous.
0

#10 User is offline   gcostanza 

  • Philosopher
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 805
  • Joined: 10-October 04

Posted 10 November 2005 - 05:21 PM

During Google's Summer of Code (SoC) a PHP Compiler (GPL) has been developed for the CLR and Mono in particular. With this PHP becomes one of the many languages for the CLR (or .NET to simplify) and with Mono it runs on *nix, MacOSX and Win32. Who know soon we might see programs written in PHP which are not only related to web pages :)
"Computer Science is no more about computers than astronomy is about telescopes."
-- E. W. Dijkstra
"Computers are useless. They can only give you answers."
-- Pablo Picasso
0

#11 User is offline   SlugFiller 

  • The one and only master slug
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 6988
  • Joined: 15-September 02

Posted 10 November 2005 - 08:23 PM

Actually, it would probably be simpler to go the other way around - write a compiler which compiles C++ into PHP, treating the latter as machine language. It's not that difficult, really, you could probably use G++ as base code, and just alter the machine-code output process.
Then, you'd just need a PHP based run-time and you're set.
Of course, one must wonder what is the point.

One should also wonder as to the point of a PHP->machine compiler, considering that as a language PHP is almost fully compatible with C++, save for direct DOM access which is a feature specific to web-page server applications(since normal executable don't exactly get DOM on a silver platter, especially under *nix).
Why haven't you clicked yet?

SlugFiller rule #1: Unsolicited PMs is the second most efficient method to piss me off.
SlugFiller rule #2: The first most efficient method is unsolicited eMails.
SlugFiller rule #3: If it started in a thread, it should end in the same thread.
SlugFiller rule #4: There is absolutely no reason to perform the same discussion twice in parallel, especially if one side is done via PM.
SlugFiller rule #5: Does it say "Group: Moderators" under my name? No? Then stop telling me about who you want to ban! I really don't care! Go bother a moderator.
SlugFiller rule #6: I can understand English, Hebrew, and a bit of Japanese(standard) and Chinese(mandarin), but if you speak to me in anything but English, do expect to be utterly ignored, at best.
0

#12 User is offline   StarShaper 

  • Splendid Member
  • PipPipPipPip
  • Group: Members
  • Posts: 146
  • Joined: 07-August 03

Posted 10 November 2005 - 10:43 PM

gcostanza, on Nov 10 2005, 06:21 PM, said:

Who know soon we might see programs written in PHP which are not only related to web pages  :)


Unfortunately I couldn't find more information about this project. But it seems to me that this is just another unfinished project which is absolutely useless :-k .

gcostanza, on Nov 10 2005, 06:21 PM, said:

With this PHP becomes one of the many languages for the CLR (or .NET to simplify)..


That's true. And this brings just more unnecessary confusion into the dev zone...
0

#13 User is offline   gcostanza 

  • Philosopher
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 805
  • Joined: 10-October 04

Posted 11 November 2005 - 12:55 AM

The usefulness of PHP can be debated, even more the usefulness of it being compiled, not to mention the end-result runing under .NET (or a java VM for that matter)... :P

I, on the other hand, am happy. The more choices the better. The dev zone is confused because computer science is a science with its method, approach and philosohpy while at the same time many think that owning an IDE is already enough to call yourself a programmer.

BTW that compiler I linked is still unfinished because it's a baby - 2 months old. If it remains unfinished then probably there was no need for it in the first place.
"Computer Science is no more about computers than astronomy is about telescopes."
-- E. W. Dijkstra
"Computers are useless. They can only give you answers."
-- Pablo Picasso
0

#14 User is offline   StarShaper 

  • Splendid Member
  • PipPipPipPip
  • Group: Members
  • Posts: 146
  • Joined: 07-August 03

Posted 11 November 2005 - 01:53 AM

gcostanza, on Nov 11 2005, 01:55 AM, said:

The usefulness of PHP can be debated,  even more the usefulness of it being compiled, not to mention the end-result runing under .NET (or a java VM for that matter)... :P


Glad to hear that!

gcostanza, on Nov 11 2005, 01:55 AM, said:

I, on the other hand, am happy. The more choices the better. The dev zone is confused because computer science is a science with its method, approach and philosohpy while at the same time many think that owning an IDE is already enough to call yourself a programmer.


:lol: , I fully agree. The more options, the more variations the better. Nevertheless, some developments are simply useless apart from the learning issue.

gcostanza, on Nov 11 2005, 01:55 AM, said:

BTW that compiler I linked is still unfinished because it's a baby - 2 months old. If it remains unfinished then probably there was no need for it in the first place.


ACK, let's see what the time brings...

This post has been edited by StarShaper: 11 November 2005 - 01:54 AM

0

#15 User is offline   zapbrannigan 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 9
  • Joined: 30-December 02

Posted 22 November 2005 - 05:22 PM

gcostanza, on Nov 11 2005, 12:55 AM, said:

The usefulness of PHP can be debated,  even more the usefulness of it being compiled, not to mention the end-result runing under .NET (or a java VM for that matter)... :P

I, on the other hand, am happy. The more choices the better. The dev zone is confused because computer science is a science with its method, approach and philosohpy while at the same time many think that owning an IDE is already enough to call yourself a programmer.

BTW that compiler I linked is still unfinished because it's a baby - 2 months old. If it remains unfinished then probably there was no need for it in the first place.
View Post


Just to ensure that this goes completely off topic B) , there is already a compiler for php, although its commercial. I've played with it because I was interested to see its performance qualities. Do a search on google for roadsend and you should find it.
0

  • Member Options

Page 1 of 1

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users