PHPsend
PHPsend
Execute console commands using PHP scripts on website!
This plugin provides simple API and lightweight plugin to allow you command your server from your webpage!
To all updating people. You will have to update your scripts plugins, the main thing is that now functions are prefixed with PHPS instead of PHP (for example old PHPconnect is now PHPSconnect).
PHPsend is now PHPSend**
NEW VERSION
- Logging level (No more console spam!), new logging system
- Hash algorithm is now SHA1
- Player associated commands
- New command: phpsend reload to let you reload config and whitelist without server restart
- IP Whitelist for both php script and plugin
- Post argument style
- Protocol names are now with PHPS instead of PHP (like PHPconnect is now PHPSconnect)
- New plugin hook: onWebCommandAsPlayer
- Cleaned up code
- Minor bugs fixed, more exceptions handled.
- Add few API functions to make your life even simplier.
Pages are updated now. Just wait for approval.
Features:
- Execute commands from web
- Using SHA1 password to authenticate
- Simple API with few fuctions!
- Configurable port (default: 11223)
- EXTREME small
- Support for /reload!!!
Plugin API Tutorial - Making simple online player website
Dev Builds
Development builds of this project can be acquired at the provided continuous integration server. These builds have not been approved by the BukkitDev staff. Use them at your own risk.
Hey, the plugin has started to make my server crash. it sometimes halts on the "php-command" and just stops. Everything just stops.
@bigdavisc
Checked yours out. You had an error every time you tried to write to the socket. I tried it, works fine for me. If you use shared hosting, do they allow writing to sockets? Because that looks like the issue.
@PaulBGD
Thank You. I would really like this for my server
@bigdavisc
Eeh. For one, if anyone wants to contact me try a message, ticket, or forums. Comments don't quite get to me as fast.
Second off.. I'll check this out. I'll also check why my dev server is down.
Warning: socket_connect() [function.socket-connect]: unable to connect [110]: Connection timed out in /home/arialcra/public_html/mc/PHPSend.php on line 48
Warning: socket_write() [function.socket-write]: unable to write to socket [32]: Broken pipe in /home/arialcra/public_html/mc/PHPSend.php on line 53
Warning: socket_read() [function.socket-read]: unable to read from socket [107]: Transport endpoint is not connected in /home/arialcra/public_html/mc/PHPSend.php on line 21
Warning: socket_write() [function.socket-write]: unable to write to socket [32]: Broken pipe in /home/arialcra/public_html/mc/PHPSend.php on line 70
Warning: socket_write() [function.socket-write]: unable to write to socket [32]: Broken pipe in /home/arialcra/public_html/mc/PHPSend.php on line 71
Warning: socket_read() [function.socket-read]: unable to read from socket [107]: Transport endpoint is not connected in /home/arialcra/public_html/mc/PHPSend.php on line 21
Warning: socket_write() [function.socket-write]: unable to write to socket [32]: Broken pipe in /home/arialcra/public_html/mc/PHPSend.php on line 92
Warning: socket_write() [function.socket-write]: unable to write to socket [32]: Broken pipe in /home/arialcra/public_html/mc/PHPSend.php on line 93
Warning: socket_read() [function.socket-read]: unable to read from socket [107]: Transport endpoint is not connected in /home/arialcra/public_html/mc/PHPSend.php on line 21
Please Help!!
@SolidGeek
1.6.2 changed pretty much nothing server side. It should be good.
And as for the Jenkins.. brb, yelling at my host :p
@PaulBGD
Thanks! Well it says on bukkit that it is only updated for 1.6.1? And your Jenkins page is down, so I can't download any dev builds? Is the 1.6.1 version also compatible with 1.6.2? Thanks again :)!
@SolidGeek
I'll look into it. And it is updated for 1.6.2..
@XeonG8
I'm getting the same error as you XeonG8.
KittyPL and Ultimate_n00b, please update this plugin for 1.6.2, and fix this bug? My server depends on this plugin, I have used it just since it was released in 2012 it is a great plugin! Would you please consider update it? Thanks :)
Best regards, SolidGeek
@XeonG8
You would have to ask kittyPL, I' not so sure myself xD
Is it ever explained better later?
for 20gb's in the server.log before it was noticed... caused by something on my own server, but the error log spamming and being unable to stop phpsend or restart it without having to restart the entire server is bad.
@neoteknic
I forgot to mention, we actually do run it on a different thread.
Next version is going to have a new API for the Java side. After that, a new API for the PHP side. Sorry I haven't release very many updates, been a bit busy.
@neoteknic
You could make a pull request on github if you have improvements.
My mistake, it was a redirect from the http: ... to the http://www. version of the site who don't redirect the post date, I devellop a simple plugin to do that, because your plugin is too big (I dont need another server to wait for request). If your bukkit - > POST query is slow, it's because you have to put the java post query in a thread. My plugin was slow and freezed the server for 10sec, but with a thread it's very fast and without any lag.
@neoteknic
We need a bit more info than that. Does other stuff work? Is it setup right? Errors?
Critical bug :
The command /website dont post anything exemple : /website name=value no name Post var is posted.
@PaulBGD
ye, a bit :) I try to check at least once a few days :)
@kittyPL
lol, you still checking up on things?