I can't use dio_extension php
<p>I've downloaded dio extension->php_dio.dll (version 5.2.6.6) and put it in extension dir php then put extension=php_dio.dll in php.ini then restart the apache.</p>

<p>in phpinfo() shows: <a href="http://i.stack.imgur.com/wZZk7.png" rel="nofollow">see here</a></p>

<p>I read in some forum that it's old version of dio extension.</p>

<p>I've tried to run <a href="http://www.cyberspice.org.uk/blog/2010/02/02/php-dio-extension-looking-for-beta-testers/" rel="nofollow">this script</a>:</p>

<pre><code>&lt;?php 
    // Create a stream context that configures the serial port
    // And enables canonical input.
    $c = stream_context_create(array('dio' =&gt; 
        array('data_rate' =&gt; 115200, 
              'data_bits' =&gt; 8, 
              'stop_bits' =&gt; 1, 
              'parity' =&gt; 0, 
              'is_canonical' =&gt; 1)));

    // Are we POSIX or Windows?  POSIX platforms do not have a
    // Standard port naming scheme so it could be /dev/ttyUSB0
    // or some long /dev/tty.serial_port_name_thingy on OSX.
    if (PATH_SEPARATOR != ";") {
        $filename = "dio.serial:///dev/ttyS0";
    } else {
        $filename = "dio.serial://COM5";
    }

    // Open the stream for read only and use it.
    $f = fopen($filename, "r+", false, $c);
    if ($f) {
        echo "Writing to port...\n";
        fprintf($f,"Hello world\n");
        echo "Reading from port...\n";
        $data = fgets($f);
        if ($data) {
            echo $data;
        }
        fclose($f);
    }
?&gt;
</code></pre>

<p>but I always get <strong>Warning: fopen(dio.serial://COM5) [function.fopen]: failed to open stream: No such file or directory in</strong></p>

<p>dio extension does not work in windows? or i'm using a old version?</p>

<p>if i'm using a old version, where can i find the newer version of dio extension.</p>

<p>Thanks in advance. </p>
