[phplib] Blatantly off topic-- but fun From: Brian Popp (bpopp <email protected>)
Date: 07/31/01

I apologize up front, but this is way off topic. I've come to respect
everyone's advice here, and this list is one of the best I've found about
providing really useful, helpful feedback. Besides, I am using PHPLib for
the project, so it sort of applies.

I am building a web-based multimedia jukebox using PHP, PHPLib, Flash 5, and
MySql (quite a bag of tools, huh?). The server is Windows 2000, running IIS
5. I'm using 2000, because most of the emulators, mp3 players, and movie
players I want to kick-off are windows based.

This is kind of how I see it working.. a PHP page will query the MySQL
database and send the results to a Flash applet. I am using flash so that I
can make the interface a little flashier and also to capture keystrokes
(joystick). Flash can't execute commands from a web-page, so I will have to
pass the request to a CGI that actually kicks off the corresponding emulator
& rom. And this is where my problem creeps in. When I execute the program,
it runs in the background (presumeably as the web-server). It eats up 99% of
the processor (presumeably because there is no visual output). Does anyone
have any idea how I can kick off a program on Windows 2000 as the currently
logged in user.

I'm thinking I'm going to have to write a TCP server to run on the server as
the current user. It will look for execute requests on a certain port. The
web server will send a request to this homemade server and when one arrives,
the homemade server will kick off the application. Obviously the homemade
server would be a security risk, but my network is behind a router, so I
just won't forward that port.

-- 
Abbestellen mit Mail an:   phplib-unsubscribe <email protected>
Kommandoliste mit Mail an: phplib-help <email protected>