PHP talking to hardware at client PC?
Bill Campbell
linux-sxs
Sat Sep 9 11:05:54 PDT 2006
On Sat, Sep 09, 2006, David Bandel wrote:
>On 9/9/06, Man-wai CHANG <mwchang at i-cable.com> wrote:
>>
>> How could I make a PHP program running inside Firefox, to make a call to
>> a cash register's drawer attached to the Firefox PC? You can't do that
>> without using IE and ActiveX, can you?
>>
>
>You probably also believe M$ invented the Internet.
>
>While I would have used Perl vice PHP, you embed Javascript in the
>code sent to Firefox.
>
>Perl/PHP: run on the server and perform tasks on the server (like
>accessing the PostgreSQL server)
>Javascript: runs on the client and performs tasks on the client (like
>opening the drawer)
I usually deal with problems like this where a web server is
running with reduced permissions by setting up an xmlrpc server
on the host that only listens on localhost, and performs a very
limited set of functions.
I wouldn't be using a PC running Windows for my POS application,
but would be running a Linux box so this is easy.
IMHO, the python xmlrpc interface is far cleaner than perl's.
Bill
--
INTERNET: bill at Celestial.COM Bill Campbell; Celestial Software, LLC
URL: http://www.celestial.com/ PO Box 820; 6641 E. Mercer Way
FAX: (206) 232-9186 Mercer Island, WA 98040-0820; (206) 236-1676
``A Democracy cannot exist as a permanent form of government. It can only
exist until the voters discover they can vote themselves largesse out of
the public treasury. From the moment on the majority always votes for the
candidate promising the most benefits from the public treasury with the
result that Democracy always collapses over a loose fiscal policy, always
to be followed by a Dictatorship.''
Professor Alexander Fraser Tytler. 1801
More information about the Linux-users
mailing list