Create content to serve with other program

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Post Reply
tomolas
Forum Newbie
Posts: 5
Joined: Mon Jan 21, 2008 5:22 am
Contact:

Create content to serve with other program

Post 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
User avatar
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

Post by Christopher »

Do you want a web interface or is this an application?
(#10850)
tomolas
Forum Newbie
Posts: 5
Joined: Mon Jan 21, 2008 5:22 am
Contact:

Re: Create content to serve with other program

Post 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
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: Create content to serve with other program

Post 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().
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
tomolas
Forum Newbie
Posts: 5
Joined: Mon Jan 21, 2008 5:22 am
Contact:

Re: Create content to serve with other program

Post 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
Post Reply