since the project is a kiosk, you'll know what OS it's running on. if it's windows, you can just create a batch file that reads something like:
c:\PHP\php.exe c:\PHP\test.php > C:\test.txt
this file in my setup is called test.bat, it's one line. it outputs test.php to test.txt.
test.php contains:
Hello World
pretty impressive, huh. it doesn't even use php, it just outputs the text (whaddaya want, i'm going fast).
then, in director, you can just write in the message window: open "C:\test.bat"
and whammo, php.exe executes test.php and outputs:
Content-type: text/html X-Powered-By: PHP/4.3.2
Hello World
to test.txt. Pretty tricky, eh? (btw, if it's not obvious, the locations of the files are not really important - they could be in any directories) I would really recommend installing apache and php and play around - it takes all of a day to get it up and running. you can talk to your webserver locally by invoking the god of http://localhost and do this cleanly. please don't do it the way i described above outputting to a test file. it will just plain suck. do it right. on the install from cd scenario, that's a bit harder but i think it can be done with a little testing.
evan
Troy Rollins wrote:
On Tuesday, June 17, 2003, at 03:38 PM, Rodrigo Peres wrote:
This project will be running from Kiosk. It will among other things check
prices. The client use the barcode in package, and the system go to the
database and get the price, description and present on screen.
I've never heard about PHP executable where I can find it?? Or Perl
executable?? And how can I send it with instalation CD?? And more important
deal with webserver is ok, but how can I talk to the .exe to grab the
retieved information from database?
I'm not sure I have an experienced answer to supply if you don't want to use PHP as CGI. In theory, it could be distributed independently as described, but I haven't done it that way.
Used as CGI the process is very clean and straightforward, with Director doing all the thinking, and PHP acting as a "phone line" to the DB.
-- Troy RPSystems, Ltd. http://www.rpsystems.net
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
--
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
*m u t a n t m e d i a* > /solutions for success // // / *Evan Adelman* | 917.916.7378 | 598 Broadway NY NY 10012 [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> | www.mutantmedia.com <http://www.mutantmedia.com>
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
