2, December 2008

Shell scripting and PHP - webmaster forum

 
Webdigity webmaster forums
This forum shares its ad revenue with its members!
[ 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

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


« on: Apr 22, 2007, 08: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: 8266
42583 credits
Members referred : 3



« Reply #1 on: Apr 22, 2007, 09: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 Visit through proxy or twitter Visit through proxy

Last blog : Free Unlimited Bandwith and disk space to good to be true?
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....

Topic sponsors:
Get a permanent link here for $1.99!


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?
Dec 02, 2008, 08:50:08 AM





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!


Forum Statistics
Total Posts: 37.937
Total Topics: 7.679
Total Members: 4.444
Tutorials : 56
Resources : 143
Designs : 220
Latest Member: Naviator

28 Guests, 5 Users online :

12 users online today:



Readers

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