[PHP] printer functions and pcl

2003-11-03 Thread Mark Newnham
I'm trying to output HP PCL commeands using the printer_write command. 
For example:

$str=sprintf("\033&d0D"); // Underline Text
$str.="Text to print";
$str.=sprintf("\033cE"); // Reset printer
$handle = printer_open('DOMAIN\\PSERVER');
printer_write($handle,$str);
printer_close($handle);
The printer is configured for raw output.  The output appears to be 
correct (I've compared the spooled job against one that works, so it 
would seem to be a problem with the job configuration e.g. the 
printer_set_option. I've tried using the MODE,"RAW" functio, but when I 
set this, the printer_write function no-longer works.

can anyone help?

TIA

Mark

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Using sapi/embed

2003-03-03 Thread Mark Newnham
Does anyone have a simple example of using the sapi/embed option from an 
external c or c++ program, including compiling/linking?

TIA

Mark

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] specifying alternate host with imap-mail

2001-02-23 Thread Mark Newnham

Is it possible to specify an alternate SMTP host for use with imap_mail? Is
this what the rpath parameter is for? If so, what would the syntax be.

Thanks

Mark

-- 
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] using DTDs and XML

2001-02-23 Thread Mark Newnham

Does anyone have examples of using DTD's with the xml_parse functions?

Regards

Mark

-- 
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]