Click to See Complete Forum and Search --> : Working on executing Quake3 Dedicated Server from web page... Need PHP help!


dstaley
02-10-2003, 10:07 PM
OK, I have had some luck with PHP. I have created a button on my Apache server page, it kicks off the PHP script, and I get the "server started" message fine, and some permutations of what I've tried give the PHP errors I've heard about.

However, I can't seem to get Quake initiated. Up until now, I've been able to log in as root or my other account and just type "ffa" to start a free-for-all (I've got the string in an alias in /etc/bashrc). I've tried copying my alias value into a script file, naming it "ffa.sh" and saving the contents of my alias into this file. This results in a file with these contents:

quake3 +set dedicated 1 +set com_hunkmegs 32 +exec deathmatch.config

I can execute this script OK from a terminal window, but when I call it from PHP it doesn't work. Any idea why?

sivel
02-11-2003, 11:51 AM
just out fo curiosity, ehat flavor of linux are you running?


thanks,
sivel

dstaley
02-11-2003, 02:37 PM
I'm working with Red Hat 8.0, and I used the "Install Everything" option.

sivel
02-11-2003, 03:16 PM
have you had any php probs?

dstaley
02-11-2003, 03:41 PM
I just started learning PHP yesterday. Sorry, I'm a real newbie.

sivel
02-11-2003, 05:48 PM
i mean as far as opening .php pages and viewing?
all i see is the "code"

thanks,
sivel

dstaley
02-11-2003, 07:27 PM
I don't think so. I'm able to do a few of the basic commands such as print and so forth, and no hint of trouble executing them so far. The expected result shows up on the browser OK.

dstaley
02-13-2003, 07:58 PM
In putting forms together I have discovered that I cannot successfully pass form variables on to my PHP script. I think I may have a PHP setup problem.

Any ideas? Might these issues be related?

KilerCris
02-13-2003, 09:54 PM
Check your other thread.