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
Create content to serve with other program
Moderator: General Moderators
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Re: Create content to serve with other program
Do you want a web interface or is this an application?
(#10850)
Re: Create content to serve with other program
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
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
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().
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Re: Create content to serve with other program
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
Thank you