[PHP] printer_open

2003-01-05 Thread Kathy
Hi, I'm Kathy and just a beginner in php. I'm using the printer_open and printer_draw_text etc. to print a report. It works in my localhost, but when I run it in a remote server, the error message 'couldn't connect to the printer' shown. I think this was caused by no printer was setup

[PHP] base64_encode problem while using IMAP

2002-01-15 Thread Kathy
I've been trying to decode an attached image in an email using imap. Parse error: parse error, expecting `T_VARIABLE' or `'$'' in imapTest.php on line 80 $image = trim(@imap_fetchbody($mbox, 2, 2)); $64image = base64_encode($image); I've also tried: $image = trim(@imap_fetchbody($mbox, 2,