RE: [PHP] PHP module for modem???

2001-12-18 Thread Nathan Cassano


There aren't any modem modules that I am aware of but if you are using
UNIX you can just open the modem device and talk to it directly. What is
your application that would need to use a modem?

?
 /* Something like this */
 $fp = fopen(/dev/modem, rw);
 fwrite($fp, ATA);
 echo fgets($fp, 128)
 fclose($fp);
?

-Original Message-
From: Scott Fletcher [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, December 18, 2001 8:11 AM
To: [EMAIL PROTECTED]
Subject: [PHP] PHP module for modem???


Hi!

Is there any module or software that I can use and compile it with
PHP for working with hte modem???
For example, I have cURL but it is a seperate software and can be
compile with PHP for certain things like FTP, Internet socket, etc.  So,
is there ever one for the modem?

Thanks,
 Scott


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] PHP module for modem???

2001-12-18 Thread Charles Williams

This would require that your httpd user (nobody? depends on your setup) has
read/write access to said device (which is normally not the case).  In such
a case you would need to filter it through sudo or some such.

chuck

- Original Message -
From: Nathan Cassano [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, December 18, 2001 5:47 PM
Subject: RE: [PHP] PHP module for modem???



 There aren't any modem modules that I am aware of but if you are using
 UNIX you can just open the modem device and talk to it directly. What is
 your application that would need to use a modem?

 ?
  /* Something like this */
  $fp = fopen(/dev/modem, rw);
  fwrite($fp, ATA);
  echo fgets($fp, 128)
  fclose($fp);
 ?

 -Original Message-
 From: Scott Fletcher [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 18, 2001 8:11 AM
 To: [EMAIL PROTECTED]
 Subject: [PHP] PHP module for modem???


 Hi!

 Is there any module or software that I can use and compile it with
 PHP for working with hte modem???
 For example, I have cURL but it is a seperate software and can be
 compile with PHP for certain things like FTP, Internet socket, etc.  So,
 is there ever one for the modem?

 Thanks,
  Scott


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] PHP module for modem???

2001-12-18 Thread Scott Fletcher

  What application would I need to use this.  In this case, no appication.
Just writting the PHP code on the webpage that would work with the modem and
stuffs like that.

Scott

Nathan Cassano [EMAIL PROTECTED] wrote in message
778f01c187e3$b84b8ed0$2925ae3f@amos">news:778f01c187e3$b84b8ed0$2925ae3f@amos...

 There aren't any modem modules that I am aware of but if you are using
 UNIX you can just open the modem device and talk to it directly. What is
 your application that would need to use a modem?

 ?
  /* Something like this */
  $fp = fopen(/dev/modem, rw);
  fwrite($fp, ATA);
  echo fgets($fp, 128)
  fclose($fp);
 ?

 -Original Message-
 From: Scott Fletcher [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 18, 2001 8:11 AM
 To: [EMAIL PROTECTED]
 Subject: [PHP] PHP module for modem???


 Hi!

 Is there any module or software that I can use and compile it with
 PHP for working with hte modem???
 For example, I have cURL but it is a seperate software and can be
 compile with PHP for certain things like FTP, Internet socket, etc.  So,
 is there ever one for the modem?

 Thanks,
  Scott




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]