Re: [PHP] Till Drawers

2006-02-03 Thread Kevin Waterson
This one time, at band camp, Oli Howson <[EMAIL PROTECTED]> wrote:

> I'm interested in the possibility of connecting a computer running A 
> PHP server to a till drawer and have the server able to open the 
> drawer. Anyone know how this would work?
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

I simple wrote a small C program that basically sent a bell, 0x07
and it opened my cash drawer. In php I just did system('bell'); and
it worked fine.

Kevin
 
-- 
"Democracy is two wolves and a lamb voting on what to have for lunch. 
Liberty is a well-armed lamb contesting the vote."

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Till Drawers

2006-02-03 Thread Richard Lynch
On Fri, February 3, 2006 5:25 am, Oli Howson wrote:
> I'm interested in the possibility of connecting a computer running A
> PHP server to a till drawer and have the server able to open the
> drawer. Anyone know how this would work?

I think there's a PHP extension to poke codes out the COM ports of a
Windows PC, which would probably then have a standard connector and
API for opening most cash registers...

You're on your own finding the right extension, and DEFINITELY on your
own finding the API for your model of cach register.

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Till Drawers

2006-02-03 Thread Angelo Zanetti


Albert wrote:

Oli Howson wrote:

I'm interested in the possibility of connecting a computer running A 
PHP server to a till drawer and have the server able to open the 
drawer. Anyone know how this would work?



That all depends on how your till drawer opens.

The easiest would be to write a command line utility in C which opens your
cash drawer. When you need to open the drawer you run the application from
the PHP script using exec().

Albert




yeah I think you would send through a serial command to the drawer, 
AFAIK you can get the commands from the manual of the till drawer.


You also get till drawers that kick open when you print, that is if you 
want the till to open each time you print...


Let us know if you come right and what you did to do it succsssfully.

Angelo

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Till Drawers

2006-02-03 Thread Albert
Oli Howson wrote:
> I'm interested in the possibility of connecting a computer running A 
> PHP server to a till drawer and have the server able to open the 
> drawer. Anyone know how this would work?

That all depends on how your till drawer opens.

The easiest would be to write a command line utility in C which opens your
cash drawer. When you need to open the drawer you run the application from
the PHP script using exec().

Albert

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.15.0/249 - Release Date: 2006/02/02
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php