PHP-Serial icon indicating copy to clipboard operation
PHP-Serial copied to clipboard

Unable to open the device (Windows on Xampp)

Open cauli opened this issue 10 years ago • 3 comments

Trying to connect from XAMPP to Arduino on windows I found out that PHP-Serial couldn't open the device.

I solved the problem by following answer #13 at this link ( https://code.google.com/p/php-serial/issues/detail?id=7 ) .

Line 113 on PhpSerial.php was changed to

 $this->_device = "\\\.\com" . $matches[1];

Wondering if this is a Xampp-only issue.

cauli avatar May 19 '14 14:05 cauli

try "\.\COM"

czb182 avatar Jun 24 '14 02:06 czb182

on windows 7 64bit php version 5.4.29 help me next things on 163 line $this->_dHandle = @fopen($this->_device, $mode); i changed $this->_dHandle = @fopen($this->_winDevice, $mode);

ZoranderTheRealOne avatar Jul 18 '14 04:07 ZoranderTheRealOne

Trying to connect from XAMPP to Arduino on windows I found out that PHP-Serial couldn't open the device.

I solved the problem by following answer #13 at this link ( https://code.google.com/p/php-serial/issues/detail?id=7 ) .

Line 113 on PhpSerial.php was changed to

 $this->_device = "\\\.\com" . $matches[1];

Wondering if this is a Xampp-only issue.

whit php7.4(nts) on windows 11, it's the right way to solve this problem.thanks! But, why?

DiclZYY avatar Apr 16 '24 10:04 DiclZYY