Page 1 of 1

Create content to serve with other program

Posted: Mon Jan 21, 2008 5:40 am
by tomolas
Hi everyone!
problem: Imagine I have and application taking a text file as an input (it will be a description of an object i want to render) and producing a picture(render) and some other file(lets say .txt) as output.
(User on page will create the input file by making few click selections - like a want to see a bottle from this point and it will be this big and this transparent)
How can I invoke the program to produce results from my code ?

I know this is not a linux special thing, but I will do it using linux, so I suposed there will be something linux specific.

Thank you

Re: Create content to serve with other program

Posted: Mon Jan 21, 2008 1:04 pm
by Christopher
Do you want a web interface or is this an application?

Re: Create content to serve with other program

Posted: Mon Jan 21, 2008 1:15 pm
by tomolas
yes.. a web interface - exactly. I want to tell the program what to produce from my web page.. and then serve the result back on the page.
The picture producing program allready exists. I just want to enable it to be used on internet.

Thanks

Re: Create content to serve with other program

Posted: Thu Jan 31, 2008 9:50 am
by pickle
If you can call it from the command line (as it's Linux I can't imagine it would't be), look into shell_exec().

Re: Create content to serve with other program

Posted: Thu Jan 31, 2008 10:53 am
by tomolas
Thank you! I think this is exactly what I was looking for. It will need a deeper look I suppose, but first impression is perfect.
:)
Thank you