PHP dir_open()、dio_stat(),dio_read($fd, $len),dio_write($fd,$string),exec()

解决方案 »

  1.   

    第一个不知道$fd = dio_open('/dev/ttyS0', O_RDWR | O_NOCTTY | O_NONBLOCK);dio_close($fd);//dio_stat --  Gets stat information about the file descriptor fd 
    //dio_read -- Reads bytes from a file descriptor
    //dio_write --  Writes data to fd with optional truncation at length 手册上面都有,不过我这手册介绍的都不详细..LZ自己多看看手册..
      

  2.   

    下载手册,里面都有:http://download.csdn.net/source/871602
      

  3.   

    多google和百度,有时候光看手册也不明白的。