Delphi Php Serial

RS232 Communication Program - RS232 terminal program with built-in facilities for communication with Superior Electric motion controls. This program is the Delphi. Delphi serial port free download. Serial port to network proxy This project provides a proxy that allows telnet/tcp connections to be made to serial ports on a mac.

Active9 years, 2 months ago

I'm trying to port the following small QBASIC program (which works 100%) to PHP:

Currently I'm calling it in its compiled (exe) form from PHP (on WAMP5) but I'd like to get rid of the QBASIC and call it directly from PHP.

I wrote this PHP function but it just hangs at the fgets() line:

Delphi

}

I'm using this PHP line to call the above function:

Any help will be creatly appreciated! I've basically given up trying. If QBASIC can do it perfectly then we must be able to make this work with PHP!

dmp
10.1k6 gold badges33 silver badges46 bronze badges
CJ_CJ_

3 Answers

You might want to look into PHP Serial by Rémy Sanchez. There's an article about it here:

Also have a look at this example provided by jared at dctkc dot com on the PHP site:

MikeMike

Delphi Php Serialize

18.3k2 gold badges33 silver badges62 bronze badges

Pretty sure PHP has no access to hardware ports by default. It has access to network resources, file resources, but without some kind of transport between the hardware and what you're trying to read, can't see this working.

There may however be a platform specific extension you can load which will enable this - just investigating.

e: Yep, there is - check this extension, might be what you're after. Without something like this, it's just not going to work.

'This extension allows the direct access the parallel and serial(rs232) port in reading and writing by the DLL inpout32.dll under WIN9x/NT/2000/XP for any assembly. An example of concret application: Complete house automation with web interface and php, connection hardware of any nature with the ports like assemblies simple or to complicate. One idea simple but quite practical... Extension and source was compiled with Delphi 6 for PHP5.0 to 5.1.2, sources and example included.'

dmp

Delphi Php Example

dmp
10.1k6 gold badges33 silver badges46 bronze badges

If you're on Linux or other UNX-like system (e.g. Mac OS X), try fopen('/dev/ttyS0') - in UNX, everything is a file, even serial ports. See this for a few tips for finding out which port maps to which 'file'.

PiskvorPiskvor
73.9k41 gold badges159 silver badges210 bronze badges

Not the answer you're looking for? Browse other questions tagged phphardware-interfaceqbasic or ask your own question.

Active10 months ago

We currently use Rad Studio 2007 and are expecting to upgrade to Delphi XE soon!

Does anybody know how we can see what the serial number was used when installing Rad Studio 2007?

Regards, Pieter

dsolimano
7,6473 gold badges41 silver badges57 bronze badges

Delphi For Php 2.0 Serial Number

Pieter van WykPieter van Wyk
1,3488 gold badges35 silver badges62 bronze badges

2 Answers

'LicenseManager.exe' in the 'bin' folder of the 'Rad Studio' installation should show it.

Sertac AkyuzSertac Akyuz
49.4k3 gold badges79 silver badges137 bronze badges

Also, you can see all your registered products with serial numbers on EDN My registered products page (after logging in).

Ondrej KelleOndrej Kelle
35.3k2 gold badges54 silver badges117 bronze badges

Not the answer you're looking for? Browse other questions tagged delphilicense-key or ask your own question.