Kurrel Posted November 12, 2007 Share Posted November 12, 2007 Hi everyone, Is there any way to get a windows extension located in the php/ext directory of my php to run off the linux side I'm trying to migrate to? Quote Link to comment https://forums.phpfreaks.com/topic/76978-extensions-from-windows-to-linux-php/ Share on other sites More sharing options...
Kurrel Posted November 12, 2007 Author Share Posted November 12, 2007 Further information : The file in question is 'extension=php_ser.dll'. Are .dll files absolutely unique to windows, or is there a way to implement it in Linux? Quote Link to comment https://forums.phpfreaks.com/topic/76978-extensions-from-windows-to-linux-php/#findComment-389774 Share on other sites More sharing options...
aschk Posted November 12, 2007 Share Posted November 12, 2007 php_ser.so is what you're after in Linux. Make sure that extension is available though of course Quote Link to comment https://forums.phpfreaks.com/topic/76978-extensions-from-windows-to-linux-php/#findComment-389776 Share on other sites More sharing options...
Kurrel Posted November 12, 2007 Author Share Posted November 12, 2007 Will simply renaming it work? What would the command then be to use it in the php.ini? 'extension=php_ser.so'? hardly seems likely, or is it just rare? Quote Link to comment https://forums.phpfreaks.com/topic/76978-extensions-from-windows-to-linux-php/#findComment-389784 Share on other sites More sharing options...
MadTechie Posted November 12, 2007 Share Posted November 12, 2007 PHP serial extension AKA php_ser.dll is not supported on Linux.. your need to find another solution Quote Link to comment https://forums.phpfreaks.com/topic/76978-extensions-from-windows-to-linux-php/#findComment-389789 Share on other sites More sharing options...
Kurrel Posted November 12, 2007 Author Share Posted November 12, 2007 Blast! I don't suppose you know any alternatives that can get details from a serial port, that would then work on Linux? Quote Link to comment https://forums.phpfreaks.com/topic/76978-extensions-from-windows-to-linux-php/#findComment-389792 Share on other sites More sharing options...
MadTechie Posted November 12, 2007 Share Posted November 12, 2007 On *nix try stty http://unixhelp.ed.ac.uk/CGI/man-cgi?stty Heres a class that uses it. [attachment deleted by admin] Quote Link to comment https://forums.phpfreaks.com/topic/76978-extensions-from-windows-to-linux-php/#findComment-389831 Share on other sites More sharing options...
Kurrel Posted November 12, 2007 Author Share Posted November 12, 2007 Oddly enough, I was just looking at that example you describe!! It's not quite working for me, but that's the way of things. I'll figure it out! What I'm getting at the moment is "Warning: Specified serial port is not valid in /var/www/basefunctions/php_serial.class.php on line 111" Is this trying to check the server machine, or will it be my local? From Linux, what is the reference to the third Com port? ttsy2? Quote Link to comment https://forums.phpfreaks.com/topic/76978-extensions-from-windows-to-linux-php/#findComment-389840 Share on other sites More sharing options...
MadTechie Posted November 12, 2007 Share Posted November 12, 2007 will always be the host computer.. i'm not sure what the port referance will be (not something i have really used) Quote Link to comment https://forums.phpfreaks.com/topic/76978-extensions-from-windows-to-linux-php/#findComment-389859 Share on other sites More sharing options...
Kurrel Posted November 12, 2007 Author Share Posted November 12, 2007 Okay, I've got that all installed, but I get the following : Warning: Specified serial port is not valid in /var/www/basefunctions/php_serial.class.php on line 117 whenever I try to run it... I suspect there's an error on the port reference, because I can change it to com1 and run it on the localhost, with it discovering the device... Any idea what it might be if not '/dev/ttyS0'? Quote Link to comment https://forums.phpfreaks.com/topic/76978-extensions-from-windows-to-linux-php/#findComment-389861 Share on other sites More sharing options...
Kurrel Posted November 12, 2007 Author Share Posted November 12, 2007 Okay... I've discovered that there's permission denied on the port, from the linux to windows machine. Does anyone know if there's a way to unlock that via the code, so that the local machine will allow the server code to access it's Com port? Quote Link to comment https://forums.phpfreaks.com/topic/76978-extensions-from-windows-to-linux-php/#findComment-389883 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.