/    Sign up×
Community /Pin to ProfileBookmark

Can php control local peripheral e.g. cash drawer

Can php send a signal via a COM: port to open a cash drawer?

It could potentially be a www php script that calls a localhost php script that if it has to call another program that actually opens the drawer.

If php can’t do it, what would be the best language that uses a www database and ideally was hosted online (but cold be hosted in the local machine).

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@stephan_gerlachAug 16.2007 — PHP can't do things like that. But you could maybe do something with a client side script like javascript or vb script. Check with the company that produced the cash drawer. they might be able to give you some support. They might already have some scripts available for you.
Copy linkTweet thisAlerts:
@MrCoderAug 16.2007 — 
Serproxy is a multi-threaded proxy program for redirecting network socket connections to/from serial links, in cases where the remote end of the serial link doesn't have a TCP/IP stack (eg an embedded or microcontroller system). The proxy allows other hosts on the network to communicate with the system on the remote end of the serial link. The Linux version requires a recent version of libpthread to compile/run.
[/quote]

Check this out


Edit..

I also belive in PHP5 you can get direct access using DIO, but I have other information about DIO since I have never needed to use it.
Copy linkTweet thisAlerts:
@ellisglAug 16.2007 — fopen('com1') on a windows box. I've been doing that for years =) Only problem is that you only get half duplex operation (but to open up a cash drawer - you don't need full duplex operation). In linux - fopen('tty1') (is that correct?) you should be able to get full duplex..
×

Success!

Help @Yelgnidroc spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.22,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...