|  | Posted by Andy Hassall on 06/18/98 11:57 
On Wed, 06 Sep 2006 10:12:12 -0700, CptDondo <yan@NsOeSiPnAeMr.com> wrote:
 >I have a PHP app that generates web pages on the fly based on some data
 >it reads from XML files.  The pages are served up via a http server and
 >displayed with a browser.
 >
 >I've been asked to port this to an ANSI terminal-type display,
 >eliminating the web server and browser.
 >
 >Initially I thought about using C to write the app, but XML handling in
 >C is a real PITA, plus I don't get to reuse my PHP code.
 >
 >So, now I want to use PHP to generate those same pages except that I
 >don't want to send headers ever, and I need to loop waiting for
 >characters to arrive from the keypad and display pages based on those
 >chars...
 >
 >This is on an embedded platform, and I really need to be able to use a
 >single PHP binary for both purposes (the displays are interchangeable at
 >the hardware level; it all depends on what the customer pays for.)
 >
 >How do I get php to act as just another scripting language?
 
 The CLI executable version of PHP doesn't output headers:
 
 andyh@server ~ $ php test.php
 look, no headers!
 
 andyh@server ~ $ php -v
 PHP 5.1.5 (cli) (built: Aug 17 2006 21:16:25)
 Copyright (c) 1997-2006 The PHP Group
 Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
 
 --
 Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
 http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
  Navigation: [Reply to this message] |