PHP-Serial
PHP-Serial copied to clipboard
Unable to open the device (Windows on Xampp)
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.
try "\.\COM"
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);
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?