We are about to switch to a new forum software. Until then we have removed the registration on this forum.
How can I give variables from Processing to PHP.I found only this useless tutorial (http://www.learningprocessing.com/tutorials/php/)
greetz Flozzel
Answers
Are you using Processing on the server side or on the client side?
You cannot use Processing on the server side, anyway.
The simplest way is to use loadStrings() with URLs pointing to PHP code.
I would be very happy about an example. greetz Flozzel
Why couldn't one use Processing on the server side, in theory?
Server side usually means command-line, an command-line usually means no possibility of an opengl window.
An example anybody? I´m a little bit confused with the loadStrings() function. I need a way to send values from Processing to php and later the other way back. greetz
Example:
Processing file or js:
PHP File on server:
Or, just play with Ajax requests from your javascript:
http://en.wikipedia.org/wiki/Ajax_(programming)
Thanks for the example, diyoyo. For the record, the value s might need to be URL-encoded (special chars).
In the past, I even shown how to do a file upload (save image to server). That's what the PostToWeb library does.
Thanks goes to diyoyo ^^ This is exactly what I searched for. greetz Flozzel