Hi Jacob, Thanks for your quick reply. I have 19 networked barcode printers, which I like to print to using the code that I have. Changing it would be a bit of a job. Considering that this works on a box using IIS 6, I don't want to give up on this yet. Thanks, Paul Giesberts IT & QA Manager Servicecare -----Original Message----- From: Jacob Kruger [mailto:jacobk@xxxxxxxxxxxx] Sent: 05 May 2009 10:37 To: Paul Giesberts Subject: {** SPAM **} Re: printing on IIS7 Why don't you just use javascript to print the content? Think it's something like window.print(), but not 100% sure. Stay well Jacob Kruger Blind Biker Skype: BlindZA '...fate had broken his body, but not his spirit...' ----- Original Message ----- From: "Paul Giesberts" <p.giesberts@xxxxxxxxxxxxxxxxxx> To: <php-windows@xxxxxxxxxxxxx> Sent: Tuesday, May 05, 2009 10:52 AM Subject: printing on IIS7 Hi, I have migrated a php site from Linux to windows. The only remaining problem seems to be printing, naturally I have had to change the code and that's where the problems have started. I have the following very simple code: <?php $txt = "Hello World"; $handle = printer_open("DELL3115"); printer_write($handle, $txt); printer_close($handle); ?> When I run this from the command prompt using php -f ..... It works fine, in other words it prints, when I run this script through the web browser then I get this: Fatal error: Out of memory (allocated 262144) (tried to allocate 4294967295 bytes) in C:\inetpub\wwwroot\testprn.php on line 4 I have read this article: http://support.microsoft.com/?kbid=184291 and many others, which all lead me to believe that it is an account / permission problem. On a side note: $handle = printer_open("non-existing-printer"); gives me a normal error in the sense of "can't find printer". I run Windows 2008 64 bit, IIS7, php 5.2 32 bit ( I have enabled 32 bit apps in IIS and the rest of the site works fine), using FastCGI. Has anyone got any ideas? Thanks, Paul Giesberts IT & QA Manager ------------------------------------------------------------- Servicecare Manchester Road Oldham OL9 7AA ------------------------------------------------------------- DDI: ++44-161-6881985 Tel: ++44-161-6881999 Fax: ++44-161-6881998 email: p.giesberts@xxxxxxxxxxxxxxxxx -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __________ Information from ESET NOD32 Antivirus, version of virus signature database 4052 (20090504) __________ The message was checked by ESET NOD32 Antivirus. http://www.eset.com __________ Information from ESET NOD32 Antivirus, version of virus signature database 4052 (20090504) __________ The message was checked by ESET NOD32 Antivirus. http://www.eset.com -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php