[PHP] Serial Communication

2004-10-23 Thread Ulrik Witschass
Hello List, I have managed to communicate with the serial device with the following code: 'mode com1: BAUD=9600 PARITY=N data=8 stop=1 xon=n';//the config the device needs $fp = fopen(COM1:, rb+);//also tried only r+ here if(!$fp) die(); $query =

AW: [PHP] Serial Communication

2004-10-23 Thread Ulrik Witschass
Thanks for the help, when communicating to it via hyperterminal (or other software) it responds immidiately. I will try it on different machines within the next few days...hopefully it is just a hardware/software problem with my dev-system... best regards Ulrik //You could try the same thing

[PHP] Serial Communication

2004-10-22 Thread Ulrik Witschass
infos about this? I searched the web for some hours now but didn't find anything worthy. Any help is greatly appreciated! thanks in advance! best regards Ulrik Witschass

AW: [PHP] Serial Communication

2004-10-22 Thread Ulrik Witschass
Thanks for the many great replies, since at the moment the project is based on PHP4, I will try if the filesystem functions provide what I need. Opening the port and sending doesn't seem to be a problem, I'll try it out tonight. If for some reason it doesnt provide the functionality I need, I

[PHP] B/W Image

2004-10-12 Thread Ulrik Witschass
Hello List, I browses the PHP Manual for some time now but didn't find exactly what I was looking for. I need to turn images uploaded by a user to b/w images to use them in pdflib, the resulting PDF has to be black and white. Now my question: a) is this possible? if(a) b) do I do this with

[PHP] How to get the IP of a visitor

2002-03-18 Thread Ulrik Witschass
Hi, I am new to this list and to PHP, so please excuse any newbie questions :) Want I need to know is how to get either the ISP or the IP of the visitor of a page. I guess this is a environment variable, but I don't know which. Any help is greatly appreciated :) Thanx! Ulrik -- PHP General