ScriptUO
Official ScriptUO EasyUO Scripts => Scripting Chat => Topic started by: Quagmire on August 05, 2008, 09:28:39 AM
-
hey i am trying use us a send command to a php website like a chart so i would send a string and that string goes into a chart. is there anything i need to do to that web page specifically or do i just create the chart and have it refresh it?
-
Is this from an EasyUO script?
-
yea heres a sample
just the send command from easyuo, just want it to send a string now wondering if i have to like put vars in the php table so it updates
sub phpsend
%1 myweb.
%2 /security/test.php
%3 #charname
set #sendheader Content-type: , #spc ,
send httppost %1 %2 textarea= , %3
return
-
This is the general syntax I use:
send HTTPPost yourserver.org /scripts/testscript.php?data= , %var , &mod= , %var2
My mod command was just a command specifier mostly.
I found that some webservers are slow, so it takes time for them to post. The one here at Hypermart is SLOOOW, I get much better results by posting to my Linux server at home.
But what your problem is I think you need to string all your last arguments together.
-
well yeah i know that just that i mean do i need to do anything special on the vps like set vars and *bleep* or just create the page that it post to
-
Not really, just read the variables that you're passing, and then have your PHP do the rest. After that's it's just a php thing. I generally use python, but the idea is the same. Since it's really open to how you've created your PHP code and your method of data accumulation, at least you'll know the EasyUO side is passing what it can.
Normally, when I'm doing a post from my EasyUO code, I'm just quickly posting and appending onto a file on a server or creating a record in a MySQL database, so the php fires once and completes. Honestly, I haven't gotten all that fancy with it.
-
Honestly, I'd advise against using EasyUO's http commands. EUO has a nasty habit of timing out while using that command and locking up the script.
What I use is a script to store data as a persistent var and a small app that I wrote to scan the registry for changes and update a mysql database accordingly.
-
Honestly, I'd advise against using EasyUO's http commands. EUO has a nasty habit of timing out while using that command and locking up the script.
What I use is a script to store data as a persistent var and a small app that I wrote to scan the registry for changes and update a mysql database accordingly.
I agree completely. You'll find it's faster too. Super easy application written in VB or C# works wonders for that.
-
quaggy i smell a new project for us!
-
Honestly, I'd advise against using EasyUO's http commands. EUO has a nasty habit of timing out while using that command and locking up the script.
What I use is a script to store data as a persistent var and a small app that I wrote to scan the registry for changes and update a mysql database accordingly.
I agree completely. You'll find it's faster too. Super easy application written in VB or C# works wonders for that.
Could you give some pointers on this? I've just started trying to learn c#, and hadn't got that far yet. haha!