28, May 2012

Shell scripting and PHP - webmaster forum

 
Webdigity webmaster forums
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  PhP
Topic: Shell scripting and PHP
« previous next »
Pages: [1] Print
Instabuck - The easy way to sell digital products online

Author Topic: Shell scripting and PHP  (Read 1017 times)
Just another rainy day
*
Posts: 1
10 credits
Members referred : 0


« on: Apr 22, 2007, 07:50:58 pm »

Hi Everyone,

I'm pretty new to PHP and I'm not sure how to do something that I need to implement. I'm designing a simple web site as an interface to an already existing backend. The idea is that people write their own AI to compete against other people in simulated games of 8 ball pool. Originally competitors compile the code on their machine and make a call to the server to execute a game through their terminal. My job is to allow this to be done through a web interface. Originally I tried setting it up so that people would upload their code to the server and then it would recompile and execute..but apparently this isn't good because we don't know how many files the users will have and a few other reasons. so my question is: is it possible to to get php to somehow execute a shell script on the client's machine? I know php is run on the server-side of things, is there any way that this can be done? So basically it will be the same as originally except the parameters will be entered into the website instead of a terminal...

Thanks in advance for any help.
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5799
46391 credits
Members referred : 3



« Reply #1 on: Apr 22, 2007, 08:53:59 pm »

Php can execute shell commands, but you can't trigger a shell execution in the client from the server.

I think you need another solution for this Smiley

Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=6431
Tags : php shell scripting frontend Bookmark this thread : Digg Del.icio.us Dzone more....

Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP
Topic: Shell scripting and PHP
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 08:35:14 pm





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!






Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2012 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.