Jump to content

Using PHP an unusual way


phporcaffeine

Recommended Posts

PHP can be used to execute system calls, so if your USB device has a command line interface, you can call it using PHP by using the [url=http://uk.php.net/manual/en/function.system.php]system()[/url], [url=http://uk.php.net/manual/en/function.exec.php]exec()[/url] or [url=http://uk.php.net/manual/en/function.shell-exec.php]shell_exec()[/url] commands.

Regards
Huggie
[quote]As far as i know there are are few windows DLLs that allow you to read and write directly to a pc's parallel port, one is called Inpout32.dll whitch can be found at http://www.logix4u.net/ their website provides lots of usefull information on parallel port programming but in order to use that dll i believe inpout32.dll will have to be converted to a PHP extension so it can be used directly from php.

If someone is willing to take the time to program that extension it can open up a many new applications for PHP-GTK such as data acquisition, motion control for robotics , home control and many other electronics related applications.
Back to top

clange



Joined: 24 Jan 2006
Posts: 6


PostPosted: Mon May 15, 2006 8:10 am    Post subject: Reply with quote
There is a module for win32 api:

http://de.php.net/manual/de/ref.w32api.php

With this module you can call every function on a dll.

mfg clange[/quote]

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.