Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

General Discussion

Rifqi Fahmi
Rifqi Fahmi
23,164 Points

How to execute command in server from website ? and get the result back displayed at the web

So i have been wandering this thing for the past few months, but I still blur how it work. Here the case : (Image compressing)

  1. I have a website
  2. User can upload their image
  3. Their image will be stored in the server
  4. The server execute some image compression application command to compress the image when the user click "Compress" button on the website. (This is what i want)
  5. The result from the conversion will put in a folder lets call it "compression_result"
  6. Then the compressed image displayed on the website

so the big question is how to execute command to server from website interface ? is it using PHP ? Node.js ?

Thanks Andrew Chalkley Alena Holligan