We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpIntegration › Running a specified .pde file on a server
Page Index Toggle Pages: 1
Running a specified .pde file on a server (Read 907 times)
Running a specified .pde file on a server
Mar 3rd, 2010, 10:20pm
 
I've looked around the forums and come across topics such as ttp://processing.org/discourse/yabb2/?num=1263561367 and ttp://processing.org/discourse/yabb2/num_1193317878__but_I_need_some_more_guidance_.html

I want to run Processing remotely on a server. When the client connects in, is it possible to run PHP to make Processing run a specified .pde sketch

We can run Processing via command prompt, so is it possible to use system call from PHP to run Processing and make it run a specified .pde sketch

Or I need to take a look at other methods instead
Re: Running a specified .pde file on a server
Reply #1 - Mar 3rd, 2010, 10:41pm
 
Well, as you have seen, Processing is a visual thing made to run on a display. Running it headless (without visual) isn't possible without hacks, like the virtual framebuffer one (simulating a display when there is none).
It depends on what you need to do, but perhaps something like GD for PHP (see Image Processing and Generation) might be an appropriate substitute. I see there is also a Cairo binding, closer of Processing perhaps, but I don't think it is shipped with all PHP distributions.
Page Index Toggle Pages: 1