Jump to content
UBot Underground

PHP plugin first steps


Recommended Posts

So my friend asked me yesterday is it possible to include php in ubot. The anwer was everything is possible!

 

So what do you guy's think would this be a nice asset?

 

http://i.imgur.com/BHosI4p.png?1

  • Like 1
Link to post
Share on other sites
  • 2 months later...

I would also like to see this in ubot.

However this would be a huge job to implement in to ubot,and it would not come cheap.

The best would be to get the ubot devs to implement this to ubot so we do not need to pay a huge amount of cash to get this working.

 

 

PS:Looked in to get this done myself but after a small amount of research its not even worth it.

You can get a bit of php running in ubot but there is to much work involved and to many function that would not work.

So paying a huge amount of cash to get some functions of php working is not so intressting or is it?

 

Do you think it is worth it and how much would you like to pay to get this plugin?

And what functions of php would you like the most?

Link to post
Share on other sites

Its not that big of a job. The uBot devs could just implement the mongoose server inside ubot and attach a PHP 5.4 install. If I was at all good with C# I'd get this done with a plugin. Unfortunately I am awful with C#. 

Link to post
Share on other sites

Ok I fully admit im not totally versed in this but couldn't you use something like this:

 

http://mongoose.googlecode.com/git-history/a69a2da39dcca63ad1a77553d3bc3a05f42e0e66/bindings/csharp/example.cs

 

Basically the idea I would think is a plugin integrating this tiny server with a "Start Server" and "Stop Server" command. The "Start Server" command would have a file selector where you select what folder the PHP files are in and then a function that you place inside the load html panel that contains any PHP code you want. 

 

The way Mongoose server works right now is you just need to tell it where the PHP folder is and where the localhost is. If you made the localhost whatever the load html panel is and used the file selector to select the PHP installation I figured it'd be doable. So users like me who want to take advantage of PHP Curl run from the users machine could just include a PHP folder with our bots and that'd be that. Once again this is just a basic idea of how I think it could work with a plugin.

Link to post
Share on other sites

Yes it should be possible to get php to work on local with mongoose,but the performance would not be good and not worth it.

The combination of mongoose+php+ubot api= poor performance.

 

I would really want to know what Eddie has to say about this matter,if anyone knows if ubot can handle moongose and php then it is him.

As far as just a plugin i really doubt that anyone will make anything that is going to work out good enough for us to use in bots and if someone finds a way then i think it will be a expensive plugin :(.

Link to post
Share on other sites

Yes it should be possible to get php to work on local with mongoose.

Your both wrong really, you don't need a server to run php code. I can run now php curl and all other php plugins in the code. That being said the ubot community is just not profitable to make high grade plugins for.

Link to post
Share on other sites

You are talking about running php in CLI mode?

Did not think about that,but still not going to see a plugin dev make that anytime soon for cheap.

I still think php will only be added to ubot if Eddie does it......

Link to post
Share on other sites

Your both wrong really, you don't need a server to run php code. I can run now php curl and all other php plugins in the code. That being said the ubot community is just not profitable to make high grade plugins for.

 

Well I would pay a premium price for it as I assume some others would as well.

Link to post
Share on other sites
  • 4 weeks later...

As far as I'm aware, all you have to do is get any copy of apache that has php.

 

Find php.exe and save it somewhere.

 

Delete everything else if you don't want it.

 

Create an  environmental  variable.

http://www.nextofwindows.com/how-to-addedit-environment-variables-in-windows-7/

 

From there you can use shell commands. 

http://php.net/manual/en/install.windows.commandline.php

 

 

Not exactly the cleanest way to do it, but if you want to experiment with integration that's where I'd start. 

 

*EDIT* Follow steps on that first link except set the file path to php.exe

Link to post
Share on other sites
  • 9 months later...

As far as I'm aware, all you have to do is get any copy of apache that has php.

 

Find php.exe and save it somewhere.

 

Delete everything else if you don't want it.

 

Create an  environmental  variable.http://www.nextofwindows.com/how-to-addedit-environment-variables-in-windows-7/

 

From there you can use shell commands. http://php.net/manual/en/install.windows.commandline.php

 

 

Not exactly the cleanest way to do it, but if you want to experiment with integration that's where I'd start. 

 

*EDIT* Follow steps on that first link except set the file path to php.exe

So technically it is possible to run PHP only including the php.exe? What about apache server?

That would be great, not requiring clients to set up anything to be able to use the program.

If someone has a solution for this I will be happy to pay premium price.

Link to post
Share on other sites

What about this it looks like it could be integrated?

 

http://www.php-compiler.net/

 

 

Phalanger – the PHP compiler for .NET

Welcome to Phalanger – full-featured PHP runtime & compiler for .NET/Mono frameworks. Phalanger is modern open-source implementation of PHP, compatible with the vast array of existing PHP code. In addition Phalanger gives PHP-application developers lot of new possibilities; from improving performance and using modern environments, to taking advantage of seamless unique .NET integration.

Link to post
Share on other sites
  • 6 months later...

So my friend asked me yesterday is it possible to include php in ubot. The anwer was everything is possible!

 

So what do you guy's think would this be a nice asset?

 

http://i.imgur.com/BHosI4p.png?1

I wonder if you are selling this PHP plugin for the Ubot Studio or any knows another!  

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...