Jump to content

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]
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.