Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using PHP and QM to send text to server?
#1
As i found out, i can execute PHP code in QM with this extension:
Executing PHP code in QM
Are there any limitations?

Im not so good in programming, but i need to know the following:
  • is it possible to send text via PHP (in QM) from my local computer to a server?
  • Is that complex to set up?
  • Can i use my planned macro (if it works) as .exe too?
  • Is there any other (hopefully a easy) way to send text to a server that a PHP script on the server can handle? Big Grin
  • Net doesnt seem to work in exe files, but i need it as exe because i cant buy 10 or more licenses for my friends.


Thanks for any advice!
#2
PhpExec and other PHP functions work in exe too, but need to install PHP on all computers.
I don't know what PHP code could be used. Maybe better don't use PhpExec etc. Instead install web server with PHP on all computers. Then use IntGetFile or IntPost to execute php files in it... But it is too dirty. Better use other software.

net uses TCP/IP protocol and Winsock functions. It is possible to create similar TCP/IP server and client in QM, but much work.
Client example: TCP/IP
#3
Thanks for your Reply Gintaras!

PHP is not really necessary.
The goal is to send text from multiple computers to another computer.
My first Idea was to send the Text to a Server and put the Text online in the same time as it is written.
But it is ok if the Text is send to another computer, and the user uploads the content manually.


The Client Application should:
have the option to set IP of the Server-App.
be as fast as possible. (sends not every keystroke, but every word).
only capture and send the text if the Application is Word, Notepad or something similliar.

The Server-Application:
Should have the option to allow specified IP's to send Text.
should have a seperate Window for every IP that sends Text.
In this Window the Text is updated (added at the end) everytime the IP sends another word.

Do you still think i should use another programm than qm?
Do you got a suggestion wich software could be used? (Open source or freeware)

Quote:...but much work.

Means very much trial and error for me. :lol:
#4
If you need only 1 server, which is on your computer, then QM can be used.
net works in exe. As client.
QM is needed only as server.
#5
Ok thats good.

Maybe i found a solution.
http://gobby.0x539.de/trac/


Forum Jump:


Users browsing this thread: 2 Guest(s)