What about php 5.3 and printers or PHP_PRINTER.DLL ?

What about php 5.3 and printers or PHP_PRINTER.DLL ?

am 30.01.2010 18:43:52 von Robert

Hi to all of you dear friends.

Is still possible to print from php scripts directly to server's attached
printers?
(here it is php for windows, so this question is intended as to print on a
windows server WAMP)

Thank you for any update.

A related curiosity is about PHP_PRINTER.DLL. Has that dll been abandoned?

Mr. Pierre Joye is publishing one intended (seems) to fit on php 5.2.8
http://downloads.php.net/pierre/

but using it with last apache makes that extension to not be loaded (checked
on apache error log). So playing with search engines i've found (looks like)
that the higher php version usable with php_printer.dll is

PHP 5.2.8 with pecl for PHP 5.2.6
http://us2.php.net/get/pecl-5.2.6-Win32.zip/from/a/mirror

it does work, already verified.

Yes, cool! ... But the behaviour is that this does not allow me to upgrade
MySQL. (* see at bottom)

Next issue/question: seems to me that pecl collections later than 5.2.6 are
not available. Isn't it?

Thank you for any help or tip on how to upgrade PHP and still be able to
print directly to server's attached printers from php scripts.

Kind regards

Robert

(*) about MySQL upgrade (off topic but just to explain my request)
With the WAMP environment I've installed phpmyadmin.
I was going to install MySQL 5.1.42 but...
Well, using the libmysql.dll provided with PHP 5.2.8 makes a warning appear
in the phpmyadmin server home page. The warning says:
"Your PHP MySQL library version 5.0.51a differs from your MySQL server
version 5.1.xx. This may cause unpredictable behavior"
Again on search engines...: appeared a solution like "overwrite the php
provided libmysql.dll you copied in \system32 directory with the one in the
mysql installation directory".
Tried.

This doesn't work and crashes apache as soon I attempt to login phpmyadmin.

So, for the moment, the only solution I've found has been to remove MySQL
5.1.42 and install MySQL 5.0.90 (community). Apache is 2.2.14. Windows is
2008 server standard edition.



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

Re: What about php 5.3 and printers or PHP_PRINTER.DLL ?

am 30.01.2010 19:28:22 von Pierre Joye

hi,

On Sat, Jan 30, 2010 at 6:43 PM, Robert wrote:

> Is still possible to print from php scripts directly to server's attached
> printers?
> (here it is php for windows, so this question is intended as to print on a
> windows server WAMP)
>
> Thank you for any update.
>
> A related curiosity is about PHP_PRINTER.DLL. Has that dll been abandoned?
>
> Mr. Pierre Joye is publishing one intended (seems) to fit on php 5.2.8
> http://downloads.php.net/pierre/

Pierre works too ;)

> but using it with last apache makes that extension to not be loaded (checked
> on apache error log). So playing with search engines i've found (looks like)
> that the higher php version usable with php_printer.dll is
>
> PHP 5.2.8 with pecl for PHP 5.2.6
> http://us2.php.net/get/pecl-5.2.6-Win32.zip/from/a/mirror
>
> it does work, already verified.

It should work with 5.2.6 and later.

> Yes, cool! ... But the behaviour is that this does not allow me to upgrade
> MySQL. (* see at bottom)

> "Your PHP MySQL library version 5.0.51a differs from your MySQL server
> version 5.1.xx. This may cause unpredictable behavior"

It should work just fine.

> Thank you for any help or tip on how to upgrade PHP and still be able to
> print directly to server's attached printers from php scripts.

Do you need printer for 5.3? I did not try to compile it lately but it
should be possible.

Cheers,
--
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

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

RE: What about php 5.3 and printers or PHP_PRINTER.DLL ?

am 05.02.2010 14:49:37 von Keith Davis

I need this for 5.3.1. Can you compile it for me? I've compiled PHP once
(we're using MS SQL Server Driver For PHP, had to compile for 5.3), but
I'm very shaky about it.=20



Keith Davis (214) 906-5183

-----Original Message-----
From: Pierre Joye [mailto:pierre.php@gmail.com]=20
Sent: Saturday, January 30, 2010 12:28 PM
To: Robert
Cc: php-windows@lists.php.net
Subject: Re: [PHP-WIN] What about php 5.3 and printers or
PHP_PRINTER.DLL ?

hi,

On Sat, Jan 30, 2010 at 6:43 PM, Robert wrote:

> Is still possible to print from php scripts directly to server's=20
> attached printers?
> (here it is php for windows, so this question is intended as to print=20
> on a windows server WAMP)
>
> Thank you for any update.
>
> A related curiosity is about PHP_PRINTER.DLL. Has that dll been
abandoned?
>
> Mr. Pierre Joye is publishing one intended (seems) to fit on php 5.2.8

> http://downloads.php.net/pierre/

Pierre works too ;)

> but using it with last apache makes that extension to not be loaded=20
> (checked on apache error log). So playing with search engines i've=20
> found (looks like) that the higher php version usable with=20
> php_printer.dll is
>
> PHP 5.2.8 with pecl for PHP 5.2.6
> http://us2.php.net/get/pecl-5.2.6-Win32.zip/from/a/mirror
>
> it does work, already verified.

It should work with 5.2.6 and later.

> Yes, cool! ... But the behaviour is that this does not allow me to=20
> upgrade MySQL. (* see at bottom)

> "Your PHP MySQL library version 5.0.51a differs from your MySQL server

> version 5.1.xx. This may cause unpredictable behavior"

It should work just fine.

> Thank you for any help or tip on how to upgrade PHP and still be able=20
> to print directly to server's attached printers from php scripts.

Do you need printer for 5.3? I did not try to compile it lately but it
should be possible.

Cheers,
--
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

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


This message (including any attachments) may contain confidential or =
otherwise privileged information and is intended only for the =
individual(s) to which it is addressed. If you are not the named =
addressee you should not disseminate, distribute or copy this e-mail. =
Please notify the sender immediately by e-mail if you have received this =
e-mail by mistake and delete this e-mail from your system. E-mail =
transmission cannot be guaranteed to be secured or error-free as =
information could be intercepted, corrupted, lost, destroyed, arrive =
late or incomplete, or contain viruses. The sender therefore does not =
accept liability for any errors or omissions in the contents of this =
message or that arise as a result of e-mail transmission. If =
verification is required please request a hard-copy version from the =
sender.

www.pridedallas.com


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

RE: What about php 5.3 and printers or PHP_PRINTER.DLL ?

am 05.02.2010 14:50:08 von Keith Davis

If I need to do it myself, where do I get the source?=20



Keith Davis (214) 906-5183

-----Original Message-----
From: Keith Davis=20
Sent: Friday, February 05, 2010 7:50 AM
To: 'Pierre Joye'; Robert
Cc: php-windows@lists.php.net
Subject: RE: [PHP-WIN] What about php 5.3 and printers or
PHP_PRINTER.DLL ?

I need this for 5.3.1. Can you compile it for me? I've compiled PHP once
(we're using MS SQL Server Driver For PHP, had to compile for 5.3), but
I'm very shaky about it.=20



Keith Davis (214) 906-5183

-----Original Message-----
From: Pierre Joye [mailto:pierre.php@gmail.com]
Sent: Saturday, January 30, 2010 12:28 PM
To: Robert
Cc: php-windows@lists.php.net
Subject: Re: [PHP-WIN] What about php 5.3 and printers or
PHP_PRINTER.DLL ?

hi,

On Sat, Jan 30, 2010 at 6:43 PM, Robert wrote:

> Is still possible to print from php scripts directly to server's=20
> attached printers?
> (here it is php for windows, so this question is intended as to print=20
> on a windows server WAMP)
>
> Thank you for any update.
>
> A related curiosity is about PHP_PRINTER.DLL. Has that dll been
abandoned?
>
> Mr. Pierre Joye is publishing one intended (seems) to fit on php 5.2.8

> http://downloads.php.net/pierre/

Pierre works too ;)

> but using it with last apache makes that extension to not be loaded=20
> (checked on apache error log). So playing with search engines i've=20
> found (looks like) that the higher php version usable with=20
> php_printer.dll is
>
> PHP 5.2.8 with pecl for PHP 5.2.6
> http://us2.php.net/get/pecl-5.2.6-Win32.zip/from/a/mirror
>
> it does work, already verified.

It should work with 5.2.6 and later.

> Yes, cool! ... But the behaviour is that this does not allow me to=20
> upgrade MySQL. (* see at bottom)

> "Your PHP MySQL library version 5.0.51a differs from your MySQL server

> version 5.1.xx. This may cause unpredictable behavior"

It should work just fine.

> Thank you for any help or tip on how to upgrade PHP and still be able=20
> to print directly to server's attached printers from php scripts.

Do you need printer for 5.3? I did not try to compile it lately but it
should be possible.

Cheers,
--
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

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


This message (including any attachments) may contain confidential or =
otherwise privileged information and is intended only for the =
individual(s) to which it is addressed. If you are not the named =
addressee you should not disseminate, distribute or copy this e-mail. =
Please notify the sender immediately by e-mail if you have received this =
e-mail by mistake and delete this e-mail from your system. E-mail =
transmission cannot be guaranteed to be secured or error-free as =
information could be intercepted, corrupted, lost, destroyed, arrive =
late or incomplete, or contain viruses. The sender therefore does not =
accept liability for any errors or omissions in the contents of this =
message or that arise as a result of e-mail transmission. If =
verification is required please request a hard-copy version from the =
sender.

www.pridedallas.com


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

RE: What about php 5.3 and printers or PHP_PRINTER.DLL ?

am 05.02.2010 16:16:26 von Keith Davis

Ok, this is the source, correct?

http://svn.php.net/viewvc/pecl/printer/

Can't seem to figure out how to compile it.



Keith Davis (214) 906-5183

-----Original Message-----
From: Keith Davis=20
Sent: Friday, February 05, 2010 7:50 AM
To: 'Pierre Joye'; 'Robert'
Cc: 'php-windows@lists.php.net'
Subject: RE: [PHP-WIN] What about php 5.3 and printers or
PHP_PRINTER.DLL ?

If I need to do it myself, where do I get the source?=20



Keith Davis (214) 906-5183

-----Original Message-----
From: Keith Davis
Sent: Friday, February 05, 2010 7:50 AM
To: 'Pierre Joye'; Robert
Cc: php-windows@lists.php.net
Subject: RE: [PHP-WIN] What about php 5.3 and printers or
PHP_PRINTER.DLL ?

I need this for 5.3.1. Can you compile it for me? I've compiled PHP once
(we're using MS SQL Server Driver For PHP, had to compile for 5.3), but
I'm very shaky about it.=20



Keith Davis (214) 906-5183

-----Original Message-----
From: Pierre Joye [mailto:pierre.php@gmail.com]
Sent: Saturday, January 30, 2010 12:28 PM
To: Robert
Cc: php-windows@lists.php.net
Subject: Re: [PHP-WIN] What about php 5.3 and printers or
PHP_PRINTER.DLL ?

hi,

On Sat, Jan 30, 2010 at 6:43 PM, Robert wrote:

> Is still possible to print from php scripts directly to server's=20
> attached printers?
> (here it is php for windows, so this question is intended as to print=20
> on a windows server WAMP)
>
> Thank you for any update.
>
> A related curiosity is about PHP_PRINTER.DLL. Has that dll been
abandoned?
>
> Mr. Pierre Joye is publishing one intended (seems) to fit on php 5.2.8

> http://downloads.php.net/pierre/

Pierre works too ;)

> but using it with last apache makes that extension to not be loaded=20
> (checked on apache error log). So playing with search engines i've=20
> found (looks like) that the higher php version usable with=20
> php_printer.dll is
>
> PHP 5.2.8 with pecl for PHP 5.2.6
> http://us2.php.net/get/pecl-5.2.6-Win32.zip/from/a/mirror
>
> it does work, already verified.

It should work with 5.2.6 and later.

> Yes, cool! ... But the behaviour is that this does not allow me to=20
> upgrade MySQL. (* see at bottom)

> "Your PHP MySQL library version 5.0.51a differs from your MySQL server

> version 5.1.xx. This may cause unpredictable behavior"

It should work just fine.

> Thank you for any help or tip on how to upgrade PHP and still be able=20
> to print directly to server's attached printers from php scripts.

Do you need printer for 5.3? I did not try to compile it lately but it
should be possible.

Cheers,
--
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

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


This message (including any attachments) may contain confidential or =
otherwise privileged information and is intended only for the =
individual(s) to which it is addressed. If you are not the named =
addressee you should not disseminate, distribute or copy this e-mail. =
Please notify the sender immediately by e-mail if you have received this =
e-mail by mistake and delete this e-mail from your system. E-mail =
transmission cannot be guaranteed to be secured or error-free as =
information could be intercepted, corrupted, lost, destroyed, arrive =
late or incomplete, or contain viruses. The sender therefore does not =
accept liability for any errors or omissions in the contents of this =
message or that arise as a result of e-mail transmission. If =
verification is required please request a hard-copy version from the =
sender.

www.pridedallas.com


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

Re: What about php 5.3 and printers or PHP_PRINTER.DLL ?

am 05.02.2010 20:54:47 von Pierre Joye

hi,

you can find them now on, for VC8 x86 builds:

- http://downloads.php.net/pierre/php_printer-svn-20100205-5.3 -vc9-x86.zip
- http://downloads.php.net/pierre/php_printer-svn-20100205-5.3 -nts-vc9-x86.=
zip

I will do the VC6 version next week.

Cheers,

On Fri, Feb 5, 2010 at 4:16 PM, Keith Davis wr=
ote:
> Ok, this is the source, correct?
>
> http://svn.php.net/viewvc/pecl/printer/
>
> Can't seem to figure out how to compile it.
>
>
>
> Keith Davis (214) 906-5183
>
> -----Original Message-----
> From: Keith Davis
> Sent: Friday, February 05, 2010 7:50 AM
> To: 'Pierre Joye'; 'Robert'
> Cc: 'php-windows@lists.php.net'
> Subject: RE: [PHP-WIN] What about php 5.3 and printers or
> PHP_PRINTER.DLL ?
>
> If I need to do it myself, where do I get the source?
>
>
>
> Keith Davis (214) 906-5183
>
> -----Original Message-----
> From: Keith Davis
> Sent: Friday, February 05, 2010 7:50 AM
> To: 'Pierre Joye'; Robert
> Cc: php-windows@lists.php.net
> Subject: RE: [PHP-WIN] What about php 5.3 and printers or
> PHP_PRINTER.DLL ?
>
> I need this for 5.3.1. Can you compile it for me? I've compiled PHP once
> (we're using MS SQL Server Driver For PHP, had to compile for 5.3), but
> I'm very shaky about it.
>
>
>
> Keith Davis (214) 906-5183
>
> -----Original Message-----
> From: Pierre Joye [mailto:pierre.php@gmail.com]
> Sent: Saturday, January 30, 2010 12:28 PM
> To: Robert
> Cc: php-windows@lists.php.net
> Subject: Re: [PHP-WIN] What about php 5.3 and printers or
> PHP_PRINTER.DLL ?
>
> hi,
>
> On Sat, Jan 30, 2010 at 6:43 PM, Robert wrote:
>
>> Is still possible to print from php scripts directly to server's
>> attached printers?
>> (here it is php for windows, so this question is intended as to print
>> on a windows server WAMP)
>>
>> Thank you for any update.
>>
>> A related curiosity is about PHP_PRINTER.DLL. Has that dll been
> abandoned?
>>
>> Mr. Pierre Joye is publishing one intended (seems) to fit on php 5.2.8
>
>> http://downloads.php.net/pierre/
>
> Pierre works too ;)
>
>> but using it with last apache makes that extension to not be loaded
>> (checked on apache error log). So playing with search engines i've
>> found (looks like) that the higher php version usable with
>> php_printer.dll is
>>
>> PHP 5.2.8 with pecl for PHP 5.2.6
>> http://us2.php.net/get/pecl-5.2.6-Win32.zip/from/a/mirror
>>
>> it does work, already verified.
>
> It should work with 5.2.6 and later.
>
>> Yes, cool! ... But the behaviour is that this does not allow me to
>> upgrade MySQL. (* see at bottom)
>
>> "Your PHP MySQL library version 5.0.51a differs from your MySQL server
>
>> version 5.1.xx. This may cause unpredictable behavior"
>
> It should work just fine.
>
>> Thank you for any help or tip on how to upgrade PHP and still be able
>> to print directly to server's attached printers from php scripts.
>
> Do you need printer for 5.3? I did not try to compile it lately but it
> should be possible.
>
> Cheers,
> --
> Pierre
>
> @pierrejoye | http://blog.thepimp.net | http://www.libgd.org
>
> --
> PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit:
> http://www.php.net/unsub.php
>
>
> This message (including any attachments) may contain confidential or othe=
rwise privileged information and is intended only for the individual(s) to =
which it is addressed. If you are not the named addressee you should not di=
sseminate, distribute or copy this e-mail. Please notify the sender immedia=
tely by e-mail if you have received this e-mail by mistake and delete this =
e-mail from your system. E-mail transmission cannot be guaranteed to be sec=
ured or error-free as information could be intercepted, corrupted, lost, de=
stroyed, arrive late or incomplete, or contain viruses. The sender therefor=
e does not accept liability for any errors or omissions in the contents of =
this message or that arise as a result of e-mail transmission. If verificat=
ion is required please request a hard-copy version from the sender.
>
> www.pridedallas.com
>
>



--=20
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

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

RE: What about php 5.3 and printers or PHP_PRINTER.DLL ?

am 05.02.2010 21:26:07 von Keith Davis

You are awesome.



Keith Davis (214) 906-5183

-----Original Message-----
From: Pierre Joye [mailto:pierre.php@gmail.com]=20
Sent: Friday, February 05, 2010 1:55 PM
To: Keith Davis
Cc: Robert; php-windows@lists.php.net
Subject: Re: [PHP-WIN] What about php 5.3 and printers or
PHP_PRINTER.DLL ?

hi,

you can find them now on, for VC8 x86 builds:

-
http://downloads.php.net/pierre/php_printer-svn-20100205-5.3 -vc9-x86.zip
-
http://downloads.php.net/pierre/php_printer-svn-20100205-5.3 -nts-vc9-x86
..zip

I will do the VC6 version next week.

Cheers,

On Fri, Feb 5, 2010 at 4:16 PM, Keith Davis
wrote:
> Ok, this is the source, correct?
>
> http://svn.php.net/viewvc/pecl/printer/
>
> Can't seem to figure out how to compile it.
>
>
>
> Keith Davis (214) 906-5183
>
> -----Original Message-----
> From: Keith Davis
> Sent: Friday, February 05, 2010 7:50 AM
> To: 'Pierre Joye'; 'Robert'
> Cc: 'php-windows@lists.php.net'
> Subject: RE: [PHP-WIN] What about php 5.3 and printers or=20
> PHP_PRINTER.DLL ?
>
> If I need to do it myself, where do I get the source?
>
>
>
> Keith Davis (214) 906-5183
>
> -----Original Message-----
> From: Keith Davis
> Sent: Friday, February 05, 2010 7:50 AM
> To: 'Pierre Joye'; Robert
> Cc: php-windows@lists.php.net
> Subject: RE: [PHP-WIN] What about php 5.3 and printers or=20
> PHP_PRINTER.DLL ?
>
> I need this for 5.3.1. Can you compile it for me? I've compiled PHP=20
> once (we're using MS SQL Server Driver For PHP, had to compile for=20
> 5.3), but I'm very shaky about it.
>
>
>
> Keith Davis (214) 906-5183
>
> -----Original Message-----
> From: Pierre Joye [mailto:pierre.php@gmail.com]
> Sent: Saturday, January 30, 2010 12:28 PM
> To: Robert
> Cc: php-windows@lists.php.net
> Subject: Re: [PHP-WIN] What about php 5.3 and printers or=20
> PHP_PRINTER.DLL ?
>
> hi,
>
> On Sat, Jan 30, 2010 at 6:43 PM, Robert wrote:
>
>> Is still possible to print from php scripts directly to server's=20
>> attached printers?
>> (here it is php for windows, so this question is intended as to print

>> on a windows server WAMP)
>>
>> Thank you for any update.
>>
>> A related curiosity is about PHP_PRINTER.DLL. Has that dll been
> abandoned?
>>
>> Mr. Pierre Joye is publishing one intended (seems) to fit on php=20
>> 5.2.8
>
>> http://downloads.php.net/pierre/
>
> Pierre works too ;)
>
>> but using it with last apache makes that extension to not be loaded=20
>> (checked on apache error log). So playing with search engines i've=20
>> found (looks like) that the higher php version usable with=20
>> php_printer.dll is
>>
>> PHP 5.2.8 with pecl for PHP 5.2.6
>> http://us2.php.net/get/pecl-5.2.6-Win32.zip/from/a/mirror
>>
>> it does work, already verified.
>
> It should work with 5.2.6 and later.
>
>> Yes, cool! ... But the behaviour is that this does not allow me to=20
>> upgrade MySQL. (* see at bottom)
>
>> "Your PHP MySQL library version 5.0.51a differs from your MySQL=20
>> server
>
>> version 5.1.xx. This may cause unpredictable behavior"
>
> It should work just fine.
>
>> Thank you for any help or tip on how to upgrade PHP and still be able

>> to print directly to server's attached printers from php scripts.
>
> Do you need printer for 5.3? I did not try to compile it lately but it

> should be possible.
>
> Cheers,
> --
> Pierre
>
> @pierrejoye | http://blog.thepimp.net | http://www.libgd.org
>
> --
> PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit:
> http://www.php.net/unsub.php
>
>
> This message (including any attachments) may contain confidential or
otherwise privileged information and is intended only for the
individual(s) to which it is addressed. If you are not the named
addressee you should not disseminate, distribute or copy this e-mail.
Please notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system. E-mail
transmission cannot be guaranteed to be secured or error-free as
information could be intercepted, corrupted, lost, destroyed, arrive
late or incomplete, or contain viruses. The sender therefore does not
accept liability for any errors or omissions in the contents of this
message or that arise as a result of e-mail transmission. If
verification is required please request a hard-copy version from the
sender.
>
> www.pridedallas.com
>
>



--
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

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

RE: What about php 5.3 and printers or PHP_PRINTER.DLL ?

am 05.02.2010 21:36:07 von Keith Davis

Ugh, apparently it can find the printer (initially, I had the syntax
incorrect), but now I get this error message:

$h =3D printer_open('\\\\server05\\Auth');

PHP Fatal error: Out of memory (allocated 1310720) (tried to allocate
4294967295 bytes) in C:\inetpub\Intranet_Local\test.php on line 16=20





Keith Davis (214) 906-5183

-----Original Message-----
From: Pierre Joye [mailto:pierre.php@gmail.com]=20
Sent: Friday, February 05, 2010 1:55 PM
To: Keith Davis
Cc: Robert; php-windows@lists.php.net
Subject: Re: [PHP-WIN] What about php 5.3 and printers or
PHP_PRINTER.DLL ?

hi,

you can find them now on, for VC8 x86 builds:

-
http://downloads.php.net/pierre/php_printer-svn-20100205-5.3 -vc9-x86.zip
-
http://downloads.php.net/pierre/php_printer-svn-20100205-5.3 -nts-vc9-x86
..zip

I will do the VC6 version next week.

Cheers,

On Fri, Feb 5, 2010 at 4:16 PM, Keith Davis
wrote:
> Ok, this is the source, correct?
>
> http://svn.php.net/viewvc/pecl/printer/
>
> Can't seem to figure out how to compile it.
>
>
>
> Keith Davis (214) 906-5183
>
> -----Original Message-----
> From: Keith Davis
> Sent: Friday, February 05, 2010 7:50 AM
> To: 'Pierre Joye'; 'Robert'
> Cc: 'php-windows@lists.php.net'
> Subject: RE: [PHP-WIN] What about php 5.3 and printers or=20
> PHP_PRINTER.DLL ?
>
> If I need to do it myself, where do I get the source?
>
>
>
> Keith Davis (214) 906-5183
>
> -----Original Message-----
> From: Keith Davis
> Sent: Friday, February 05, 2010 7:50 AM
> To: 'Pierre Joye'; Robert
> Cc: php-windows@lists.php.net
> Subject: RE: [PHP-WIN] What about php 5.3 and printers or=20
> PHP_PRINTER.DLL ?
>
> I need this for 5.3.1. Can you compile it for me? I've compiled PHP=20
> once (we're using MS SQL Server Driver For PHP, had to compile for=20
> 5.3), but I'm very shaky about it.
>
>
>
> Keith Davis (214) 906-5183
>
> -----Original Message-----
> From: Pierre Joye [mailto:pierre.php@gmail.com]
> Sent: Saturday, January 30, 2010 12:28 PM
> To: Robert
> Cc: php-windows@lists.php.net
> Subject: Re: [PHP-WIN] What about php 5.3 and printers or=20
> PHP_PRINTER.DLL ?
>
> hi,
>
> On Sat, Jan 30, 2010 at 6:43 PM, Robert wrote:
>
>> Is still possible to print from php scripts directly to server's=20
>> attached printers?
>> (here it is php for windows, so this question is intended as to print

>> on a windows server WAMP)
>>
>> Thank you for any update.
>>
>> A related curiosity is about PHP_PRINTER.DLL. Has that dll been
> abandoned?
>>
>> Mr. Pierre Joye is publishing one intended (seems) to fit on php=20
>> 5.2.8
>
>> http://downloads.php.net/pierre/
>
> Pierre works too ;)
>
>> but using it with last apache makes that extension to not be loaded=20
>> (checked on apache error log). So playing with search engines i've=20
>> found (looks like) that the higher php version usable with=20
>> php_printer.dll is
>>
>> PHP 5.2.8 with pecl for PHP 5.2.6
>> http://us2.php.net/get/pecl-5.2.6-Win32.zip/from/a/mirror
>>
>> it does work, already verified.
>
> It should work with 5.2.6 and later.
>
>> Yes, cool! ... But the behaviour is that this does not allow me to=20
>> upgrade MySQL. (* see at bottom)
>
>> "Your PHP MySQL library version 5.0.51a differs from your MySQL=20
>> server
>
>> version 5.1.xx. This may cause unpredictable behavior"
>
> It should work just fine.
>
>> Thank you for any help or tip on how to upgrade PHP and still be able

>> to print directly to server's attached printers from php scripts.
>
> Do you need printer for 5.3? I did not try to compile it lately but it

> should be possible.
>
> Cheers,
> --
> Pierre
>
> @pierrejoye | http://blog.thepimp.net | http://www.libgd.org
>
> --
> PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit:
> http://www.php.net/unsub.php
>
>
> This message (including any attachments) may contain confidential or
otherwise privileged information and is intended only for the
individual(s) to which it is addressed. If you are not the named
addressee you should not disseminate, distribute or copy this e-mail.
Please notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system. E-mail
transmission cannot be guaranteed to be secured or error-free as
information could be intercepted, corrupted, lost, destroyed, arrive
late or incomplete, or contain viruses. The sender therefore does not
accept liability for any errors or omissions in the contents of this
message or that arise as a result of e-mail transmission. If
verification is required please request a hard-copy version from the
sender.
>
> www.pridedallas.com
>
>



--
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

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

Re: What about php 5.3 and printers or PHP_PRINTER.DLL ?

am 05.02.2010 21:43:54 von Pierre Joye

hi,

That's a pretty obvious error no? :)

Increase your memory limit and you should be fine.

Cheers,

On Fri, Feb 5, 2010 at 9:36 PM, Keith Davis wrote:
> Ugh, apparently it can find the printer (initially, I had the syntax
> incorrect), but now I get this error message:
>
> $h = printer_open('\\\\server05\\Auth');
>
> PHP Fatal error: Out of memory (allocated 1310720) (tried to allocate
> 4294967295 bytes) in C:\inetpub\Intranet_Local\test.php on line 16
>
>
>
>
>
> Keith Davis (214) 906-5183
>
> -----Original Message-----
> From: Pierre Joye [mailto:pierre.php@gmail.com]
> Sent: Friday, February 05, 2010 1:55 PM
> To: Keith Davis
> Cc: Robert; php-windows@lists.php.net
> Subject: Re: [PHP-WIN] What about php 5.3 and printers or
> PHP_PRINTER.DLL ?
>
> hi,
>
> you can find them now on, for VC8 x86 builds:
>
> -
> http://downloads.php.net/pierre/php_printer-svn-20100205-5.3 -vc9-x86.zip
> -
> http://downloads.php.net/pierre/php_printer-svn-20100205-5.3 -nts-vc9-x86
> .zip
>
> I will do the VC6 version next week.
>
> Cheers,
>
> On Fri, Feb 5, 2010 at 4:16 PM, Keith Davis
> wrote:
>> Ok, this is the source, correct?
>>
>> http://svn.php.net/viewvc/pecl/printer/
>>
>> Can't seem to figure out how to compile it.
>>
>>
>>
>> Keith Davis (214) 906-5183
>>
>> -----Original Message-----
>> From: Keith Davis
>> Sent: Friday, February 05, 2010 7:50 AM
>> To: 'Pierre Joye'; 'Robert'
>> Cc: 'php-windows@lists.php.net'
>> Subject: RE: [PHP-WIN] What about php 5.3 and printers or
>> PHP_PRINTER.DLL ?
>>
>> If I need to do it myself, where do I get the source?
>>
>>
>>
>> Keith Davis (214) 906-5183
>>
>> -----Original Message-----
>> From: Keith Davis
>> Sent: Friday, February 05, 2010 7:50 AM
>> To: 'Pierre Joye'; Robert
>> Cc: php-windows@lists.php.net
>> Subject: RE: [PHP-WIN] What about php 5.3 and printers or
>> PHP_PRINTER.DLL ?
>>
>> I need this for 5.3.1. Can you compile it for me? I've compiled PHP
>> once (we're using MS SQL Server Driver For PHP, had to compile for
>> 5.3), but I'm very shaky about it.
>>
>>
>>
>> Keith Davis (214) 906-5183
>>
>> -----Original Message-----
>> From: Pierre Joye [mailto:pierre.php@gmail.com]
>> Sent: Saturday, January 30, 2010 12:28 PM
>> To: Robert
>> Cc: php-windows@lists.php.net
>> Subject: Re: [PHP-WIN] What about php 5.3 and printers or
>> PHP_PRINTER.DLL ?
>>
>> hi,
>>
>> On Sat, Jan 30, 2010 at 6:43 PM, Robert wrote:
>>
>>> Is still possible to print from php scripts directly to server's
>>> attached printers?
>>> (here it is php for windows, so this question is intended as to print
>
>>> on a windows server WAMP)
>>>
>>> Thank you for any update.
>>>
>>> A related curiosity is about PHP_PRINTER.DLL. Has that dll been
>> abandoned?
>>>
>>> Mr. Pierre Joye is publishing one intended (seems) to fit on php
>>> 5.2.8
>>
>>> http://downloads.php.net/pierre/
>>
>> Pierre works too ;)
>>
>>> but using it with last apache makes that extension to not be loaded
>>> (checked on apache error log). So playing with search engines i've
>>> found (looks like) that the higher php version usable with
>>> php_printer.dll is
>>>
>>> PHP 5.2.8 with pecl for PHP 5.2.6
>>> http://us2.php.net/get/pecl-5.2.6-Win32.zip/from/a/mirror
>>>
>>> it does work, already verified.
>>
>> It should work with 5.2.6 and later.
>>
>>> Yes, cool! ... But the behaviour is that this does not allow me to
>>> upgrade MySQL. (* see at bottom)
>>
>>> "Your PHP MySQL library version 5.0.51a differs from your MySQL
>>> server
>>
>>> version 5.1.xx. This may cause unpredictable behavior"
>>
>> It should work just fine.
>>
>>> Thank you for any help or tip on how to upgrade PHP and still be able
>
>>> to print directly to server's attached printers from php scripts.
>>
>> Do you need printer for 5.3? I did not try to compile it lately but it
>
>> should be possible.
>>
>> Cheers,
>> --
>> Pierre
>>
>> @pierrejoye | http://blog.thepimp.net | http://www.libgd.org
>>
>> --
>> PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit:
>> http://www.php.net/unsub.php
>>
>>
>> This message (including any attachments) may contain confidential or
> otherwise privileged information and is intended only for the
> individual(s) to which it is addressed. If you are not the named
> addressee you should not disseminate, distribute or copy this e-mail.
> Please notify the sender immediately by e-mail if you have received this
> e-mail by mistake and delete this e-mail from your system. E-mail
> transmission cannot be guaranteed to be secured or error-free as
> information could be intercepted, corrupted, lost, destroyed, arrive
> late or incomplete, or contain viruses. The sender therefore does not
> accept liability for any errors or omissions in the contents of this
> message or that arise as a result of e-mail transmission. If
> verification is required please request a hard-copy version from the
> sender.
>>
>> www.pridedallas.com
>>
>>
>
>
>
> --
> Pierre
>
> @pierrejoye | http://blog.thepimp.net | http://www.libgd.org
>



--
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

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

RE: What about php 5.3 and printers or PHP_PRINTER.DLL ?

am 05.02.2010 22:01:19 von Keith Davis

Well, the reason why I didn't try that is per a forum post I found, that
number (4294967295 bytes) is 4GB of RAM, the maximum allowed on a 32 bit
system. That the problem is something else. Just for kicks, I increased
it to 4GB, and it still fails.



Keith Davis (214) 906-5183

-----Original Message-----
From: Pierre Joye [mailto:pierre.php@gmail.com]=20
Sent: Friday, February 05, 2010 2:44 PM
To: Keith Davis
Cc: Robert; php-windows@lists.php.net
Subject: Re: [PHP-WIN] What about php 5.3 and printers or
PHP_PRINTER.DLL ?

hi,

That's a pretty obvious error no? :)

Increase your memory limit and you should be fine.

Cheers,

On Fri, Feb 5, 2010 at 9:36 PM, Keith Davis
wrote:
> Ugh, apparently it can find the printer (initially, I had the syntax=20
> incorrect), but now I get this error message:
>
> $h =3D printer_open('\\\\server05\\Auth');
>
> PHP Fatal error: Out of memory (allocated 1310720) (tried to allocate
> 4294967295 bytes) in C:\inetpub\Intranet_Local\test.php on line 16
>
>
>
>
>
> Keith Davis (214) 906-5183
>
> -----Original Message-----
> From: Pierre Joye [mailto:pierre.php@gmail.com]
> Sent: Friday, February 05, 2010 1:55 PM
> To: Keith Davis
> Cc: Robert; php-windows@lists.php.net
> Subject: Re: [PHP-WIN] What about php 5.3 and printers or=20
> PHP_PRINTER.DLL ?
>
> hi,
>
> you can find them now on, for VC8 x86 builds:
>
> -
> http://downloads.php.net/pierre/php_printer-svn-20100205-5.3 -vc9-x86.z
> ip
> -
> http://downloads.php.net/pierre/php_printer-svn-20100205-5.3 -nts-vc9-x
> 86
> .zip
>
> I will do the VC6 version next week.
>
> Cheers,
>
> On Fri, Feb 5, 2010 at 4:16 PM, Keith Davis=20
>
> wrote:
>> Ok, this is the source, correct?
>>
>> http://svn.php.net/viewvc/pecl/printer/
>>
>> Can't seem to figure out how to compile it.
>>
>>
>>
>> Keith Davis (214) 906-5183
>>
>> -----Original Message-----
>> From: Keith Davis
>> Sent: Friday, February 05, 2010 7:50 AM
>> To: 'Pierre Joye'; 'Robert'
>> Cc: 'php-windows@lists.php.net'
>> Subject: RE: [PHP-WIN] What about php 5.3 and printers or=20
>> PHP_PRINTER.DLL ?
>>
>> If I need to do it myself, where do I get the source?
>>
>>
>>
>> Keith Davis (214) 906-5183
>>
>> -----Original Message-----
>> From: Keith Davis
>> Sent: Friday, February 05, 2010 7:50 AM
>> To: 'Pierre Joye'; Robert
>> Cc: php-windows@lists.php.net
>> Subject: RE: [PHP-WIN] What about php 5.3 and printers or=20
>> PHP_PRINTER.DLL ?
>>
>> I need this for 5.3.1. Can you compile it for me? I've compiled PHP=20
>> once (we're using MS SQL Server Driver For PHP, had to compile for=20
>> 5.3), but I'm very shaky about it.
>>
>>
>>
>> Keith Davis (214) 906-5183
>>
>> -----Original Message-----
>> From: Pierre Joye [mailto:pierre.php@gmail.com]
>> Sent: Saturday, January 30, 2010 12:28 PM
>> To: Robert
>> Cc: php-windows@lists.php.net
>> Subject: Re: [PHP-WIN] What about php 5.3 and printers or=20
>> PHP_PRINTER.DLL ?
>>
>> hi,
>>
>> On Sat, Jan 30, 2010 at 6:43 PM, Robert wrote:
>>
>>> Is still possible to print from php scripts directly to server's=20
>>> attached printers?
>>> (here it is php for windows, so this question is intended as to=20
>>> print
>
>>> on a windows server WAMP)
>>>
>>> Thank you for any update.
>>>
>>> A related curiosity is about PHP_PRINTER.DLL. Has that dll been
>> abandoned?
>>>
>>> Mr. Pierre Joye is publishing one intended (seems) to fit on php
>>> 5.2.8
>>
>>> http://downloads.php.net/pierre/
>>
>> Pierre works too ;)
>>
>>> but using it with last apache makes that extension to not be loaded=20
>>> (checked on apache error log). So playing with search engines i've=20
>>> found (looks like) that the higher php version usable with=20
>>> php_printer.dll is
>>>
>>> PHP 5.2.8 with pecl for PHP 5.2.6
>>> http://us2.php.net/get/pecl-5.2.6-Win32.zip/from/a/mirror
>>>
>>> it does work, already verified.
>>
>> It should work with 5.2.6 and later.
>>
>>> Yes, cool! ... But the behaviour is that this does not allow me to=20
>>> upgrade MySQL. (* see at bottom)
>>
>>> "Your PHP MySQL library version 5.0.51a differs from your MySQL=20
>>> server
>>
>>> version 5.1.xx. This may cause unpredictable behavior"
>>
>> It should work just fine.
>>
>>> Thank you for any help or tip on how to upgrade PHP and still be=20
>>> able
>
>>> to print directly to server's attached printers from php scripts.
>>
>> Do you need printer for 5.3? I did not try to compile it lately but=20
>> it
>
>> should be possible.
>>
>> Cheers,
>> --
>> Pierre
>>
>> @pierrejoye | http://blog.thepimp.net | http://www.libgd.org
>>
>> --
>> PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit:
>> http://www.php.net/unsub.php
>>
>>
>> This message (including any attachments) may contain confidential or
> otherwise privileged information and is intended only for the
> individual(s) to which it is addressed. If you are not the named=20
> addressee you should not disseminate, distribute or copy this e-mail.
> Please notify the sender immediately by e-mail if you have received=20
> this e-mail by mistake and delete this e-mail from your system. E-mail

> transmission cannot be guaranteed to be secured or error-free as=20
> information could be intercepted, corrupted, lost, destroyed, arrive=20
> late or incomplete, or contain viruses. The sender therefore does not=20
> accept liability for any errors or omissions in the contents of this=20
> message or that arise as a result of e-mail transmission. If=20
> verification is required please request a hard-copy version from the=20
> sender.
>>
>> www.pridedallas.com
>>
>>
>
>
>
> --
> Pierre
>
> @pierrejoye | http://blog.thepimp.net | http://www.libgd.org
>



--
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

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

Re: What about php 5.3 and printers or PHP_PRINTER.DLL ?

am 05.02.2010 22:06:08 von Pierre Joye

disable the memory limit. You can't set that amount of memory using a
32bit integer (which is the limit for php).

On Fri, Feb 5, 2010 at 10:01 PM, Keith Davis wrote:
> Well, the reason why I didn't try that is per a forum post I found, that
> number (4294967295 bytes) is 4GB of RAM, the maximum allowed on a 32 bit
> system. That the problem is something else. Just for kicks, I increased
> it to 4GB, and it still fails.
>
>
>
> Keith Davis (214) 906-5183
>
> -----Original Message-----
> From: Pierre Joye [mailto:pierre.php@gmail.com]
> Sent: Friday, February 05, 2010 2:44 PM
> To: Keith Davis
> Cc: Robert; php-windows@lists.php.net
> Subject: Re: [PHP-WIN] What about php 5.3 and printers or
> PHP_PRINTER.DLL ?
>
> hi,
>
> That's a pretty obvious error no? :)
>
> Increase your memory limit and you should be fine.
>
> Cheers,
>
> On Fri, Feb 5, 2010 at 9:36 PM, Keith Davis
> wrote:
>> Ugh, apparently it can find the printer (initially, I had the syntax
>> incorrect), but now I get this error message:
>>
>> $h = printer_open('\\\\server05\\Auth');
>>
>> PHP Fatal error: Out of memory (allocated 1310720) (tried to allocate
>> 4294967295 bytes) in C:\inetpub\Intranet_Local\test.php on line 16
>>
>>
>>
>>
>>
>> Keith Davis (214) 906-5183
>>
>> -----Original Message-----
>> From: Pierre Joye [mailto:pierre.php@gmail.com]
>> Sent: Friday, February 05, 2010 1:55 PM
>> To: Keith Davis
>> Cc: Robert; php-windows@lists.php.net
>> Subject: Re: [PHP-WIN] What about php 5.3 and printers or
>> PHP_PRINTER.DLL ?
>>
>> hi,
>>
>> you can find them now on, for VC8 x86 builds:
>>
>> -
>> http://downloads.php.net/pierre/php_printer-svn-20100205-5.3 -vc9-x86.z
>> ip
>> -
>> http://downloads.php.net/pierre/php_printer-svn-20100205-5.3 -nts-vc9-x
>> 86
>> .zip
>>
>> I will do the VC6 version next week.
>>
>> Cheers,
>>
>> On Fri, Feb 5, 2010 at 4:16 PM, Keith Davis
>>
>> wrote:
>>> Ok, this is the source, correct?
>>>
>>> http://svn.php.net/viewvc/pecl/printer/
>>>
>>> Can't seem to figure out how to compile it.
>>>
>>>
>>>
>>> Keith Davis (214) 906-5183
>>>
>>> -----Original Message-----
>>> From: Keith Davis
>>> Sent: Friday, February 05, 2010 7:50 AM
>>> To: 'Pierre Joye'; 'Robert'
>>> Cc: 'php-windows@lists.php.net'
>>> Subject: RE: [PHP-WIN] What about php 5.3 and printers or
>>> PHP_PRINTER.DLL ?
>>>
>>> If I need to do it myself, where do I get the source?
>>>
>>>
>>>
>>> Keith Davis (214) 906-5183
>>>
>>> -----Original Message-----
>>> From: Keith Davis
>>> Sent: Friday, February 05, 2010 7:50 AM
>>> To: 'Pierre Joye'; Robert
>>> Cc: php-windows@lists.php.net
>>> Subject: RE: [PHP-WIN] What about php 5.3 and printers or
>>> PHP_PRINTER.DLL ?
>>>
>>> I need this for 5.3.1. Can you compile it for me? I've compiled PHP
>>> once (we're using MS SQL Server Driver For PHP, had to compile for
>>> 5.3), but I'm very shaky about it.
>>>
>>>
>>>
>>> Keith Davis (214) 906-5183
>>>
>>> -----Original Message-----
>>> From: Pierre Joye [mailto:pierre.php@gmail.com]
>>> Sent: Saturday, January 30, 2010 12:28 PM
>>> To: Robert
>>> Cc: php-windows@lists.php.net
>>> Subject: Re: [PHP-WIN] What about php 5.3 and printers or
>>> PHP_PRINTER.DLL ?
>>>
>>> hi,
>>>
>>> On Sat, Jan 30, 2010 at 6:43 PM, Robert wrote:
>>>
>>>> Is still possible to print from php scripts directly to server's
>>>> attached printers?
>>>> (here it is php for windows, so this question is intended as to
>>>> print
>>
>>>> on a windows server WAMP)
>>>>
>>>> Thank you for any update.
>>>>
>>>> A related curiosity is about PHP_PRINTER.DLL. Has that dll been
>>> abandoned?
>>>>
>>>> Mr. Pierre Joye is publishing one intended (seems) to fit on php
>>>> 5.2.8
>>>
>>>> http://downloads.php.net/pierre/
>>>
>>> Pierre works too ;)
>>>
>>>> but using it with last apache makes that extension to not be loaded
>>>> (checked on apache error log). So playing with search engines i've
>>>> found (looks like) that the higher php version usable with
>>>> php_printer.dll is
>>>>
>>>> PHP 5.2.8 with pecl for PHP 5.2.6
>>>> http://us2.php.net/get/pecl-5.2.6-Win32.zip/from/a/mirror
>>>>
>>>> it does work, already verified.
>>>
>>> It should work with 5.2.6 and later.
>>>
>>>> Yes, cool! ... But the behaviour is that this does not allow me to
>>>> upgrade MySQL. (* see at bottom)
>>>
>>>> "Your PHP MySQL library version 5.0.51a differs from your MySQL
>>>> server
>>>
>>>> version 5.1.xx. This may cause unpredictable behavior"
>>>
>>> It should work just fine.
>>>
>>>> Thank you for any help or tip on how to upgrade PHP and still be
>>>> able
>>
>>>> to print directly to server's attached printers from php scripts.
>>>
>>> Do you need printer for 5.3? I did not try to compile it lately but
>>> it
>>
>>> should be possible.
>>>
>>> Cheers,
>>> --
>>> Pierre
>>>
>>> @pierrejoye | http://blog.thepimp.net | http://www.libgd.org
>>>
>>> --
>>> PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit:
>>> http://www.php.net/unsub.php
>>>
>>>
>>> This message (including any attachments) may contain confidential or
>> otherwise privileged information and is intended only for the
>> individual(s) to which it is addressed. If you are not the named
>> addressee you should not disseminate, distribute or copy this e-mail.
>> Please notify the sender immediately by e-mail if you have received
>> this e-mail by mistake and delete this e-mail from your system. E-mail
>
>> transmission cannot be guaranteed to be secured or error-free as
>> information could be intercepted, corrupted, lost, destroyed, arrive
>> late or incomplete, or contain viruses. The sender therefore does not
>> accept liability for any errors or omissions in the contents of this
>> message or that arise as a result of e-mail transmission. If
>> verification is required please request a hard-copy version from the
>> sender.
>>>
>>> www.pridedallas.com
>>>
>>>
>>
>>
>>
>> --
>> Pierre
>>
>> @pierrejoye | http://blog.thepimp.net | http://www.libgd.org
>>
>
>
>
> --
> Pierre
>
> @pierrejoye | http://blog.thepimp.net | http://www.libgd.org
>



--
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

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

RE: What about php 5.3 and printers or PHP_PRINTER.DLL ?

am 05.02.2010 22:10:32 von Keith Davis

Nope. Still errors out.=20



Keith Davis (214) 906-5183

-----Original Message-----
From: Pierre Joye [mailto:pierre.php@gmail.com]=20
Sent: Friday, February 05, 2010 3:06 PM
To: Keith Davis
Cc: Robert; php-windows@lists.php.net
Subject: Re: [PHP-WIN] What about php 5.3 and printers or
PHP_PRINTER.DLL ?

disable the memory limit. You can't set that amount of memory using a
32bit integer (which is the limit for php).

On Fri, Feb 5, 2010 at 10:01 PM, Keith Davis
wrote:
> Well, the reason why I didn't try that is per a forum post I found,=20
> that number (4294967295 bytes) is 4GB of RAM, the maximum allowed on a

> 32 bit system. That the problem is something else. Just for kicks, I=20
> increased it to 4GB, and it still fails.
>
>
>
> Keith Davis (214) 906-5183
>
> -----Original Message-----
> From: Pierre Joye [mailto:pierre.php@gmail.com]
> Sent: Friday, February 05, 2010 2:44 PM
> To: Keith Davis
> Cc: Robert; php-windows@lists.php.net
> Subject: Re: [PHP-WIN] What about php 5.3 and printers or=20
> PHP_PRINTER.DLL ?
>
> hi,
>
> That's a pretty obvious error no? :)
>
> Increase your memory limit and you should be fine.
>
> Cheers,
>
> On Fri, Feb 5, 2010 at 9:36 PM, Keith Davis=20
>
> wrote:
>> Ugh, apparently it can find the printer (initially, I had the syntax=20
>> incorrect), but now I get this error message:
>>
>> $h =3D printer_open('\\\\server05\\Auth');
>>
>> PHP Fatal error: Out of memory (allocated 1310720) (tried to allocate
>> 4294967295 bytes) in C:\inetpub\Intranet_Local\test.php on line 16
>>
>>
>>
>>
>>
>> Keith Davis (214) 906-5183
>>
>> -----Original Message-----
>> From: Pierre Joye [mailto:pierre.php@gmail.com]
>> Sent: Friday, February 05, 2010 1:55 PM
>> To: Keith Davis
>> Cc: Robert; php-windows@lists.php.net
>> Subject: Re: [PHP-WIN] What about php 5.3 and printers or=20
>> PHP_PRINTER.DLL ?
>>
>> hi,
>>
>> you can find them now on, for VC8 x86 builds:
>>
>> -
>> http://downloads.php.net/pierre/php_printer-svn-20100205-5.3 -vc9-x86.
>> z
>> ip
>> -
>> http://downloads.php.net/pierre/php_printer-svn-20100205-5.3 -nts-vc9-
>> x
>> 86
>> .zip
>>
>> I will do the VC6 version next week.
>>
>> Cheers,
>>
>> On Fri, Feb 5, 2010 at 4:16 PM, Keith Davis=20
>>
>> wrote:
>>> Ok, this is the source, correct?
>>>
>>> http://svn.php.net/viewvc/pecl/printer/
>>>
>>> Can't seem to figure out how to compile it.
>>>
>>>
>>>
>>> Keith Davis (214) 906-5183
>>>
>>> -----Original Message-----
>>> From: Keith Davis
>>> Sent: Friday, February 05, 2010 7:50 AM
>>> To: 'Pierre Joye'; 'Robert'
>>> Cc: 'php-windows@lists.php.net'
>>> Subject: RE: [PHP-WIN] What about php 5.3 and printers or=20
>>> PHP_PRINTER.DLL ?
>>>
>>> If I need to do it myself, where do I get the source?
>>>
>>>
>>>
>>> Keith Davis (214) 906-5183
>>>
>>> -----Original Message-----
>>> From: Keith Davis
>>> Sent: Friday, February 05, 2010 7:50 AM
>>> To: 'Pierre Joye'; Robert
>>> Cc: php-windows@lists.php.net
>>> Subject: RE: [PHP-WIN] What about php 5.3 and printers or=20
>>> PHP_PRINTER.DLL ?
>>>
>>> I need this for 5.3.1. Can you compile it for me? I've compiled PHP=20
>>> once (we're using MS SQL Server Driver For PHP, had to compile for=20
>>> 5.3), but I'm very shaky about it.
>>>
>>>
>>>
>>> Keith Davis (214) 906-5183
>>>
>>> -----Original Message-----
>>> From: Pierre Joye [mailto:pierre.php@gmail.com]
>>> Sent: Saturday, January 30, 2010 12:28 PM
>>> To: Robert
>>> Cc: php-windows@lists.php.net
>>> Subject: Re: [PHP-WIN] What about php 5.3 and printers or=20
>>> PHP_PRINTER.DLL ?
>>>
>>> hi,
>>>
>>> On Sat, Jan 30, 2010 at 6:43 PM, Robert
wrote:
>>>
>>>> Is still possible to print from php scripts directly to server's=20
>>>> attached printers?
>>>> (here it is php for windows, so this question is intended as to=20
>>>> print
>>
>>>> on a windows server WAMP)
>>>>
>>>> Thank you for any update.
>>>>
>>>> A related curiosity is about PHP_PRINTER.DLL. Has that dll been
>>> abandoned?
>>>>
>>>> Mr. Pierre Joye is publishing one intended (seems) to fit on php
>>>> 5.2.8
>>>
>>>> http://downloads.php.net/pierre/
>>>
>>> Pierre works too ;)
>>>
>>>> but using it with last apache makes that extension to not be loaded

>>>> (checked on apache error log). So playing with search engines i've=20
>>>> found (looks like) that the higher php version usable with=20
>>>> php_printer.dll is
>>>>
>>>> PHP 5.2.8 with pecl for PHP 5.2.6
>>>> http://us2.php.net/get/pecl-5.2.6-Win32.zip/from/a/mirror
>>>>
>>>> it does work, already verified.
>>>
>>> It should work with 5.2.6 and later.
>>>
>>>> Yes, cool! ... But the behaviour is that this does not allow me to=20
>>>> upgrade MySQL. (* see at bottom)
>>>
>>>> "Your PHP MySQL library version 5.0.51a differs from your MySQL=20
>>>> server
>>>
>>>> version 5.1.xx. This may cause unpredictable behavior"
>>>
>>> It should work just fine.
>>>
>>>> Thank you for any help or tip on how to upgrade PHP and still be=20
>>>> able
>>
>>>> to print directly to server's attached printers from php scripts.
>>>
>>> Do you need printer for 5.3? I did not try to compile it lately but=20
>>> it
>>
>>> should be possible.
>>>
>>> Cheers,
>>> --
>>> Pierre
>>>
>>> @pierrejoye | http://blog.thepimp.net | http://www.libgd.org
>>>
>>> --
>>> PHP Windows Mailing List (http://www.php.net/) To unsubscribe,
visit:
>>> http://www.php.net/unsub.php
>>>
>>>
>>> This message (including any attachments) may contain confidential or
>> otherwise privileged information and is intended only for the
>> individual(s) to which it is addressed. If you are not the named=20
>> addressee you should not disseminate, distribute or copy this e-mail.
>> Please notify the sender immediately by e-mail if you have received=20
>> this e-mail by mistake and delete this e-mail from your system.=20
>> E-mail
>
>> transmission cannot be guaranteed to be secured or error-free as=20
>> information could be intercepted, corrupted, lost, destroyed, arrive=20
>> late or incomplete, or contain viruses. The sender therefore does not

>> accept liability for any errors or omissions in the contents of this=20
>> message or that arise as a result of e-mail transmission. If=20
>> verification is required please request a hard-copy version from the=20
>> sender.
>>>
>>> www.pridedallas.com
>>>
>>>
>>
>>
>>
>> --
>> Pierre
>>
>> @pierrejoye | http://blog.thepimp.net | http://www.libgd.org
>>
>
>
>
> --
> Pierre
>
> @pierrejoye | http://blog.thepimp.net | http://www.libgd.org
>



--
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

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

RE: What about php 5.3 and printers or PHP_PRINTER.DLL ?

am 05.02.2010 22:16:49 von Keith Davis

I found a post that said to set fastcgi.impersonate =3D 0 to fix this
problem. It did.=20

Can someone clarify what that setting does?=20



Keith Davis (214) 906-5183

-----Original Message-----
From: Keith Davis [mailto:keithdavis@pridedallas.com]=20
Sent: Friday, February 05, 2010 3:11 PM
To: Pierre Joye
Cc: Robert; php-windows@lists.php.net
Subject: RE: [PHP-WIN] What about php 5.3 and printers or
PHP_PRINTER.DLL ?

Nope. Still errors out.=20



Keith Davis (214) 906-5183

-----Original Message-----
From: Pierre Joye [mailto:pierre.php@gmail.com]
Sent: Friday, February 05, 2010 3:06 PM
To: Keith Davis
Cc: Robert; php-windows@lists.php.net
Subject: Re: [PHP-WIN] What about php 5.3 and printers or
PHP_PRINTER.DLL ?

disable the memory limit. You can't set that amount of memory using a
32bit integer (which is the limit for php).

On Fri, Feb 5, 2010 at 10:01 PM, Keith Davis
wrote:
> Well, the reason why I didn't try that is per a forum post I found,=20
> that number (4294967295 bytes) is 4GB of RAM, the maximum allowed on a

> 32 bit system. That the problem is something else. Just for kicks, I=20
> increased it to 4GB, and it still fails.
>
>
>
> Keith Davis (214) 906-5183
>
> -----Original Message-----
> From: Pierre Joye [mailto:pierre.php@gmail.com]
> Sent: Friday, February 05, 2010 2:44 PM
> To: Keith Davis
> Cc: Robert; php-windows@lists.php.net
> Subject: Re: [PHP-WIN] What about php 5.3 and printers or=20
> PHP_PRINTER.DLL ?
>
> hi,
>
> That's a pretty obvious error no? :)
>
> Increase your memory limit and you should be fine.
>
> Cheers,
>
> On Fri, Feb 5, 2010 at 9:36 PM, Keith Davis=20
>
> wrote:
>> Ugh, apparently it can find the printer (initially, I had the syntax=20
>> incorrect), but now I get this error message:
>>
>> $h =3D printer_open('\\\\server05\\Auth');
>>
>> PHP Fatal error: Out of memory (allocated 1310720) (tried to allocate
>> 4294967295 bytes) in C:\inetpub\Intranet_Local\test.php on line 16
>>
>>
>>
>>
>>
>> Keith Davis (214) 906-5183
>>
>> -----Original Message-----
>> From: Pierre Joye [mailto:pierre.php@gmail.com]
>> Sent: Friday, February 05, 2010 1:55 PM
>> To: Keith Davis
>> Cc: Robert; php-windows@lists.php.net
>> Subject: Re: [PHP-WIN] What about php 5.3 and printers or=20
>> PHP_PRINTER.DLL ?
>>
>> hi,
>>
>> you can find them now on, for VC8 x86 builds:
>>
>> -
>> http://downloads.php.net/pierre/php_printer-svn-20100205-5.3 -vc9-x86.
>> z
>> ip
>> -
>> http://downloads.php.net/pierre/php_printer-svn-20100205-5.3 -nts-vc9-
>> x
>> 86
>> .zip
>>
>> I will do the VC6 version next week.
>>
>> Cheers,
>>
>> On Fri, Feb 5, 2010 at 4:16 PM, Keith Davis=20
>>
>> wrote:
>>> Ok, this is the source, correct?
>>>
>>> http://svn.php.net/viewvc/pecl/printer/
>>>
>>> Can't seem to figure out how to compile it.
>>>
>>>
>>>
>>> Keith Davis (214) 906-5183
>>>
>>> -----Original Message-----
>>> From: Keith Davis
>>> Sent: Friday, February 05, 2010 7:50 AM
>>> To: 'Pierre Joye'; 'Robert'
>>> Cc: 'php-windows@lists.php.net'
>>> Subject: RE: [PHP-WIN] What about php 5.3 and printers or=20
>>> PHP_PRINTER.DLL ?
>>>
>>> If I need to do it myself, where do I get the source?
>>>
>>>
>>>
>>> Keith Davis (214) 906-5183
>>>
>>> -----Original Message-----
>>> From: Keith Davis
>>> Sent: Friday, February 05, 2010 7:50 AM
>>> To: 'Pierre Joye'; Robert
>>> Cc: php-windows@lists.php.net
>>> Subject: RE: [PHP-WIN] What about php 5.3 and printers or=20
>>> PHP_PRINTER.DLL ?
>>>
>>> I need this for 5.3.1. Can you compile it for me? I've compiled PHP=20
>>> once (we're using MS SQL Server Driver For PHP, had to compile for=20
>>> 5.3), but I'm very shaky about it.
>>>
>>>
>>>
>>> Keith Davis (214) 906-5183
>>>
>>> -----Original Message-----
>>> From: Pierre Joye [mailto:pierre.php@gmail.com]
>>> Sent: Saturday, January 30, 2010 12:28 PM
>>> To: Robert
>>> Cc: php-windows@lists.php.net
>>> Subject: Re: [PHP-WIN] What about php 5.3 and printers or=20
>>> PHP_PRINTER.DLL ?
>>>
>>> hi,
>>>
>>> On Sat, Jan 30, 2010 at 6:43 PM, Robert
wrote:
>>>
>>>> Is still possible to print from php scripts directly to server's=20
>>>> attached printers?
>>>> (here it is php for windows, so this question is intended as to=20
>>>> print
>>
>>>> on a windows server WAMP)
>>>>
>>>> Thank you for any update.
>>>>
>>>> A related curiosity is about PHP_PRINTER.DLL. Has that dll been
>>> abandoned?
>>>>
>>>> Mr. Pierre Joye is publishing one intended (seems) to fit on php
>>>> 5.2.8
>>>
>>>> http://downloads.php.net/pierre/
>>>
>>> Pierre works too ;)
>>>
>>>> but using it with last apache makes that extension to not be loaded

>>>> (checked on apache error log). So playing with search engines i've=20
>>>> found (looks like) that the higher php version usable with=20
>>>> php_printer.dll is
>>>>
>>>> PHP 5.2.8 with pecl for PHP 5.2.6
>>>> http://us2.php.net/get/pecl-5.2.6-Win32.zip/from/a/mirror
>>>>
>>>> it does work, already verified.
>>>
>>> It should work with 5.2.6 and later.
>>>
>>>> Yes, cool! ... But the behaviour is that this does not allow me to=20
>>>> upgrade MySQL. (* see at bottom)
>>>
>>>> "Your PHP MySQL library version 5.0.51a differs from your MySQL=20
>>>> server
>>>
>>>> version 5.1.xx. This may cause unpredictable behavior"
>>>
>>> It should work just fine.
>>>
>>>> Thank you for any help or tip on how to upgrade PHP and still be=20
>>>> able
>>
>>>> to print directly to server's attached printers from php scripts.
>>>
>>> Do you need printer for 5.3? I did not try to compile it lately but=20
>>> it
>>
>>> should be possible.
>>>
>>> Cheers,
>>> --
>>> Pierre
>>>
>>> @pierrejoye | http://blog.thepimp.net | http://www.libgd.org
>>>
>>> --
>>> PHP Windows Mailing List (http://www.php.net/) To unsubscribe,
visit:
>>> http://www.php.net/unsub.php
>>>
>>>
>>> This message (including any attachments) may contain confidential or
>> otherwise privileged information and is intended only for the
>> individual(s) to which it is addressed. If you are not the named=20
>> addressee you should not disseminate, distribute or copy this e-mail.
>> Please notify the sender immediately by e-mail if you have received=20
>> this e-mail by mistake and delete this e-mail from your system.
>> E-mail
>
>> transmission cannot be guaranteed to be secured or error-free as=20
>> information could be intercepted, corrupted, lost, destroyed, arrive=20
>> late or incomplete, or contain viruses. The sender therefore does not

>> accept liability for any errors or omissions in the contents of this=20
>> message or that arise as a result of e-mail transmission. If=20
>> verification is required please request a hard-copy version from the=20
>> sender.
>>>
>>> www.pridedallas.com
>>>
>>>
>>
>>
>>
>> --
>> Pierre
>>
>> @pierrejoye | http://blog.thepimp.net | http://www.libgd.org
>>
>
>
>
> --
> Pierre
>
> @pierrejoye | http://blog.thepimp.net | http://www.libgd.org
>



--
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

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


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

Re: What about php 5.3 and printers or PHP_PRINTER.DLL ?

am 05.02.2010 22:26:18 von Pierre Joye

On Fri, Feb 5, 2010 at 10:16 PM, Keith Davis wrote:
> I found a post that said to set fastcgi.impersonate = 0 to fix this
> problem. It did.
>
> Can someone clarify what that setting does?

It allows a server to run php-cgi under a given user. But that should
not affect printer at all, except if the user does not have the
permission to use this printer.

Cheers,
--
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

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

RE: What about php 5.3 and printers or PHP_PRINTER.DLL ?

am 05.02.2010 22:27:52 von Keith Davis

How is that user specified?



Keith Davis (214) 906-5183

-----Original Message-----
From: Pierre Joye [mailto:pierre.php@gmail.com]=20
Sent: Friday, February 05, 2010 3:26 PM
To: Keith Davis
Cc: Robert; php-windows@lists.php.net
Subject: Re: [PHP-WIN] What about php 5.3 and printers or
PHP_PRINTER.DLL ?

On Fri, Feb 5, 2010 at 10:16 PM, Keith Davis
wrote:
> I found a post that said to set fastcgi.impersonate =3D 0 to fix this=20
> problem. It did.
>
> Can someone clarify what that setting does?

It allows a server to run php-cgi under a given user. But that should
not affect printer at all, except if the user does not have the
permission to use this printer.

Cheers,
--
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

This message (including any attachments) may contain confidential or =
otherwise privileged information and is intended only for the =
individual(s) to which it is addressed. If you are not the named =
addressee you should not disseminate, distribute or copy this e-mail. =
Please notify the sender immediately by e-mail if you have received this =
e-mail by mistake and delete this e-mail from your system. E-mail =
transmission cannot be guaranteed to be secured or error-free as =
information could be intercepted, corrupted, lost, destroyed, arrive =
late or incomplete, or contain viruses. The sender therefore does not =
accept liability for any errors or omissions in the contents of this =
message or that arise as a result of e-mail transmission. If =
verification is required please request a hard-copy version from the =
sender.

www.pridedallas.com


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

Re: What about php 5.3 and printers or PHP_PRINTER.DLL ?

am 05.02.2010 22:30:14 von Pierre Joye

which webserver do you use?

On Fri, Feb 5, 2010 at 10:27 PM, Keith Davis w=
rote:
> How is that user specified?
>
>
>
> Keith Davis (214) 906-5183
>
> -----Original Message-----
> From: Pierre Joye [mailto:pierre.php@gmail.com]
> Sent: Friday, February 05, 2010 3:26 PM
> To: Keith Davis
> Cc: Robert; php-windows@lists.php.net
> Subject: Re: [PHP-WIN] What about php 5.3 and printers or
> PHP_PRINTER.DLL ?
>
> On Fri, Feb 5, 2010 at 10:16 PM, Keith Davis
> wrote:
>> I found a post that said to set fastcgi.impersonate =3D 0 to fix this
>> problem. It did.
>>
>> Can someone clarify what that setting does?
>
> It allows a server to run php-cgi under a given user. But that should
> not affect printer at all, except if the user does not have the
> permission to use this printer.
>
> Cheers,
> --
> Pierre
>
> @pierrejoye | http://blog.thepimp.net | http://www.libgd.org
>
> This message (including any attachments) may contain confidential or othe=
rwise privileged information and is intended only for the individual(s) to =
which it is addressed. If you are not the named addressee you should not di=
sseminate, distribute or copy this e-mail. Please notify the sender immedia=
tely by e-mail if you have received this e-mail by mistake and delete this =
e-mail from your system. E-mail transmission cannot be guaranteed to be sec=
ured or error-free as information could be intercepted, corrupted, lost, de=
stroyed, arrive late or incomplete, or contain viruses. The sender therefor=
e does not accept liability for any errors or omissions in the contents of =
this message or that arise as a result of e-mail transmission. If verificat=
ion is required please request a hard-copy version from the sender.
>
> www.pridedallas.com
>
>



--=20
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

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

RE: What about php 5.3 and printers or PHP_PRINTER.DLL ?

am 05.02.2010 22:31:50 von Keith Davis

IIS 7 on my dev machine, which is what I am testing on. The prod server
is IIS 6.


Keith Davis (214) 906-5183

-----Original Message-----
From: Pierre Joye [mailto:pierre.php@gmail.com]=20
Sent: Friday, February 05, 2010 3:30 PM
To: Keith Davis
Cc: Robert; php-windows@lists.php.net
Subject: Re: [PHP-WIN] What about php 5.3 and printers or
PHP_PRINTER.DLL ?

which webserver do you use?

On Fri, Feb 5, 2010 at 10:27 PM, Keith Davis
wrote:
> How is that user specified?
>
>
>
> Keith Davis (214) 906-5183
>
> -----Original Message-----
> From: Pierre Joye [mailto:pierre.php@gmail.com]
> Sent: Friday, February 05, 2010 3:26 PM
> To: Keith Davis
> Cc: Robert; php-windows@lists.php.net
> Subject: Re: [PHP-WIN] What about php 5.3 and printers or=20
> PHP_PRINTER.DLL ?
>
> On Fri, Feb 5, 2010 at 10:16 PM, Keith Davis=20
> wrote:
>> I found a post that said to set fastcgi.impersonate =3D 0 to fix this =

>> problem. It did.
>>
>> Can someone clarify what that setting does?
>
> It allows a server to run php-cgi under a given user. But that should=20
> not affect printer at all, except if the user does not have the=20
> permission to use this printer.
>
> Cheers,
> --
> Pierre
>
> @pierrejoye | http://blog.thepimp.net | http://www.libgd.org
>
> This message (including any attachments) may contain confidential or
otherwise privileged information and is intended only for the
individual(s) to which it is addressed. If you are not the named
addressee you should not disseminate, distribute or copy this e-mail.
Please notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system. E-mail
transmission cannot be guaranteed to be secured or error-free as
information could be intercepted, corrupted, lost, destroyed, arrive
late or incomplete, or contain viruses. The sender therefore does not
accept liability for any errors or omissions in the contents of this
message or that arise as a result of e-mail transmission. If
verification is required please request a hard-copy version from the
sender.
>
> www.pridedallas.com
>
>



--
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

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

RE: What about php 5.3 and printers or PHP_PRINTER.DLL ?

am 05.02.2010 22:38:15 von Ruslan Yakushev

The PHP docs has information on how impersonation is configured on IIS6: ht=
tp://www.php.net/manual/en/install.windows.iis6.php=20

and on IIS7 : http://www.php.net/manual/en/install.windows.iis7.php . Look =
for the section called "Impersonation and File System Access".

> -----Original Message-----
> From: Keith Davis [mailto:keithdavis@pridedallas.com]
> Sent: Friday, February 05, 2010 1:32 PM
> To: Pierre Joye
> Cc: Robert; php-windows@lists.php.net
> Subject: RE: [PHP-WIN] What about php 5.3 and printers or
> PHP_PRINTER.DLL ?
>=20
> IIS 7 on my dev machine, which is what I am testing on. The prod server
> is IIS 6.
>=20
>=20
> Keith Davis (214) 906-5183
>=20
> -----Original Message-----
> From: Pierre Joye [mailto:pierre.php@gmail.com]
> Sent: Friday, February 05, 2010 3:30 PM
> To: Keith Davis
> Cc: Robert; php-windows@lists.php.net
> Subject: Re: [PHP-WIN] What about php 5.3 and printers or
> PHP_PRINTER.DLL ?
>=20
> which webserver do you use?
>=20
> On Fri, Feb 5, 2010 at 10:27 PM, Keith Davis
> wrote:
> > How is that user specified?
> >
> >
> >
> > Keith Davis (214) 906-5183
> >
> > -----Original Message-----
> > From: Pierre Joye [mailto:pierre.php@gmail.com]
> > Sent: Friday, February 05, 2010 3:26 PM
> > To: Keith Davis
> > Cc: Robert; php-windows@lists.php.net
> > Subject: Re: [PHP-WIN] What about php 5.3 and printers or
> > PHP_PRINTER.DLL ?
> >
> > On Fri, Feb 5, 2010 at 10:16 PM, Keith Davis
> > wrote:
> >> I found a post that said to set fastcgi.impersonate =3D 0 to fix this
> >> problem. It did.
> >>
> >> Can someone clarify what that setting does?
> >
> > It allows a server to run php-cgi under a given user. But that should
> > not affect printer at all, except if the user does not have the
> > permission to use this printer.
> >
> > Cheers,
> > --
> > Pierre
> >
> > @pierrejoye | http://blog.thepimp.net | http://www.libgd.org
> >
> > This message (including any attachments) may contain confidential or
> otherwise privileged information and is intended only for the
> individual(s) to which it is addressed. If you are not the named
> addressee you should not disseminate, distribute or copy this e-mail.
> Please notify the sender immediately by e-mail if you have received
> this
> e-mail by mistake and delete this e-mail from your system. E-mail
> transmission cannot be guaranteed to be secured or error-free as
> information could be intercepted, corrupted, lost, destroyed, arrive
> late or incomplete, or contain viruses. The sender therefore does not
> accept liability for any errors or omissions in the contents of this
> message or that arise as a result of e-mail transmission. If
> verification is required please request a hard-copy version from the
> sender.
> >
> > www.pridedallas.com
> >
> >
>=20
>=20
>=20
> --
> Pierre
>=20
> @pierrejoye | http://blog.thepimp.net | http://www.libgd.org
>=20
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>=20


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

RE: What about php 5.3 and printers or PHP_PRINTER.DLL ?

am 05.02.2010 22:39:21 von Keith Davis

Oh, I get it. Well, that is a problem. We need that enabled. We are
writing to files across the network in some cases. So, what's the
solution. I know my user account has access to that printer.=20



Keith Davis (214) 906-5183

-----Original Message-----
From: Pierre Joye [mailto:pierre.php@gmail.com]=20
Sent: Friday, February 05, 2010 3:30 PM
To: Keith Davis
Cc: Robert; php-windows@lists.php.net
Subject: Re: [PHP-WIN] What about php 5.3 and printers or
PHP_PRINTER.DLL ?

which webserver do you use?

On Fri, Feb 5, 2010 at 10:27 PM, Keith Davis
wrote:
> How is that user specified?
>
>
>
> Keith Davis (214) 906-5183
>
> -----Original Message-----
> From: Pierre Joye [mailto:pierre.php@gmail.com]
> Sent: Friday, February 05, 2010 3:26 PM
> To: Keith Davis
> Cc: Robert; php-windows@lists.php.net
> Subject: Re: [PHP-WIN] What about php 5.3 and printers or=20
> PHP_PRINTER.DLL ?
>
> On Fri, Feb 5, 2010 at 10:16 PM, Keith Davis=20
> wrote:
>> I found a post that said to set fastcgi.impersonate =3D 0 to fix this =

>> problem. It did.
>>
>> Can someone clarify what that setting does?
>
> It allows a server to run php-cgi under a given user. But that should=20
> not affect printer at all, except if the user does not have the=20
> permission to use this printer.
>
> Cheers,
> --
> Pierre
>
> @pierrejoye | http://blog.thepimp.net | http://www.libgd.org
>
> This message (including any attachments) may contain confidential or
otherwise privileged information and is intended only for the
individual(s) to which it is addressed. If you are not the named
addressee you should not disseminate, distribute or copy this e-mail.
Please notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system. E-mail
transmission cannot be guaranteed to be secured or error-free as
information could be intercepted, corrupted, lost, destroyed, arrive
late or incomplete, or contain viruses. The sender therefore does not
accept liability for any errors or omissions in the contents of this
message or that arise as a result of e-mail transmission. If
verification is required please request a hard-copy version from the
sender.
>
> www.pridedallas.com
>
>



--
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

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

RE: What about php 5.3 and printers or PHP_PRINTER.DLL ?

am 05.02.2010 22:42:04 von Venkat Raman Don

When you have fastcgi.impersonate set to 1, IIS tries to impersonate the se=
curity token of the calling client. This means, for example if an IIS site =
has 'Anonymous' authentication off and let's say Windows authentication on,=
'Windows' authenticated user will be impersonated by PHP main thread and a=
ll the files and other system resource will be accessed using the authentic=
ated Windows user security tokens. So if that user/credential doesn't have =
permission to access a resource it will fail.

In your case it seems after fastcgi.imersonate is set, the credential/secut=
rity token impersonated of the user has credential to access the printer.

Hope this helps.
Thanks,
Don.

-----Original Message-----
From: Keith Davis [mailto:keithdavis@pridedallas.com]=20
Sent: Friday, February 05, 2010 1:32 PM
To: Pierre Joye
Cc: Robert; php-windows@lists.php.net
Subject: RE: [PHP-WIN] What about php 5.3 and printers or PHP_PRINTER.DLL ?

IIS 7 on my dev machine, which is what I am testing on. The prod server is =
IIS 6.


Keith Davis (214) 906-5183

-----Original Message-----
From: Pierre Joye [mailto:pierre.php@gmail.com]
Sent: Friday, February 05, 2010 3:30 PM
To: Keith Davis
Cc: Robert; php-windows@lists.php.net
Subject: Re: [PHP-WIN] What about php 5.3 and printers or PHP_PRINTER.DLL ?

which webserver do you use?

On Fri, Feb 5, 2010 at 10:27 PM, Keith Davis w=
rote:
> How is that user specified?
>
>
>
> Keith Davis (214) 906-5183
>
> -----Original Message-----
> From: Pierre Joye [mailto:pierre.php@gmail.com]
> Sent: Friday, February 05, 2010 3:26 PM
> To: Keith Davis
> Cc: Robert; php-windows@lists.php.net
> Subject: Re: [PHP-WIN] What about php 5.3 and printers or=20
> PHP_PRINTER.DLL ?
>
> On Fri, Feb 5, 2010 at 10:16 PM, Keith Davis=20
> wrote:
>> I found a post that said to set fastcgi.impersonate =3D 0 to fix this=20
>> problem. It did.
>>
>> Can someone clarify what that setting does?
>
> It allows a server to run php-cgi under a given user. But that should=20
> not affect printer at all, except if the user does not have the=20
> permission to use this printer.
>
> Cheers,
> --
> Pierre
>
> @pierrejoye | http://blog.thepimp.net | http://www.libgd.org
>
> This message (including any attachments) may contain confidential or
otherwise privileged information and is intended only for the
individual(s) to which it is addressed. If you are not the named addressee =
you should not disseminate, distribute or copy this e-mail.
Please notify the sender immediately by e-mail if you have received this e-=
mail by mistake and delete this e-mail from your system. E-mail transmissio=
n cannot be guaranteed to be secured or error-free as information could be =
intercepted, corrupted, lost, destroyed, arrive late or incomplete, or cont=
ain viruses. The sender therefore does not accept liability for any errors =
or omissions in the contents of this message or that arise as a result of e=
-mail transmission. If verification is required please request a hard-copy =
version from the sender.
>
> www.pridedallas.com
>
>



--
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

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



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

RE: What about php 5.3 and printers or PHP_PRINTER.DLL ?

am 05.02.2010 22:43:23 von Keith Davis

No, when I turn it off it works. When I turn it back on (the way we had
it before, and need it), it generates the error.=20



Keith Davis (214) 906-5183

-----Original Message-----
From: Venkat Raman Don [mailto:Don.Raman@microsoft.com]=20
Sent: Friday, February 05, 2010 3:42 PM
To: Keith Davis; Pierre Joye
Cc: Robert; php-windows@lists.php.net
Subject: RE: [PHP-WIN] What about php 5.3 and printers or
PHP_PRINTER.DLL ?

When you have fastcgi.impersonate set to 1, IIS tries to impersonate the
security token of the calling client. This means, for example if an IIS
site has 'Anonymous' authentication off and let's say Windows
authentication on, 'Windows' authenticated user will be impersonated by
PHP main thread and all the files and other system resource will be
accessed using the authenticated Windows user security tokens. So if
that user/credential doesn't have permission to access a resource it
will fail.

In your case it seems after fastcgi.imersonate is set, the
credential/secutrity token impersonated of the user has credential to
access the printer.

Hope this helps.
Thanks,
Don.

-----Original Message-----
From: Keith Davis [mailto:keithdavis@pridedallas.com]
Sent: Friday, February 05, 2010 1:32 PM
To: Pierre Joye
Cc: Robert; php-windows@lists.php.net
Subject: RE: [PHP-WIN] What about php 5.3 and printers or
PHP_PRINTER.DLL ?

IIS 7 on my dev machine, which is what I am testing on. The prod server
is IIS 6.


Keith Davis (214) 906-5183

-----Original Message-----
From: Pierre Joye [mailto:pierre.php@gmail.com]
Sent: Friday, February 05, 2010 3:30 PM
To: Keith Davis
Cc: Robert; php-windows@lists.php.net
Subject: Re: [PHP-WIN] What about php 5.3 and printers or
PHP_PRINTER.DLL ?

which webserver do you use?

On Fri, Feb 5, 2010 at 10:27 PM, Keith Davis
wrote:
> How is that user specified?
>
>
>
> Keith Davis (214) 906-5183
>
> -----Original Message-----
> From: Pierre Joye [mailto:pierre.php@gmail.com]
> Sent: Friday, February 05, 2010 3:26 PM
> To: Keith Davis
> Cc: Robert; php-windows@lists.php.net
> Subject: Re: [PHP-WIN] What about php 5.3 and printers or=20
> PHP_PRINTER.DLL ?
>
> On Fri, Feb 5, 2010 at 10:16 PM, Keith Davis=20
> wrote:
>> I found a post that said to set fastcgi.impersonate =3D 0 to fix this =

>> problem. It did.
>>
>> Can someone clarify what that setting does?
>
> It allows a server to run php-cgi under a given user. But that should=20
> not affect printer at all, except if the user does not have the=20
> permission to use this printer.
>
> Cheers,
> --
> Pierre
>
> @pierrejoye | http://blog.thepimp.net | http://www.libgd.org
>
> This message (including any attachments) may contain confidential or
otherwise privileged information and is intended only for the
individual(s) to which it is addressed. If you are not the named
addressee you should not disseminate, distribute or copy this e-mail.
Please notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system. E-mail
transmission cannot be guaranteed to be secured or error-free as
information could be intercepted, corrupted, lost, destroyed, arrive
late or incomplete, or contain viruses. The sender therefore does not
accept liability for any errors or omissions in the contents of this
message or that arise as a result of e-mail transmission. If
verification is required please request a hard-copy version from the
sender.
>
> www.pridedallas.com
>
>



--
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

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



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

RE: What about php 5.3 and printers or PHP_PRINTER.DLL ?

am 05.02.2010 22:55:18 von Venkat Raman Don

You will need to give the authenticated user IIS is using (depends on what =
kind of authentication method is set on your site) access to printer in tha=
t case. IIS7 adds a default builtin user account IUSR which is user while r=
unning under anonymous authentication. However it is different on IIS6 whic=
h uses IUSR_machine_name under anonymous authentication. I would say best w=
ay is to run your application under a credential which has access to printe=
r. If you add your local IUSR account to have access to printer, this will =
not work on IIS6 where you will need to give the default user IUSR_machine_=
name access too.

Also, Ruslan sent some good links which explains this impersonation in deta=
il. Look at that for further details.

Thanks,
Don.

-----Original Message-----
From: Keith Davis [mailto:keithdavis@pridedallas.com]=20
Sent: Friday, February 05, 2010 1:43 PM
To: Venkat Raman Don; Pierre Joye
Cc: Robert; php-windows@lists.php.net
Subject: RE: [PHP-WIN] What about php 5.3 and printers or PHP_PRINTER.DLL ?

No, when I turn it off it works. When I turn it back on (the way we had it =
before, and need it), it generates the error.=20



Keith Davis (214) 906-5183

-----Original Message-----
From: Venkat Raman Don [mailto:Don.Raman@microsoft.com]
Sent: Friday, February 05, 2010 3:42 PM
To: Keith Davis; Pierre Joye
Cc: Robert; php-windows@lists.php.net
Subject: RE: [PHP-WIN] What about php 5.3 and printers or PHP_PRINTER.DLL ?

When you have fastcgi.impersonate set to 1, IIS tries to impersonate the se=
curity token of the calling client. This means, for example if an IIS site =
has 'Anonymous' authentication off and let's say Windows authentication on,=
'Windows' authenticated user will be impersonated by PHP main thread and a=
ll the files and other system resource will be accessed using the authentic=
ated Windows user security tokens. So if that user/credential doesn't have =
permission to access a resource it will fail.

In your case it seems after fastcgi.imersonate is set, the credential/secut=
rity token impersonated of the user has credential to access the printer.

Hope this helps.
Thanks,
Don.

-----Original Message-----
From: Keith Davis [mailto:keithdavis@pridedallas.com]
Sent: Friday, February 05, 2010 1:32 PM
To: Pierre Joye
Cc: Robert; php-windows@lists.php.net
Subject: RE: [PHP-WIN] What about php 5.3 and printers or PHP_PRINTER.DLL ?

IIS 7 on my dev machine, which is what I am testing on. The prod server is =
IIS 6.


Keith Davis (214) 906-5183

-----Original Message-----
From: Pierre Joye [mailto:pierre.php@gmail.com]
Sent: Friday, February 05, 2010 3:30 PM
To: Keith Davis
Cc: Robert; php-windows@lists.php.net
Subject: Re: [PHP-WIN] What about php 5.3 and printers or PHP_PRINTER.DLL ?

which webserver do you use?

On Fri, Feb 5, 2010 at 10:27 PM, Keith Davis w=
rote:
> How is that user specified?
>
>
>
> Keith Davis (214) 906-5183
>
> -----Original Message-----
> From: Pierre Joye [mailto:pierre.php@gmail.com]
> Sent: Friday, February 05, 2010 3:26 PM
> To: Keith Davis
> Cc: Robert; php-windows@lists.php.net
> Subject: Re: [PHP-WIN] What about php 5.3 and printers or=20
> PHP_PRINTER.DLL ?
>
> On Fri, Feb 5, 2010 at 10:16 PM, Keith Davis=20
> wrote:
>> I found a post that said to set fastcgi.impersonate =3D 0 to fix this=20
>> problem. It did.
>>
>> Can someone clarify what that setting does?
>
> It allows a server to run php-cgi under a given user. But that should=20
> not affect printer at all, except if the user does not have the=20
> permission to use this printer.
>
> Cheers,
> --
> Pierre
>
> @pierrejoye | http://blog.thepimp.net | http://www.libgd.org
>
> This message (including any attachments) may contain confidential or
otherwise privileged information and is intended only for the
individual(s) to which it is addressed. If you are not the named addressee =
you should not disseminate, distribute or copy this e-mail.
Please notify the sender immediately by e-mail if you have received this e-=
mail by mistake and delete this e-mail from your system. E-mail transmissio=
n cannot be guaranteed to be secured or error-free as information could be =
intercepted, corrupted, lost, destroyed, arrive late or incomplete, or cont=
ain viruses. The sender therefore does not accept liability for any errors =
or omissions in the contents of this message or that arise as a result of e=
-mail transmission. If verification is required please request a hard-copy =
version from the sender.
>
> www.pridedallas.com
>
>



--
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

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



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



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

RE: What about php 5.3 and printers or PHP_PRINTER.DLL ?

am 05.02.2010 22:57:54 von Keith Davis

Out entire site requires authorization to access it (Windows
Authentication used.) I write files to other servers from under these
credentials without any problem. Why would accessing the printer be an
issue?=20



Keith Davis (214) 906-5183

-----Original Message-----
From: Venkat Raman Don [mailto:Don.Raman@microsoft.com]=20
Sent: Friday, February 05, 2010 3:55 PM
To: Keith Davis; Pierre Joye
Cc: Robert; php-windows@lists.php.net
Subject: RE: [PHP-WIN] What about php 5.3 and printers or
PHP_PRINTER.DLL ?

You will need to give the authenticated user IIS is using (depends on
what kind of authentication method is set on your site) access to
printer in that case. IIS7 adds a default builtin user account IUSR
which is user while running under anonymous authentication. However it
is different on IIS6 which uses IUSR_machine_name under anonymous
authentication. I would say best way is to run your application under a
credential which has access to printer. If you add your local IUSR
account to have access to printer, this will not work on IIS6 where you
will need to give the default user IUSR_machine_name access too.

Also, Ruslan sent some good links which explains this impersonation in
detail. Look at that for further details.

Thanks,
Don.

-----Original Message-----
From: Keith Davis [mailto:keithdavis@pridedallas.com]
Sent: Friday, February 05, 2010 1:43 PM
To: Venkat Raman Don; Pierre Joye
Cc: Robert; php-windows@lists.php.net
Subject: RE: [PHP-WIN] What about php 5.3 and printers or
PHP_PRINTER.DLL ?

No, when I turn it off it works. When I turn it back on (the way we had
it before, and need it), it generates the error.=20



Keith Davis (214) 906-5183

-----Original Message-----
From: Venkat Raman Don [mailto:Don.Raman@microsoft.com]
Sent: Friday, February 05, 2010 3:42 PM
To: Keith Davis; Pierre Joye
Cc: Robert; php-windows@lists.php.net
Subject: RE: [PHP-WIN] What about php 5.3 and printers or
PHP_PRINTER.DLL ?

When you have fastcgi.impersonate set to 1, IIS tries to impersonate the
security token of the calling client. This means, for example if an IIS
site has 'Anonymous' authentication off and let's say Windows
authentication on, 'Windows' authenticated user will be impersonated by
PHP main thread and all the files and other system resource will be
accessed using the authenticated Windows user security tokens. So if
that user/credential doesn't have permission to access a resource it
will fail.

In your case it seems after fastcgi.imersonate is set, the
credential/secutrity token impersonated of the user has credential to
access the printer.

Hope this helps.
Thanks,
Don.

-----Original Message-----
From: Keith Davis [mailto:keithdavis@pridedallas.com]
Sent: Friday, February 05, 2010 1:32 PM
To: Pierre Joye
Cc: Robert; php-windows@lists.php.net
Subject: RE: [PHP-WIN] What about php 5.3 and printers or
PHP_PRINTER.DLL ?

IIS 7 on my dev machine, which is what I am testing on. The prod server
is IIS 6.


Keith Davis (214) 906-5183

-----Original Message-----
From: Pierre Joye [mailto:pierre.php@gmail.com]
Sent: Friday, February 05, 2010 3:30 PM
To: Keith Davis
Cc: Robert; php-windows@lists.php.net
Subject: Re: [PHP-WIN] What about php 5.3 and printers or
PHP_PRINTER.DLL ?

which webserver do you use?

On Fri, Feb 5, 2010 at 10:27 PM, Keith Davis
wrote:
> How is that user specified?
>
>
>
> Keith Davis (214) 906-5183
>
> -----Original Message-----
> From: Pierre Joye [mailto:pierre.php@gmail.com]
> Sent: Friday, February 05, 2010 3:26 PM
> To: Keith Davis
> Cc: Robert; php-windows@lists.php.net
> Subject: Re: [PHP-WIN] What about php 5.3 and printers or=20
> PHP_PRINTER.DLL ?
>
> On Fri, Feb 5, 2010 at 10:16 PM, Keith Davis=20
> wrote:
>> I found a post that said to set fastcgi.impersonate =3D 0 to fix this =

>> problem. It did.
>>
>> Can someone clarify what that setting does?
>
> It allows a server to run php-cgi under a given user. But that should=20
> not affect printer at all, except if the user does not have the=20
> permission to use this printer.
>
> Cheers,
> --
> Pierre
>
> @pierrejoye | http://blog.thepimp.net | http://www.libgd.org
>
> This message (including any attachments) may contain confidential or
otherwise privileged information and is intended only for the
individual(s) to which it is addressed. If you are not the named
addressee you should not disseminate, distribute or copy this e-mail.
Please notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system. E-mail
transmission cannot be guaranteed to be secured or error-free as
information could be intercepted, corrupted, lost, destroyed, arrive
late or incomplete, or contain viruses. The sender therefore does not
accept liability for any errors or omissions in the contents of this
message or that arise as a result of e-mail transmission. If
verification is required please request a hard-copy version from the
sender.
>
> www.pridedallas.com
>
>



--
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

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



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



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

RE: What about php 5.3 and printers or PHP_PRINTER.DLL ?

am 05.02.2010 23:04:40 von Venkat Raman Don

If the authorized user has access to printer it should work. BTW, access to=
shared files or network share and printer are two different things. Writin=
g to file share doesn't mean that you can connect to printer too. See if th=
e authorized user can indeed connect to printer.

Thanks,
Don.

-----Original Message-----
From: Keith Davis [mailto:keithdavis@pridedallas.com]=20
Sent: Friday, February 05, 2010 1:58 PM
To: Venkat Raman Don; Pierre Joye
Cc: Robert; php-windows@lists.php.net
Subject: RE: [PHP-WIN] What about php 5.3 and printers or PHP_PRINTER.DLL ?

Out entire site requires authorization to access it (Windows
Authentication used.) I write files to other servers from under these
credentials without any problem. Why would accessing the printer be an
issue?=20



Keith Davis (214) 906-5183

-----Original Message-----
From: Venkat Raman Don [mailto:Don.Raman@microsoft.com]=20
Sent: Friday, February 05, 2010 3:55 PM
To: Keith Davis; Pierre Joye
Cc: Robert; php-windows@lists.php.net
Subject: RE: [PHP-WIN] What about php 5.3 and printers or
PHP_PRINTER.DLL ?

You will need to give the authenticated user IIS is using (depends on
what kind of authentication method is set on your site) access to
printer in that case. IIS7 adds a default builtin user account IUSR
which is user while running under anonymous authentication. However it
is different on IIS6 which uses IUSR_machine_name under anonymous
authentication. I would say best way is to run your application under a
credential which has access to printer. If you add your local IUSR
account to have access to printer, this will not work on IIS6 where you
will need to give the default user IUSR_machine_name access too.

Also, Ruslan sent some good links which explains this impersonation in
detail. Look at that for further details.

Thanks,
Don.

-----Original Message-----
From: Keith Davis [mailto:keithdavis@pridedallas.com]
Sent: Friday, February 05, 2010 1:43 PM
To: Venkat Raman Don; Pierre Joye
Cc: Robert; php-windows@lists.php.net
Subject: RE: [PHP-WIN] What about php 5.3 and printers or
PHP_PRINTER.DLL ?

No, when I turn it off it works. When I turn it back on (the way we had
it before, and need it), it generates the error.=20



Keith Davis (214) 906-5183

-----Original Message-----
From: Venkat Raman Don [mailto:Don.Raman@microsoft.com]
Sent: Friday, February 05, 2010 3:42 PM
To: Keith Davis; Pierre Joye
Cc: Robert; php-windows@lists.php.net
Subject: RE: [PHP-WIN] What about php 5.3 and printers or
PHP_PRINTER.DLL ?

When you have fastcgi.impersonate set to 1, IIS tries to impersonate the
security token of the calling client. This means, for example if an IIS
site has 'Anonymous' authentication off and let's say Windows
authentication on, 'Windows' authenticated user will be impersonated by
PHP main thread and all the files and other system resource will be
accessed using the authenticated Windows user security tokens. So if
that user/credential doesn't have permission to access a resource it
will fail.

In your case it seems after fastcgi.imersonate is set, the
credential/secutrity token impersonated of the user has credential to
access the printer.

Hope this helps.
Thanks,
Don.

-----Original Message-----
From: Keith Davis [mailto:keithdavis@pridedallas.com]
Sent: Friday, February 05, 2010 1:32 PM
To: Pierre Joye
Cc: Robert; php-windows@lists.php.net
Subject: RE: [PHP-WIN] What about php 5.3 and printers or
PHP_PRINTER.DLL ?

IIS 7 on my dev machine, which is what I am testing on. The prod server
is IIS 6.


Keith Davis (214) 906-5183

-----Original Message-----
From: Pierre Joye [mailto:pierre.php@gmail.com]
Sent: Friday, February 05, 2010 3:30 PM
To: Keith Davis
Cc: Robert; php-windows@lists.php.net
Subject: Re: [PHP-WIN] What about php 5.3 and printers or
PHP_PRINTER.DLL ?

which webserver do you use?

On Fri, Feb 5, 2010 at 10:27 PM, Keith Davis
wrote:
> How is that user specified?
>
>
>
> Keith Davis (214) 906-5183
>
> -----Original Message-----
> From: Pierre Joye [mailto:pierre.php@gmail.com]
> Sent: Friday, February 05, 2010 3:26 PM
> To: Keith Davis
> Cc: Robert; php-windows@lists.php.net
> Subject: Re: [PHP-WIN] What about php 5.3 and printers or=20
> PHP_PRINTER.DLL ?
>
> On Fri, Feb 5, 2010 at 10:16 PM, Keith Davis=20
> wrote:
>> I found a post that said to set fastcgi.impersonate =3D 0 to fix this=20
>> problem. It did.
>>
>> Can someone clarify what that setting does?
>
> It allows a server to run php-cgi under a given user. But that should=20
> not affect printer at all, except if the user does not have the=20
> permission to use this printer.
>
> Cheers,
> --
> Pierre
>
> @pierrejoye | http://blog.thepimp.net | http://www.libgd.org
>
> This message (including any attachments) may contain confidential or
otherwise privileged information and is intended only for the
individual(s) to which it is addressed. If you are not the named
addressee you should not disseminate, distribute or copy this e-mail.
Please notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system. E-mail
transmission cannot be guaranteed to be secured or error-free as
information could be intercepted, corrupted, lost, destroyed, arrive
late or incomplete, or contain viruses. The sender therefore does not
accept liability for any errors or omissions in the contents of this
message or that arise as a result of e-mail transmission. If
verification is required please request a hard-copy version from the
sender.
>
> www.pridedallas.com
>
>



--
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

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



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




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

RE: What about php 5.3 and printers or PHP_PRINTER.DLL ?

am 05.02.2010 23:10:40 von Keith Davis

I understand that. What I meant, is that the user has permissions to
both (it's my account.) I'm a domain admin.=20



Keith Davis (214) 906-5183

-----Original Message-----
From: Venkat Raman Don [mailto:Don.Raman@microsoft.com]=20
Sent: Friday, February 05, 2010 4:05 PM
To: Keith Davis; Pierre Joye
Cc: Robert; php-windows@lists.php.net
Subject: RE: [PHP-WIN] What about php 5.3 and printers or
PHP_PRINTER.DLL ?

If the authorized user has access to printer it should work. BTW, access
to shared files or network share and printer are two different things.
Writing to file share doesn't mean that you can connect to printer too.
See if the authorized user can indeed connect to printer.

Thanks,
Don.

-----Original Message-----
From: Keith Davis [mailto:keithdavis@pridedallas.com]
Sent: Friday, February 05, 2010 1:58 PM
To: Venkat Raman Don; Pierre Joye
Cc: Robert; php-windows@lists.php.net
Subject: RE: [PHP-WIN] What about php 5.3 and printers or
PHP_PRINTER.DLL ?

Out entire site requires authorization to access it (Windows
Authentication used.) I write files to other servers from under these
credentials without any problem. Why would accessing the printer be an
issue?=20



Keith Davis (214) 906-5183

-----Original Message-----
From: Venkat Raman Don [mailto:Don.Raman@microsoft.com]
Sent: Friday, February 05, 2010 3:55 PM
To: Keith Davis; Pierre Joye
Cc: Robert; php-windows@lists.php.net
Subject: RE: [PHP-WIN] What about php 5.3 and printers or
PHP_PRINTER.DLL ?

You will need to give the authenticated user IIS is using (depends on
what kind of authentication method is set on your site) access to
printer in that case. IIS7 adds a default builtin user account IUSR
which is user while running under anonymous authentication. However it
is different on IIS6 which uses IUSR_machine_name under anonymous
authentication. I would say best way is to run your application under a
credential which has access to printer. If you add your local IUSR
account to have access to printer, this will not work on IIS6 where you
will need to give the default user IUSR_machine_name access too.

Also, Ruslan sent some good links which explains this impersonation in
detail. Look at that for further details.

Thanks,
Don.

-----Original Message-----
From: Keith Davis [mailto:keithdavis@pridedallas.com]
Sent: Friday, February 05, 2010 1:43 PM
To: Venkat Raman Don; Pierre Joye
Cc: Robert; php-windows@lists.php.net
Subject: RE: [PHP-WIN] What about php 5.3 and printers or
PHP_PRINTER.DLL ?

No, when I turn it off it works. When I turn it back on (the way we had
it before, and need it), it generates the error.=20



Keith Davis (214) 906-5183

-----Original Message-----
From: Venkat Raman Don [mailto:Don.Raman@microsoft.com]
Sent: Friday, February 05, 2010 3:42 PM
To: Keith Davis; Pierre Joye
Cc: Robert; php-windows@lists.php.net
Subject: RE: [PHP-WIN] What about php 5.3 and printers or
PHP_PRINTER.DLL ?

When you have fastcgi.impersonate set to 1, IIS tries to impersonate the
security token of the calling client. This means, for example if an IIS
site has 'Anonymous' authentication off and let's say Windows
authentication on, 'Windows' authenticated user will be impersonated by
PHP main thread and all the files and other system resource will be
accessed using the authenticated Windows user security tokens. So if
that user/credential doesn't have permission to access a resource it
will fail.

In your case it seems after fastcgi.imersonate is set, the
credential/secutrity token impersonated of the user has credential to
access the printer.

Hope this helps.
Thanks,
Don.

-----Original Message-----
From: Keith Davis [mailto:keithdavis@pridedallas.com]
Sent: Friday, February 05, 2010 1:32 PM
To: Pierre Joye
Cc: Robert; php-windows@lists.php.net
Subject: RE: [PHP-WIN] What about php 5.3 and printers or
PHP_PRINTER.DLL ?

IIS 7 on my dev machine, which is what I am testing on. The prod server
is IIS 6.


Keith Davis (214) 906-5183

-----Original Message-----
From: Pierre Joye [mailto:pierre.php@gmail.com]
Sent: Friday, February 05, 2010 3:30 PM
To: Keith Davis
Cc: Robert; php-windows@lists.php.net
Subject: Re: [PHP-WIN] What about php 5.3 and printers or
PHP_PRINTER.DLL ?

which webserver do you use?

On Fri, Feb 5, 2010 at 10:27 PM, Keith Davis
wrote:
> How is that user specified?
>
>
>
> Keith Davis (214) 906-5183
>
> -----Original Message-----
> From: Pierre Joye [mailto:pierre.php@gmail.com]
> Sent: Friday, February 05, 2010 3:26 PM
> To: Keith Davis
> Cc: Robert; php-windows@lists.php.net
> Subject: Re: [PHP-WIN] What about php 5.3 and printers or=20
> PHP_PRINTER.DLL ?
>
> On Fri, Feb 5, 2010 at 10:16 PM, Keith Davis=20
> wrote:
>> I found a post that said to set fastcgi.impersonate =3D 0 to fix this =

>> problem. It did.
>>
>> Can someone clarify what that setting does?
>
> It allows a server to run php-cgi under a given user. But that should=20
> not affect printer at all, except if the user does not have the=20
> permission to use this printer.
>
> Cheers,
> --
> Pierre
>
> @pierrejoye | http://blog.thepimp.net | http://www.libgd.org
>
> This message (including any attachments) may contain confidential or
otherwise privileged information and is intended only for the
individual(s) to which it is addressed. If you are not the named
addressee you should not disseminate, distribute or copy this e-mail.
Please notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system. E-mail
transmission cannot be guaranteed to be secured or error-free as
information could be intercepted, corrupted, lost, destroyed, arrive
late or incomplete, or contain viruses. The sender therefore does not
accept liability for any errors or omissions in the contents of this
message or that arise as a result of e-mail transmission. If
verification is required please request a hard-copy version from the
sender.
>
> www.pridedallas.com
>
>



--
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

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



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




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

RE: What about php 5.3 and printers or PHP_PRINTER.DLL ?

am 05.02.2010 23:16:29 von Venkat Raman Don

If you are able to write to a file share then it should work. Can you figur=
e out when you turn off impersonation what credentials printer is getting a=
ccessed. That's the only difference between impersonation On and Off.

Thanks,
Don.

-----Original Message-----
From: Keith Davis [mailto:keithdavis@pridedallas.com]=20
Sent: Friday, February 05, 2010 2:11 PM
To: Venkat Raman Don; Pierre Joye
Cc: Robert; php-windows@lists.php.net
Subject: RE: [PHP-WIN] What about php 5.3 and printers or PHP_PRINTER.DLL ?

I understand that. What I meant, is that the user has permissions to
both (it's my account.) I'm a domain admin.=20



Keith Davis (214) 906-5183

-----Original Message-----
From: Venkat Raman Don [mailto:Don.Raman@microsoft.com]=20
Sent: Friday, February 05, 2010 4:05 PM
To: Keith Davis; Pierre Joye
Cc: Robert; php-windows@lists.php.net
Subject: RE: [PHP-WIN] What about php 5.3 and printers or
PHP_PRINTER.DLL ?

If the authorized user has access to printer it should work. BTW, access
to shared files or network share and printer are two different things.
Writing to file share doesn't mean that you can connect to printer too.
See if the authorized user can indeed connect to printer.

Thanks,
Don.

-----Original Message-----
From: Keith Davis [mailto:keithdavis@pridedallas.com]
Sent: Friday, February 05, 2010 1:58 PM
To: Venkat Raman Don; Pierre Joye
Cc: Robert; php-windows@lists.php.net
Subject: RE: [PHP-WIN] What about php 5.3 and printers or
PHP_PRINTER.DLL ?

Out entire site requires authorization to access it (Windows
Authentication used.) I write files to other servers from under these
credentials without any problem. Why would accessing the printer be an
issue?=20



Keith Davis (214) 906-5183

-----Original Message-----
From: Venkat Raman Don [mailto:Don.Raman@microsoft.com]
Sent: Friday, February 05, 2010 3:55 PM
To: Keith Davis; Pierre Joye
Cc: Robert; php-windows@lists.php.net
Subject: RE: [PHP-WIN] What about php 5.3 and printers or
PHP_PRINTER.DLL ?

You will need to give the authenticated user IIS is using (depends on
what kind of authentication method is set on your site) access to
printer in that case. IIS7 adds a default builtin user account IUSR
which is user while running under anonymous authentication. However it
is different on IIS6 which uses IUSR_machine_name under anonymous
authentication. I would say best way is to run your application under a
credential which has access to printer. If you add your local IUSR
account to have access to printer, this will not work on IIS6 where you
will need to give the default user IUSR_machine_name access too.

Also, Ruslan sent some good links which explains this impersonation in
detail. Look at that for further details.

Thanks,
Don.

-----Original Message-----
From: Keith Davis [mailto:keithdavis@pridedallas.com]
Sent: Friday, February 05, 2010 1:43 PM
To: Venkat Raman Don; Pierre Joye
Cc: Robert; php-windows@lists.php.net
Subject: RE: [PHP-WIN] What about php 5.3 and printers or
PHP_PRINTER.DLL ?

No, when I turn it off it works. When I turn it back on (the way we had
it before, and need it), it generates the error.=20



Keith Davis (214) 906-5183

-----Original Message-----
From: Venkat Raman Don [mailto:Don.Raman@microsoft.com]
Sent: Friday, February 05, 2010 3:42 PM
To: Keith Davis; Pierre Joye
Cc: Robert; php-windows@lists.php.net
Subject: RE: [PHP-WIN] What about php 5.3 and printers or
PHP_PRINTER.DLL ?

When you have fastcgi.impersonate set to 1, IIS tries to impersonate the
security token of the calling client. This means, for example if an IIS
site has 'Anonymous' authentication off and let's say Windows
authentication on, 'Windows' authenticated user will be impersonated by
PHP main thread and all the files and other system resource will be
accessed using the authenticated Windows user security tokens. So if
that user/credential doesn't have permission to access a resource it
will fail.

In your case it seems after fastcgi.imersonate is set, the
credential/secutrity token impersonated of the user has credential to
access the printer.

Hope this helps.
Thanks,
Don.

-----Original Message-----
From: Keith Davis [mailto:keithdavis@pridedallas.com]
Sent: Friday, February 05, 2010 1:32 PM
To: Pierre Joye
Cc: Robert; php-windows@lists.php.net
Subject: RE: [PHP-WIN] What about php 5.3 and printers or
PHP_PRINTER.DLL ?

IIS 7 on my dev machine, which is what I am testing on. The prod server
is IIS 6.


Keith Davis (214) 906-5183

-----Original Message-----
From: Pierre Joye [mailto:pierre.php@gmail.com]
Sent: Friday, February 05, 2010 3:30 PM
To: Keith Davis
Cc: Robert; php-windows@lists.php.net
Subject: Re: [PHP-WIN] What about php 5.3 and printers or
PHP_PRINTER.DLL ?

which webserver do you use?

On Fri, Feb 5, 2010 at 10:27 PM, Keith Davis
wrote:
> How is that user specified?
>
>
>
> Keith Davis (214) 906-5183
>
> -----Original Message-----
> From: Pierre Joye [mailto:pierre.php@gmail.com]
> Sent: Friday, February 05, 2010 3:26 PM
> To: Keith Davis
> Cc: Robert; php-windows@lists.php.net
> Subject: Re: [PHP-WIN] What about php 5.3 and printers or=20
> PHP_PRINTER.DLL ?
>
> On Fri, Feb 5, 2010 at 10:16 PM, Keith Davis=20
> wrote:
>> I found a post that said to set fastcgi.impersonate =3D 0 to fix this=20
>> problem. It did.
>>
>> Can someone clarify what that setting does?
>
> It allows a server to run php-cgi under a given user. But that should=20
> not affect printer at all, except if the user does not have the=20
> permission to use this printer.
>
> Cheers,
> --
> Pierre
>
> @pierrejoye | http://blog.thepimp.net | http://www.libgd.org
>
> This message (including any attachments) may contain confidential or
otherwise privileged information and is intended only for the
individual(s) to which it is addressed. If you are not the named
addressee you should not disseminate, distribute or copy this e-mail.
Please notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system. E-mail
transmission cannot be guaranteed to be secured or error-free as
information could be intercepted, corrupted, lost, destroyed, arrive
late or incomplete, or contain viruses. The sender therefore does not
accept liability for any errors or omissions in the contents of this
message or that arise as a result of e-mail transmission. If
verification is required please request a hard-copy version from the
sender.
>
> www.pridedallas.com
>
>



--
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

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



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





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

RE: What about php 5.3 and printers or PHP_PRINTER.DLL ?

am 08.02.2010 22:01:00 von Keith Davis

But that doesn't make any sense. If impersonation is turned off, it
should be running under the IUSR account, which definitely does NOT have
permission to print to that network printer. Yet, my own account, which
definitely does have permission fails.=20



Keith Davis (214) 906-5183

-----Original Message-----
From: Venkat Raman Don [mailto:Don.Raman@microsoft.com]=20
Sent: Friday, February 05, 2010 4:16 PM
To: Keith Davis; Pierre Joye
Cc: Robert; php-windows@lists.php.net
Subject: RE: [PHP-WIN] What about php 5.3 and printers or
PHP_PRINTER.DLL ?

If you are able to write to a file share then it should work. Can you
figure out when you turn off impersonation what credentials printer is
getting accessed. That's the only difference between impersonation On
and Off.

Thanks,
Don.

-----Original Message-----
From: Keith Davis [mailto:keithdavis@pridedallas.com]
Sent: Friday, February 05, 2010 2:11 PM
To: Venkat Raman Don; Pierre Joye
Cc: Robert; php-windows@lists.php.net
Subject: RE: [PHP-WIN] What about php 5.3 and printers or
PHP_PRINTER.DLL ?

I understand that. What I meant, is that the user has permissions to
both (it's my account.) I'm a domain admin.=20



Keith Davis (214) 906-5183

-----Original Message-----
From: Venkat Raman Don [mailto:Don.Raman@microsoft.com]
Sent: Friday, February 05, 2010 4:05 PM
To: Keith Davis; Pierre Joye
Cc: Robert; php-windows@lists.php.net
Subject: RE: [PHP-WIN] What about php 5.3 and printers or
PHP_PRINTER.DLL ?

If the authorized user has access to printer it should work. BTW, access
to shared files or network share and printer are two different things.
Writing to file share doesn't mean that you can connect to printer too.
See if the authorized user can indeed connect to printer.

Thanks,
Don.

-----Original Message-----
From: Keith Davis [mailto:keithdavis@pridedallas.com]
Sent: Friday, February 05, 2010 1:58 PM
To: Venkat Raman Don; Pierre Joye
Cc: Robert; php-windows@lists.php.net
Subject: RE: [PHP-WIN] What about php 5.3 and printers or
PHP_PRINTER.DLL ?

Out entire site requires authorization to access it (Windows
Authentication used.) I write files to other servers from under these
credentials without any problem. Why would accessing the printer be an
issue?=20



Keith Davis (214) 906-5183

-----Original Message-----
From: Venkat Raman Don [mailto:Don.Raman@microsoft.com]
Sent: Friday, February 05, 2010 3:55 PM
To: Keith Davis; Pierre Joye
Cc: Robert; php-windows@lists.php.net
Subject: RE: [PHP-WIN] What about php 5.3 and printers or
PHP_PRINTER.DLL ?

You will need to give the authenticated user IIS is using (depends on
what kind of authentication method is set on your site) access to
printer in that case. IIS7 adds a default builtin user account IUSR
which is user while running under anonymous authentication. However it
is different on IIS6 which uses IUSR_machine_name under anonymous
authentication. I would say best way is to run your application under a
credential which has access to printer. If you add your local IUSR
account to have access to printer, this will not work on IIS6 where you
will need to give the default user IUSR_machine_name access too.

Also, Ruslan sent some good links which explains this impersonation in
detail. Look at that for further details.

Thanks,
Don.

-----Original Message-----
From: Keith Davis [mailto:keithdavis@pridedallas.com]
Sent: Friday, February 05, 2010 1:43 PM
To: Venkat Raman Don; Pierre Joye
Cc: Robert; php-windows@lists.php.net
Subject: RE: [PHP-WIN] What about php 5.3 and printers or
PHP_PRINTER.DLL ?

No, when I turn it off it works. When I turn it back on (the way we had
it before, and need it), it generates the error.=20



Keith Davis (214) 906-5183

-----Original Message-----
From: Venkat Raman Don [mailto:Don.Raman@microsoft.com]
Sent: Friday, February 05, 2010 3:42 PM
To: Keith Davis; Pierre Joye
Cc: Robert; php-windows@lists.php.net
Subject: RE: [PHP-WIN] What about php 5.3 and printers or
PHP_PRINTER.DLL ?

When you have fastcgi.impersonate set to 1, IIS tries to impersonate the
security token of the calling client. This means, for example if an IIS
site has 'Anonymous' authentication off and let's say Windows
authentication on, 'Windows' authenticated user will be impersonated by
PHP main thread and all the files and other system resource will be
accessed using the authenticated Windows user security tokens. So if
that user/credential doesn't have permission to access a resource it
will fail.

In your case it seems after fastcgi.imersonate is set, the
credential/secutrity token impersonated of the user has credential to
access the printer.

Hope this helps.
Thanks,
Don.

-----Original Message-----
From: Keith Davis [mailto:keithdavis@pridedallas.com]
Sent: Friday, February 05, 2010 1:32 PM
To: Pierre Joye
Cc: Robert; php-windows@lists.php.net
Subject: RE: [PHP-WIN] What about php 5.3 and printers or
PHP_PRINTER.DLL ?

IIS 7 on my dev machine, which is what I am testing on. The prod server
is IIS 6.


Keith Davis (214) 906-5183

-----Original Message-----
From: Pierre Joye [mailto:pierre.php@gmail.com]
Sent: Friday, February 05, 2010 3:30 PM
To: Keith Davis
Cc: Robert; php-windows@lists.php.net
Subject: Re: [PHP-WIN] What about php 5.3 and printers or
PHP_PRINTER.DLL ?

which webserver do you use?

On Fri, Feb 5, 2010 at 10:27 PM, Keith Davis
wrote:
> How is that user specified?
>
>
>
> Keith Davis (214) 906-5183
>
> -----Original Message-----
> From: Pierre Joye [mailto:pierre.php@gmail.com]
> Sent: Friday, February 05, 2010 3:26 PM
> To: Keith Davis
> Cc: Robert; php-windows@lists.php.net
> Subject: Re: [PHP-WIN] What about php 5.3 and printers or=20
> PHP_PRINTER.DLL ?
>
> On Fri, Feb 5, 2010 at 10:16 PM, Keith Davis=20
> wrote:
>> I found a post that said to set fastcgi.impersonate =3D 0 to fix this =

>> problem. It did.
>>
>> Can someone clarify what that setting does?
>
> It allows a server to run php-cgi under a given user. But that should=20
> not affect printer at all, except if the user does not have the=20
> permission to use this printer.
>
> Cheers,
> --
> Pierre
>
> @pierrejoye | http://blog.thepimp.net | http://www.libgd.org
>
> This message (including any attachments) may contain confidential or
otherwise privileged information and is intended only for the
individual(s) to which it is addressed. If you are not the named
addressee you should not disseminate, distribute or copy this e-mail.
Please notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system. E-mail
transmission cannot be guaranteed to be secured or error-free as
information could be intercepted, corrupted, lost, destroyed, arrive
late or incomplete, or contain viruses. The sender therefore does not
accept liability for any errors or omissions in the contents of this
message or that arise as a result of e-mail transmission. If
verification is required please request a hard-copy version from the
sender.
>
> www.pridedallas.com
>
>



--
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

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



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





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

Re: What about php 5.3 and printers or PHP_PRINTER.DLL ?

am 22.02.2010 15:03:09 von Robert

About no chance to print on a shared printer from windows server 2008.

Please note that for some unknown reason, it is either impossible to mount a
shared printer on windows server 2008. Maybe that errors and issues printing
from php are connected to this issue.

The only chance we had found to print on a shared printer from windows 2008,
is to mount the printer as local printer and as port, to give the full
tcp/ip path + the shared name for the shared printer.

Hope this can help anybody that have the same issue.

Kind regards


""Keith Davis"" ha scritto nel messaggio
news:B0BACCAA54A7CC479FB67D9494FB018A8CC927@dc01.pridedallas .com...
How is that user specified?



Keith Davis (214) 906-5183

-----Original Message-----
From: Pierre Joye [mailto:pierre.php@gmail.com]
Sent: Friday, February 05, 2010 3:26 PM
To: Keith Davis
Cc: Robert; php-windows@lists.php.net
Subject: Re: [PHP-WIN] What about php 5.3 and printers or
PHP_PRINTER.DLL ?

On Fri, Feb 5, 2010 at 10:16 PM, Keith Davis
wrote:
> I found a post that said to set fastcgi.impersonate = 0 to fix this
> problem. It did.
>
> Can someone clarify what that setting does?

It allows a server to run php-cgi under a given user. But that should
not affect printer at all, except if the user does not have the
permission to use this printer.

Cheers,
--
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

This message (including any attachments) may contain confidential or
otherwise privileged information and is intended only for the individual(s)
to which it is addressed. If you are not the named addressee you should not
disseminate, distribute or copy this e-mail. Please notify the sender
immediately by e-mail if you have received this e-mail by mistake and delete
this e-mail from your system. E-mail transmission cannot be guaranteed to be
secured or error-free as information could be intercepted, corrupted, lost,
destroyed, arrive late or incomplete, or contain viruses. The sender
therefore does not accept liability for any errors or omissions in the
contents of this message or that arise as a result of e-mail transmission.
If verification is required please request a hard-copy version from the
sender.

www.pridedallas.com



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

Re: What about php 5.3 and printers or PHP_PRINTER.DLL ?

am 22.02.2010 15:11:06 von Pierre Joye

hi,

It works just fine here, did you install the print server?

Cheers,

On Mon, Feb 22, 2010 at 3:03 PM, Robert wrote:
> About no chance to print on a shared printer from windows server 2008.
>
> Please note that for some unknown reason, it is either impossible to mount a
> shared printer on windows server 2008. Maybe that errors and issues printing
> from php are connected to this issue.
>
> The only chance we had found to print on a shared printer from windows 2008,
> is to mount the printer as local printer and as port, to give the full
> tcp/ip path + the shared name for the shared printer.
>
> Hope this can help anybody that have the same issue.
>
> Kind regards
>
>
> ""Keith Davis"" ha scritto nel messaggio
> news:B0BACCAA54A7CC479FB67D9494FB018A8CC927@dc01.pridedallas .com...
> How is that user specified?
>
>
>
> Keith Davis (214) 906-5183
>
> -----Original Message-----
> From: Pierre Joye [mailto:pierre.php@gmail.com]
> Sent: Friday, February 05, 2010 3:26 PM
> To: Keith Davis
> Cc: Robert; php-windows@lists.php.net
> Subject: Re: [PHP-WIN] What about php 5.3 and printers or
> PHP_PRINTER.DLL ?
>
> On Fri, Feb 5, 2010 at 10:16 PM, Keith Davis
> wrote:
>> I found a post that said to set fastcgi.impersonate = 0 to fix this
>> problem. It did.
>>
>> Can someone clarify what that setting does?
>
> It allows a server to run php-cgi under a given user. But that should
> not affect printer at all, except if the user does not have the
> permission to use this printer.
>
> Cheers,
> --
> Pierre
>
> @pierrejoye | http://blog.thepimp.net | http://www.libgd.org
>
> This message (including any attachments) may contain confidential or
> otherwise privileged information and is intended only for the individual(s)
> to which it is addressed. If you are not the named addressee you should not
> disseminate, distribute or copy this e-mail. Please notify the sender
> immediately by e-mail if you have received this e-mail by mistake and delete
> this e-mail from your system. E-mail transmission cannot be guaranteed to be
> secured or error-free as information could be intercepted, corrupted, lost,
> destroyed, arrive late or incomplete, or contain viruses. The sender
> therefore does not accept liability for any errors or omissions in the
> contents of this message or that arise as a result of e-mail transmission.
> If verification is required please request a hard-copy version from the
> sender.
>
> www.pridedallas.com
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>



--
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

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

RE: What about php 5.3 and printers or PHP_PRINTER.DLL ?

am 22.02.2010 15:14:03 von Keith Davis

Well, I'm on Server 2003, and I still cannot print. It only works with
impersonate turned off, and that is not a solution, as I need to connect
to remote files.=20



Keith Davis (214) 906-5183

-----Original Message-----
From: Pierre Joye [mailto:pierre.php@gmail.com]=20
Sent: Monday, February 22, 2010 8:11 AM
To: Robert
Cc: php-windows@lists.php.net
Subject: Re: [PHP-WIN] What about php 5.3 and printers or
PHP_PRINTER.DLL ?

hi,

It works just fine here, did you install the print server?

Cheers,

On Mon, Feb 22, 2010 at 3:03 PM, Robert wrote:
> About no chance to print on a shared printer from windows server 2008.
>
> Please note that for some unknown reason, it is either impossible to=20
> mount a shared printer on windows server 2008. Maybe that errors and=20
> issues printing from php are connected to this issue.
>
> The only chance we had found to print on a shared printer from windows

> 2008, is to mount the printer as local printer and as port, to give=20
> the full tcp/ip path + the shared name for the shared printer.
>
> Hope this can help anybody that have the same issue.
>
> Kind regards
>
>
> ""Keith Davis"" ha scritto nel messaggio=20
> news:B0BACCAA54A7CC479FB67D9494FB018A8CC927@dc01.pridedallas .com...
> How is that user specified?
>
>
>
> Keith Davis (214) 906-5183
>
> -----Original Message-----
> From: Pierre Joye [mailto:pierre.php@gmail.com]
> Sent: Friday, February 05, 2010 3:26 PM
> To: Keith Davis
> Cc: Robert; php-windows@lists.php.net
> Subject: Re: [PHP-WIN] What about php 5.3 and printers or=20
> PHP_PRINTER.DLL ?
>
> On Fri, Feb 5, 2010 at 10:16 PM, Keith Davis=20
> wrote:
>> I found a post that said to set fastcgi.impersonate =3D 0 to fix this =

>> problem. It did.
>>
>> Can someone clarify what that setting does?
>
> It allows a server to run php-cgi under a given user. But that should=20
> not affect printer at all, except if the user does not have the=20
> permission to use this printer.
>
> Cheers,
> --
> Pierre
>
> @pierrejoye | http://blog.thepimp.net | http://www.libgd.org
>
> This message (including any attachments) may contain confidential or=20
> otherwise privileged information and is intended only for the=20
> individual(s) to which it is addressed. If you are not the named=20
> addressee you should not disseminate, distribute or copy this e-mail.=20
> Please notify the sender immediately by e-mail if you have received=20
> this e-mail by mistake and delete this e-mail from your system. E-mail

> transmission cannot be guaranteed to be secured or error-free as=20
> information could be intercepted, corrupted, lost, destroyed, arrive=20
> late or incomplete, or contain viruses. The sender therefore does not=20
> accept liability for any errors or omissions in the contents of this
message or that arise as a result of e-mail transmission.
> If verification is required please request a hard-copy version from=20
> the sender.
>
> www.pridedallas.com
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit:=20
> http://www.php.net/unsub.php
>
>



--
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

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


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

RE: What about php 5.3 and printers or PHP_PRINTER.DLL ?

am 22.02.2010 23:30:25 von Venkat Raman Don

Hi,

I did some test on Windows7 as well as Windows Server 2008. I used fastcgi.=
impersonate=3D1 in both the cases. On Windows 7 everything is fine. From Wi=
ndows Server 2008 I am getting below error:

Fatal error: Out of memory (allocated 524288) (tried to allocate 4294967295=
bytes) in C:\inetpub\wwwroot\phptest\print.php on line 2

The test file 'print.php' is a simple PHP file where I am making one call t=
o printer_open.

So went and debugged the code. In the function printer_open implementation,=
we make call to OpenPrinter and later to DocumentProperties. For some reas=
on (I haven't figured it yet), OpenPrinter call is success whereas Document=
Properties fails and returns a negative number. Now look at the code below:

if (OpenPrinter(resource->name, &resource->handle, NULL) !=3D 0) {
=20
resource->pi2 =3D (PRINTER_INFO_2 *)emalloc(sizeof(PRINTER_INFO_2));
=20
resource->pi2->pDevMode =3D (DEVMODE *)emalloc(DocumentProperties(NULL, =
NULL, resource->name, NULL, NULL, 0));
=20
if (DocumentProperties(NULL, resource->handle, resource->name, resource-=
>pi2->pDevMode, NULL, DM_OUT_BUFFER) == IDOK) {

Above the code tries to use Zend allocator to allocate memory assuming Docu=
mentProperties returned a valid value (here the actual size). However Docum=
entProperties returned a negative value meaning failure and I believe this =
value is treated as unsigned integer leading to a huge value and thus the a=
bove message.

Regarding why DocumentProperties fails, I am not very sure. And this happen=
s on Win2k3 too. Look at the bug reported at http://pecl.php.net/bugs/bug.p=
hp?id=3D12293 long time back.

Keith, you can try accessing the printer under a normal account and which i=
s not part of administrator group and see if this helps. Ensure that the no=
rmal user has permission to access the printer.

Thanks,
Don.


-----Original Message-----
From: Keith Davis [mailto:keithdavis@pridedallas.com]=20
Sent: Monday, February 22, 2010 6:14 AM
To: Pierre Joye; Robert
Cc: php-windows@lists.php.net
Subject: RE: [PHP-WIN] What about php 5.3 and printers or PHP_PRINTER.DLL ?

Well, I'm on Server 2003, and I still cannot print. It only works with impe=
rsonate turned off, and that is not a solution, as I need to connect to rem=
ote files.=20



Keith Davis (214) 906-5183

-----Original Message-----
From: Pierre Joye [mailto:pierre.php@gmail.com]
Sent: Monday, February 22, 2010 8:11 AM
To: Robert
Cc: php-windows@lists.php.net
Subject: Re: [PHP-WIN] What about php 5.3 and printers or PHP_PRINTER.DLL ?

hi,

It works just fine here, did you install the print server?

Cheers,

On Mon, Feb 22, 2010 at 3:03 PM, Robert wrote:
> About no chance to print on a shared printer from windows server 2008.
>
> Please note that for some unknown reason, it is either impossible to=20
> mount a shared printer on windows server 2008. Maybe that errors and=20
> issues printing from php are connected to this issue.
>
> The only chance we had found to print on a shared printer from windows

> 2008, is to mount the printer as local printer and as port, to give=20
> the full tcp/ip path + the shared name for the shared printer.
>
> Hope this can help anybody that have the same issue.
>
> Kind regards
>
>
> ""Keith Davis"" ha scritto nel messaggio=20
> news:B0BACCAA54A7CC479FB67D9494FB018A8CC927@dc01.pridedallas .com...
> How is that user specified?
>
>
>
> Keith Davis (214) 906-5183
>
> -----Original Message-----
> From: Pierre Joye [mailto:pierre.php@gmail.com]
> Sent: Friday, February 05, 2010 3:26 PM
> To: Keith Davis
> Cc: Robert; php-windows@lists.php.net
> Subject: Re: [PHP-WIN] What about php 5.3 and printers or=20
> PHP_PRINTER.DLL ?
>
> On Fri, Feb 5, 2010 at 10:16 PM, Keith Davis=20
> wrote:
>> I found a post that said to set fastcgi.impersonate =3D 0 to fix this=20
>> problem. It did.
>>
>> Can someone clarify what that setting does?
>
> It allows a server to run php-cgi under a given user. But that should=20
> not affect printer at all, except if the user does not have the=20
> permission to use this printer.
>
> Cheers,
> --
> Pierre
>
> @pierrejoye | http://blog.thepimp.net | http://www.libgd.org
>
> This message (including any attachments) may contain confidential or=20
> otherwise privileged information and is intended only for the
> individual(s) to which it is addressed. If you are not the named=20
> addressee you should not disseminate, distribute or copy this e-mail.
> Please notify the sender immediately by e-mail if you have received=20
> this e-mail by mistake and delete this e-mail from your system. E-mail

> transmission cannot be guaranteed to be secured or error-free as=20
> information could be intercepted, corrupted, lost, destroyed, arrive=20
> late or incomplete, or contain viruses. The sender therefore does not=20
> accept liability for any errors or omissions in the contents of this
message or that arise as a result of e-mail transmission.
> If verification is required please request a hard-copy version from=20
> the sender.
>
> www.pridedallas.com
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit:=20
> http://www.php.net/unsub.php
>
>



--
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

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


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



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

Re: What about php 5.3 and printers or PHP_PRINTER.DLL ?

am 23.02.2010 10:28:14 von Richard Quadling

On 22 February 2010 22:30, Venkat Raman Don wrote:
> DocumentProperties

http://msdn.microsoft.com/en-us/library/dd183576(VS.85).aspx

LONG DocumentProperties(
__in HWND hWnd,
__in HANDLE hPrinter,
__in LPTSTR pDeviceName,
__out PDEVMODE pDevModeOutput,
__in PDEVMODE pDevModeInput,
__in DWORD fMode
);

If the fMode parameter is zero, the return value is the size of the
buffer required to contain the printer driver initialization data.
Note that this buffer can be larger than a DEVMODE structure if the
printer driver appends private data to the structure.

If the function displays the property sheet, the return value is
either IDOK or IDCANCEL, depending on which button the user selects.

If the function does not display the property sheet and is successful,
the return value is IDOK.

If the function fails, the return value is less than zero.

---------------------------------

No indication upon what the failure is from the call to
DocumentProperties, but I wonder if supplying Null for the first 2
parameters is appropriate. The second parameter is probably going to
have to be the handle returned by OpenPrinter.

But this is just me reading the MSDN pages. I'm no expert! Sorry.

Richard.
--
-----
Richard Quadling
"Standing on the shoulders of some very clever giants!"
EE : http://www.experts-exchange.com/M_248814.html
EE4Free : http://www.experts-exchange.com/becomeAnExpert.jsp
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
ZOPA : http://uk.zopa.com/member/RQuadling

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

RE: What about php 5.3 and printers or PHP_PRINTER.DLL ?

am 23.02.2010 14:52:09 von Keith Davis

Nope. I have an account called Test. It is not an Administrator account
(local or domain) and it can print to \\server05\Auth, but it fails here
too.



Keith Davis (214) 906-5183

-----Original Message-----
From: Venkat Raman Don [mailto:Don.Raman@microsoft.com]=20
Sent: Monday, February 22, 2010 4:30 PM
To: Keith Davis; Pierre Joye; Robert
Cc: php-windows@lists.php.net
Subject: RE: [PHP-WIN] What about php 5.3 and printers or
PHP_PRINTER.DLL ?

Hi,

I did some test on Windows7 as well as Windows Server 2008. I used
fastcgi.impersonate=3D1 in both the cases. On Windows 7 everything is
fine. From Windows Server 2008 I am getting below error:

Fatal error: Out of memory (allocated 524288) (tried to allocate
4294967295 bytes) in C:\inetpub\wwwroot\phptest\print.php on line 2

The test file 'print.php' is a simple PHP file where I am making one
call to printer_open.

So went and debugged the code. In the function printer_open
implementation, we make call to OpenPrinter and later to
DocumentProperties. For some reason (I haven't figured it yet),
OpenPrinter call is success whereas DocumentProperties fails and returns
a negative number. Now look at the code below:

if (OpenPrinter(resource->name, &resource->handle, NULL) !=3D 0) {
=20
resource->pi2 =3D (PRINTER_INFO_2
*)emalloc(sizeof(PRINTER_INFO_2));
=20
resource->pi2->pDevMode =3D (DEVMODE
*)emalloc(DocumentProperties(NULL, NULL, resource->name, NULL, NULL,
0));
=20
if (DocumentProperties(NULL, resource->handle,
resource->name, resource->pi2->pDevMode, NULL, DM_OUT_BUFFER) == =
IDOK) {

Above the code tries to use Zend allocator to allocate memory assuming
DocumentProperties returned a valid value (here the actual size).
However DocumentProperties returned a negative value meaning failure and
I believe this value is treated as unsigned integer leading to a huge
value and thus the above message.

Regarding why DocumentProperties fails, I am not very sure. And this
happens on Win2k3 too. Look at the bug reported at
http://pecl.php.net/bugs/bug.php?id=3D12293 long time back.

Keith, you can try accessing the printer under a normal account and
which is not part of administrator group and see if this helps. Ensure
that the normal user has permission to access the printer.

Thanks,
Don.


-----Original Message-----
From: Keith Davis [mailto:keithdavis@pridedallas.com]
Sent: Monday, February 22, 2010 6:14 AM
To: Pierre Joye; Robert
Cc: php-windows@lists.php.net
Subject: RE: [PHP-WIN] What about php 5.3 and printers or
PHP_PRINTER.DLL ?

Well, I'm on Server 2003, and I still cannot print. It only works with
impersonate turned off, and that is not a solution, as I need to connect
to remote files.=20



Keith Davis (214) 906-5183

-----Original Message-----
From: Pierre Joye [mailto:pierre.php@gmail.com]
Sent: Monday, February 22, 2010 8:11 AM
To: Robert
Cc: php-windows@lists.php.net
Subject: Re: [PHP-WIN] What about php 5.3 and printers or
PHP_PRINTER.DLL ?

hi,

It works just fine here, did you install the print server?

Cheers,

On Mon, Feb 22, 2010 at 3:03 PM, Robert wrote:
> About no chance to print on a shared printer from windows server 2008.
>
> Please note that for some unknown reason, it is either impossible to=20
> mount a shared printer on windows server 2008. Maybe that errors and=20
> issues printing from php are connected to this issue.
>
> The only chance we had found to print on a shared printer from windows

> 2008, is to mount the printer as local printer and as port, to give=20
> the full tcp/ip path + the shared name for the shared printer.
>
> Hope this can help anybody that have the same issue.
>
> Kind regards
>
>
> ""Keith Davis"" ha scritto nel messaggio=20
> news:B0BACCAA54A7CC479FB67D9494FB018A8CC927@dc01.pridedallas .com...
> How is that user specified?
>
>
>
> Keith Davis (214) 906-5183
>
> -----Original Message-----
> From: Pierre Joye [mailto:pierre.php@gmail.com]
> Sent: Friday, February 05, 2010 3:26 PM
> To: Keith Davis
> Cc: Robert; php-windows@lists.php.net
> Subject: Re: [PHP-WIN] What about php 5.3 and printers or=20
> PHP_PRINTER.DLL ?
>
> On Fri, Feb 5, 2010 at 10:16 PM, Keith Davis=20
> wrote:
>> I found a post that said to set fastcgi.impersonate =3D 0 to fix this =

>> problem. It did.
>>
>> Can someone clarify what that setting does?
>
> It allows a server to run php-cgi under a given user. But that should=20
> not affect printer at all, except if the user does not have the=20
> permission to use this printer.
>
> Cheers,
> --
> Pierre
>
> @pierrejoye | http://blog.thepimp.net | http://www.libgd.org
>
> This message (including any attachments) may contain confidential or=20
> otherwise privileged information and is intended only for the
> individual(s) to which it is addressed. If you are not the named=20
> addressee you should not disseminate, distribute or copy this e-mail.
> Please notify the sender immediately by e-mail if you have received=20
> this e-mail by mistake and delete this e-mail from your system. E-mail

> transmission cannot be guaranteed to be secured or error-free as=20
> information could be intercepted, corrupted, lost, destroyed, arrive=20
> late or incomplete, or contain viruses. The sender therefore does not=20
> accept liability for any errors or omissions in the contents of this
message or that arise as a result of e-mail transmission.
> If verification is required please request a hard-copy version from=20
> the sender.
>
> www.pridedallas.com
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit:=20
> http://www.php.net/unsub.php
>
>



--
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

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


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



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

RE: What about php 5.3 and printers or PHP_PRINTER.DLL ?

am 23.02.2010 17:45:31 von Venkat Raman Don

I already mentioned the reason of failure. It is strange that OpenPrinter f=
unction is passing but DocumentProperties is failing. Ideally once OpenPrin=
ter passes, everything should go through. And the worst thing is that this =
is an abandoned package. I don't see any maintainer for it. Why don't use s=
omething else like FPDF or something else which is generally supported?

Thanks,
Don.

-----Original Message-----
From: Keith Davis [mailto:keithdavis@pridedallas.com]=20
Sent: Tuesday, February 23, 2010 5:52 AM
To: Venkat Raman Don; Pierre Joye; Robert
Cc: php-windows@lists.php.net
Subject: RE: [PHP-WIN] What about php 5.3 and printers or PHP_PRINTER.DLL ?

Nope. I have an account called Test. It is not an Administrator account
(local or domain) and it can print to \\server05\Auth, but it fails here
too.



Keith Davis (214) 906-5183

-----Original Message-----
From: Venkat Raman Don [mailto:Don.Raman@microsoft.com]=20
Sent: Monday, February 22, 2010 4:30 PM
To: Keith Davis; Pierre Joye; Robert
Cc: php-windows@lists.php.net
Subject: RE: [PHP-WIN] What about php 5.3 and printers or
PHP_PRINTER.DLL ?

Hi,

I did some test on Windows7 as well as Windows Server 2008. I used
fastcgi.impersonate=3D1 in both the cases. On Windows 7 everything is
fine. From Windows Server 2008 I am getting below error:

Fatal error: Out of memory (allocated 524288) (tried to allocate
4294967295 bytes) in C:\inetpub\wwwroot\phptest\print.php on line 2

The test file 'print.php' is a simple PHP file where I am making one
call to printer_open.

So went and debugged the code. In the function printer_open
implementation, we make call to OpenPrinter and later to
DocumentProperties. For some reason (I haven't figured it yet),
OpenPrinter call is success whereas DocumentProperties fails and returns
a negative number. Now look at the code below:

if (OpenPrinter(resource->name, &resource->handle, NULL) !=3D 0) {
=20
resource->pi2 =3D (PRINTER_INFO_2
*)emalloc(sizeof(PRINTER_INFO_2));
=20
resource->pi2->pDevMode =3D (DEVMODE
*)emalloc(DocumentProperties(NULL, NULL, resource->name, NULL, NULL,
0));
=20
if (DocumentProperties(NULL, resource->handle,
resource->name, resource->pi2->pDevMode, NULL, DM_OUT_BUFFER) == IDOK) =
{

Above the code tries to use Zend allocator to allocate memory assuming
DocumentProperties returned a valid value (here the actual size).
However DocumentProperties returned a negative value meaning failure and
I believe this value is treated as unsigned integer leading to a huge
value and thus the above message.

Regarding why DocumentProperties fails, I am not very sure. And this
happens on Win2k3 too. Look at the bug reported at
http://pecl.php.net/bugs/bug.php?id=3D12293 long time back.

Keith, you can try accessing the printer under a normal account and
which is not part of administrator group and see if this helps. Ensure
that the normal user has permission to access the printer.

Thanks,
Don.


-----Original Message-----
From: Keith Davis [mailto:keithdavis@pridedallas.com]
Sent: Monday, February 22, 2010 6:14 AM
To: Pierre Joye; Robert
Cc: php-windows@lists.php.net
Subject: RE: [PHP-WIN] What about php 5.3 and printers or
PHP_PRINTER.DLL ?

Well, I'm on Server 2003, and I still cannot print. It only works with
impersonate turned off, and that is not a solution, as I need to connect
to remote files.=20



Keith Davis (214) 906-5183

-----Original Message-----
From: Pierre Joye [mailto:pierre.php@gmail.com]
Sent: Monday, February 22, 2010 8:11 AM
To: Robert
Cc: php-windows@lists.php.net
Subject: Re: [PHP-WIN] What about php 5.3 and printers or
PHP_PRINTER.DLL ?

hi,

It works just fine here, did you install the print server?

Cheers,

On Mon, Feb 22, 2010 at 3:03 PM, Robert wrote:
> About no chance to print on a shared printer from windows server 2008.
>
> Please note that for some unknown reason, it is either impossible to=20
> mount a shared printer on windows server 2008. Maybe that errors and=20
> issues printing from php are connected to this issue.
>
> The only chance we had found to print on a shared printer from windows

> 2008, is to mount the printer as local printer and as port, to give=20
> the full tcp/ip path + the shared name for the shared printer.
>
> Hope this can help anybody that have the same issue.
>
> Kind regards
>
>
> ""Keith Davis"" ha scritto nel messaggio=20
> news:B0BACCAA54A7CC479FB67D9494FB018A8CC927@dc01.pridedallas .com...
> How is that user specified?
>
>
>
> Keith Davis (214) 906-5183
>
> -----Original Message-----
> From: Pierre Joye [mailto:pierre.php@gmail.com]
> Sent: Friday, February 05, 2010 3:26 PM
> To: Keith Davis
> Cc: Robert; php-windows@lists.php.net
> Subject: Re: [PHP-WIN] What about php 5.3 and printers or=20
> PHP_PRINTER.DLL ?
>
> On Fri, Feb 5, 2010 at 10:16 PM, Keith Davis=20
> wrote:
>> I found a post that said to set fastcgi.impersonate =3D 0 to fix this=20
>> problem. It did.
>>
>> Can someone clarify what that setting does?
>
> It allows a server to run php-cgi under a given user. But that should=20
> not affect printer at all, except if the user does not have the=20
> permission to use this printer.
>
> Cheers,
> --
> Pierre
>
> @pierrejoye | http://blog.thepimp.net | http://www.libgd.org
>
> This message (including any attachments) may contain confidential or=20
> otherwise privileged information and is intended only for the
> individual(s) to which it is addressed. If you are not the named=20
> addressee you should not disseminate, distribute or copy this e-mail.
> Please notify the sender immediately by e-mail if you have received=20
> this e-mail by mistake and delete this e-mail from your system. E-mail

> transmission cannot be guaranteed to be secured or error-free as=20
> information could be intercepted, corrupted, lost, destroyed, arrive=20
> late or incomplete, or contain viruses. The sender therefore does not=20
> accept liability for any errors or omissions in the contents of this
message or that arise as a result of e-mail transmission.
> If verification is required please request a hard-copy version from=20
> the sender.
>
> www.pridedallas.com
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit:=20
> http://www.php.net/unsub.php
>
>



--
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

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


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




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

RE: What about php 5.3 and printers or PHP_PRINTER.DLL ?

am 23.02.2010 17:50:23 von Venkat Raman Don

UmljaGFyZCwgSSB0cmllZCB0aGF0LiBJIHBhc3NlZCBoYW5kbGUgcmV0dXJu ZWQgYnkgT3BlblBy
aW50ZXIgdG8gRG9jdW1lbnRQcm9wZXJ0aWVzIGJ1dCBzYW1lIHJlc3VsdC4g SXQncyBub3QgdGhh
dCBmdW5jdGlvbiBmYWlscyBmb3IgYW55IGJhZCBwYXJhbWV0ZXIgcmVhc29u LiBJIGFtIGdldHRp
bmcgZXJyb3IgbnVtYmVyIDUgd2hpbGUgY2FsbGluZyBHZXRMYXN0RXJyb3Io KSB3aGljaCBtZWFu
cyBzb21lIHNvcnQgb2YgYWNjZXNzIGRlbmllZC4gQnV0IHRoZW4gd2h5IE9w ZW5QcmludGVyIGlz
IGdvaW5nIHRocm91Z2ggSSBhbSBub3QgYWJsZSB0byB1bmRlcnN0YW5kLg0K DQpUaGFua3MsDQpE
b24uDQoNCi0tLS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tDQpGcm9tOiBSaWNo YXJkIFF1YWRsaW5n
IFttYWlsdG86cnF1YWRsaW5nQGdvb2dsZW1haWwuY29tXSANClNlbnQ6IFR1 ZXNkYXksIEZlYnJ1
YXJ5IDIzLCAyMDEwIDE6MjggQU0NClRvOiBWZW5rYXQgUmFtYW4gRG9uDQpD YzogS2VpdGggRGF2
aXM7IFBpZXJyZSBKb3llOyBSb2JlcnQ7IHBocC13aW5kb3dzQGxpc3RzLnBo cC5uZXQNClN1Ympl
Y3Q6IFJlOiBbUEhQLVdJTl0gV2hhdCBhYm91dCBwaHAgNS4zIGFuZCBwcmlu dGVycyBvciBQSFBf
UFJJTlRFUi5ETEwgPw0KDQpPbiAyMiBGZWJydWFyeSAyMDEwIDIyOjMwLCBW ZW5rYXQgUmFtYW4g
RG9uIDxEb24uUmFtYW5AbWljcm9zb2Z0LmNvbT4gd3JvdGU6DQo+IERvY3Vt ZW50UHJvcGVydGll
cw0KDQpodHRwOi8vbXNkbi5taWNyb3NvZnQuY29tL2VuLXVzL2xpYnJhcnkv ZGQxODM1NzYoVlMu
ODUpLmFzcHgNCg0KTE9ORyBEb2N1bWVudFByb3BlcnRpZXMoDQogIF9faW4g ICBIV05EIGhXbmQs
DQogIF9faW4gICBIQU5ETEUgaFByaW50ZXIsDQogIF9faW4gICBMUFRTVFIg cERldmljZU5hbWUs
DQogIF9fb3V0ICBQREVWTU9ERSBwRGV2TW9kZU91dHB1dCwNCiAgX19pbiAg IFBERVZNT0RFIHBE
ZXZNb2RlSW5wdXQsDQogIF9faW4gICBEV09SRCBmTW9kZQ0KKTsNCg0KSWYg dGhlIGZNb2RlIHBh
cmFtZXRlciBpcyB6ZXJvLCB0aGUgcmV0dXJuIHZhbHVlIGlzIHRoZSBzaXpl IG9mIHRoZQ0KYnVm
ZmVyIHJlcXVpcmVkIHRvIGNvbnRhaW4gdGhlIHByaW50ZXIgZHJpdmVyIGlu aXRpYWxpemF0aW9u
IGRhdGEuDQpOb3RlIHRoYXQgdGhpcyBidWZmZXIgY2FuIGJlIGxhcmdlciB0 aGFuIGEgREVWTU9E
RSBzdHJ1Y3R1cmUgaWYgdGhlDQpwcmludGVyIGRyaXZlciBhcHBlbmRzIHBy aXZhdGUgZGF0YSB0
byB0aGUgc3RydWN0dXJlLg0KDQpJZiB0aGUgZnVuY3Rpb24gZGlzcGxheXMg dGhlIHByb3BlcnR5
IHNoZWV0LCB0aGUgcmV0dXJuIHZhbHVlIGlzDQplaXRoZXIgSURPSyBvciBJ RENBTkNFTCwgZGVw
ZW5kaW5nIG9uIHdoaWNoIGJ1dHRvbiB0aGUgdXNlciBzZWxlY3RzLg0KDQpJ ZiB0aGUgZnVuY3Rp
b24gZG9lcyBub3QgZGlzcGxheSB0aGUgcHJvcGVydHkgc2hlZXQgYW5kIGlz IHN1Y2Nlc3NmdWws
DQp0aGUgcmV0dXJuIHZhbHVlIGlzIElET0suDQoNCklmIHRoZSBmdW5jdGlv biBmYWlscywgdGhl
IHJldHVybiB2YWx1ZSBpcyBsZXNzIHRoYW4gemVyby4NCg0KLS0tLS0tLS0t LS0tLS0tLS0tLS0t
LS0tLS0tLS0tLS0tDQoNCk5vIGluZGljYXRpb24gdXBvbiB3aGF0IHRoZSBm YWlsdXJlIGlzIGZy
b20gdGhlIGNhbGwgdG8NCkRvY3VtZW50UHJvcGVydGllcywgYnV0IEkgd29u ZGVyIGlmIHN1cHBs
eWluZyBOdWxsIGZvciB0aGUgZmlyc3QgMg0KcGFyYW1ldGVycyBpcyBhcHBy b3ByaWF0ZS4gVGhl
IHNlY29uZCBwYXJhbWV0ZXIgaXMgcHJvYmFibHkgZ29pbmcgdG8NCmhhdmUg dG8gYmUgdGhlIGhh
bmRsZSByZXR1cm5lZCBieSBPcGVuUHJpbnRlci4NCg0KQnV0IHRoaXMgaXMg anVzdCBtZSByZWFk
aW5nIHRoZSBNU0ROIHBhZ2VzLiBJJ20gbm8gZXhwZXJ0ISBTb3JyeS4NCg0K UmljaGFyZC4NCi0t
IA0KLS0tLS0NClJpY2hhcmQgUXVhZGxpbmcNCiJTdGFuZGluZyBvbiB0aGUg c2hvdWxkZXJzIG9m
IHNvbWUgdmVyeSBjbGV2ZXIgZ2lhbnRzISINCkVFIDogaHR0cDovL3d3dy5l eHBlcnRzLWV4Y2hh
bmdlLmNvbS9NXzI0ODgxNC5odG1sDQpFRTRGcmVlIDogaHR0cDovL3d3dy5l eHBlcnRzLWV4Y2hh
bmdlLmNvbS9iZWNvbWVBbkV4cGVydC5qc3ANClplbmQgQ2VydGlmaWVkIEVu Z2luZWVyIDogaHR0
cDovL3plbmQuY29tL3pjZS5waHA/Yz1aRU5EMDAyNDk4JnI9MjEzNDc0NzMx DQpaT1BBIDogaHR0
cDovL3VrLnpvcGEuY29tL21lbWJlci9SUXVhZGxpbmcNCg0K

RE: What about php 5.3 and printers or PHP_PRINTER.DLL ?

am 23.02.2010 17:50:42 von Keith Davis

I will take a look at FPDF, but having the users have to first open a
PDF document and then print that creates it's own set of problems. We
have a extremely complex and integrated Intranet site that does all
kinds of reporting, and the area that it completely sucks is when it
comes to printing. Not having simple control over things like Landscape
versus Portrait or better page breaking drives us crazy.=20



Keith Davis (214) 906-5183

-----Original Message-----
From: Venkat Raman Don [mailto:Don.Raman@microsoft.com]=20
Sent: Tuesday, February 23, 2010 10:46 AM
To: Keith Davis; Pierre Joye; Robert
Cc: php-windows@lists.php.net
Subject: RE: [PHP-WIN] What about php 5.3 and printers or
PHP_PRINTER.DLL ?

I already mentioned the reason of failure. It is strange that
OpenPrinter function is passing but DocumentProperties is failing.
Ideally once OpenPrinter passes, everything should go through. And the
worst thing is that this is an abandoned package. I don't see any
maintainer for it. Why don't use something else like FPDF or something
else which is generally supported?

Thanks,
Don.

-----Original Message-----
From: Keith Davis [mailto:keithdavis@pridedallas.com]
Sent: Tuesday, February 23, 2010 5:52 AM
To: Venkat Raman Don; Pierre Joye; Robert
Cc: php-windows@lists.php.net
Subject: RE: [PHP-WIN] What about php 5.3 and printers or
PHP_PRINTER.DLL ?

Nope. I have an account called Test. It is not an Administrator account
(local or domain) and it can print to \\server05\Auth, but it fails here
too.



Keith Davis (214) 906-5183

-----Original Message-----
From: Venkat Raman Don [mailto:Don.Raman@microsoft.com]
Sent: Monday, February 22, 2010 4:30 PM
To: Keith Davis; Pierre Joye; Robert
Cc: php-windows@lists.php.net
Subject: RE: [PHP-WIN] What about php 5.3 and printers or
PHP_PRINTER.DLL ?

Hi,

I did some test on Windows7 as well as Windows Server 2008. I used
fastcgi.impersonate=3D1 in both the cases. On Windows 7 everything is
fine. From Windows Server 2008 I am getting below error:

Fatal error: Out of memory (allocated 524288) (tried to allocate
4294967295 bytes) in C:\inetpub\wwwroot\phptest\print.php on line 2

The test file 'print.php' is a simple PHP file where I am making one
call to printer_open.

So went and debugged the code. In the function printer_open
implementation, we make call to OpenPrinter and later to
DocumentProperties. For some reason (I haven't figured it yet),
OpenPrinter call is success whereas DocumentProperties fails and returns
a negative number. Now look at the code below:

if (OpenPrinter(resource->name, &resource->handle, NULL) !=3D 0) {
=20
resource->pi2 =3D (PRINTER_INFO_2
*)emalloc(sizeof(PRINTER_INFO_2));
=20
resource->pi2->pDevMode =3D (DEVMODE
*)emalloc(DocumentProperties(NULL, NULL, resource->name, NULL, NULL,
0));
=20
if (DocumentProperties(NULL, resource->handle,
resource->name, resource->pi2->pDevMode, NULL, DM_OUT_BUFFER) == =
IDOK) {

Above the code tries to use Zend allocator to allocate memory assuming
DocumentProperties returned a valid value (here the actual size).
However DocumentProperties returned a negative value meaning failure and
I believe this value is treated as unsigned integer leading to a huge
value and thus the above message.

Regarding why DocumentProperties fails, I am not very sure. And this
happens on Win2k3 too. Look at the bug reported at
http://pecl.php.net/bugs/bug.php?id=3D12293 long time back.

Keith, you can try accessing the printer under a normal account and
which is not part of administrator group and see if this helps. Ensure
that the normal user has permission to access the printer.

Thanks,
Don.


-----Original Message-----
From: Keith Davis [mailto:keithdavis@pridedallas.com]
Sent: Monday, February 22, 2010 6:14 AM
To: Pierre Joye; Robert
Cc: php-windows@lists.php.net
Subject: RE: [PHP-WIN] What about php 5.3 and printers or
PHP_PRINTER.DLL ?

Well, I'm on Server 2003, and I still cannot print. It only works with
impersonate turned off, and that is not a solution, as I need to connect
to remote files.=20



Keith Davis (214) 906-5183

-----Original Message-----
From: Pierre Joye [mailto:pierre.php@gmail.com]
Sent: Monday, February 22, 2010 8:11 AM
To: Robert
Cc: php-windows@lists.php.net
Subject: Re: [PHP-WIN] What about php 5.3 and printers or
PHP_PRINTER.DLL ?

hi,

It works just fine here, did you install the print server?

Cheers,

On Mon, Feb 22, 2010 at 3:03 PM, Robert wrote:
> About no chance to print on a shared printer from windows server 2008.
>
> Please note that for some unknown reason, it is either impossible to=20
> mount a shared printer on windows server 2008. Maybe that errors and=20
> issues printing from php are connected to this issue.
>
> The only chance we had found to print on a shared printer from windows

> 2008, is to mount the printer as local printer and as port, to give=20
> the full tcp/ip path + the shared name for the shared printer.
>
> Hope this can help anybody that have the same issue.
>
> Kind regards
>
>
> ""Keith Davis"" ha scritto nel messaggio=20
> news:B0BACCAA54A7CC479FB67D9494FB018A8CC927@dc01.pridedallas .com...
> How is that user specified?
>
>
>
> Keith Davis (214) 906-5183
>
> -----Original Message-----
> From: Pierre Joye [mailto:pierre.php@gmail.com]
> Sent: Friday, February 05, 2010 3:26 PM
> To: Keith Davis
> Cc: Robert; php-windows@lists.php.net
> Subject: Re: [PHP-WIN] What about php 5.3 and printers or=20
> PHP_PRINTER.DLL ?
>
> On Fri, Feb 5, 2010 at 10:16 PM, Keith Davis=20
> wrote:
>> I found a post that said to set fastcgi.impersonate =3D 0 to fix this =

>> problem. It did.
>>
>> Can someone clarify what that setting does?
>
> It allows a server to run php-cgi under a given user. But that should=20
> not affect printer at all, except if the user does not have the=20
> permission to use this printer.
>
> Cheers,
> --
> Pierre
>
> @pierrejoye | http://blog.thepimp.net | http://www.libgd.org
>
> This message (including any attachments) may contain confidential or=20
> otherwise privileged information and is intended only for the
> individual(s) to which it is addressed. If you are not the named=20
> addressee you should not disseminate, distribute or copy this e-mail.
> Please notify the sender immediately by e-mail if you have received=20
> this e-mail by mistake and delete this e-mail from your system. E-mail

> transmission cannot be guaranteed to be secured or error-free as=20
> information could be intercepted, corrupted, lost, destroyed, arrive=20
> late or incomplete, or contain viruses. The sender therefore does not=20
> accept liability for any errors or omissions in the contents of this
message or that arise as a result of e-mail transmission.
> If verification is required please request a hard-copy version from=20
> the sender.
>
> www.pridedallas.com
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit:=20
> http://www.php.net/unsub.php
>
>



--
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

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


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




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

RE: What about php 5.3 and printers or PHP_PRINTER.DLL ?

am 24.02.2010 01:36:26 von Louis Solomon

RG9jdW1lbnRQcm9wZXJ0aWVzIGlzIHByb2JhYmx5IHRyeWluZyB0byBsb2Fk IHNvbWUgM3JkIHBh
cnR5IHByaW50ZXIgZGxsIGV4dGVuc2lvbnMuICBTdWdnZXN0IHVzaW5nIHBy b2Ntb24uZXhlIGFu
ZCBmaWx0ZXIgZm9yIGFjY2VzcyBkZW5pZWQgdG8gc2VlIHdoYXQgaXMgZmFp bGluZw0KDQpMb3Vp
cyBTb2xvbW9uDQp3d3cuU3RlZWxCeXRlcy5jb20NCg0KLS0tLS1PcmlnaW5h bCBNZXNzYWdlLS0t
LS0NCkZyb206IFZlbmthdCBSYW1hbiBEb24gW21haWx0bzpEb24uUmFtYW5A bWljcm9zb2Z0LmNv
bV0gDQpTZW50OiBXZWRuZXNkYXksIDI0IEZlYnJ1YXJ5IDIwMTAgMzo1MCBB TQ0KVG86IFJRdWFk
bGluZ0Bnb29nbGVtYWlsLmNvbQ0KQ2M6IEtlaXRoIERhdmlzOyBQaWVycmUg Sm95ZTsgUm9iZXJ0
OyBwaHAtd2luZG93c0BsaXN0cy5waHAubmV0DQpTdWJqZWN0OiBSRTogW1BI UC1XSU5dIFdoYXQg
YWJvdXQgcGhwIDUuMyBhbmQgcHJpbnRlcnMgb3IgUEhQX1BSSU5URVIuRExM ID8NCg0KUmljaGFy
ZCwgSSB0cmllZCB0aGF0LiBJIHBhc3NlZCBoYW5kbGUgcmV0dXJuZWQgYnkg T3BlblByaW50ZXIg
dG8gRG9jdW1lbnRQcm9wZXJ0aWVzIGJ1dCBzYW1lIHJlc3VsdC4gSXQncyBu b3QgdGhhdCBmdW5j
dGlvbiBmYWlscyBmb3IgYW55IGJhZCBwYXJhbWV0ZXIgcmVhc29uLiBJIGFt IGdldHRpbmcgZXJy
b3IgbnVtYmVyIDUgd2hpbGUgY2FsbGluZyBHZXRMYXN0RXJyb3IoKSB3aGlj aCBtZWFucyBzb21l
IHNvcnQgb2YgYWNjZXNzIGRlbmllZC4gQnV0IHRoZW4gd2h5IE9wZW5Qcmlu dGVyIGlzIGdvaW5n
IHRocm91Z2ggSSBhbSBub3QgYWJsZSB0byB1bmRlcnN0YW5kLg0KDQpUaGFu a3MsDQpEb24uDQoN
Ci0tLS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tDQpGcm9tOiBSaWNoYXJkIFF1 YWRsaW5nIFttYWls
dG86cnF1YWRsaW5nQGdvb2dsZW1haWwuY29tXSANClNlbnQ6IFR1ZXNkYXks IEZlYnJ1YXJ5IDIz
LCAyMDEwIDE6MjggQU0NClRvOiBWZW5rYXQgUmFtYW4gRG9uDQpDYzogS2Vp dGggRGF2aXM7IFBp
ZXJyZSBKb3llOyBSb2JlcnQ7IHBocC13aW5kb3dzQGxpc3RzLnBocC5uZXQN ClN1YmplY3Q6IFJl
OiBbUEhQLVdJTl0gV2hhdCBhYm91dCBwaHAgNS4zIGFuZCBwcmludGVycyBv ciBQSFBfUFJJTlRF
Ui5ETEwgPw0KDQpPbiAyMiBGZWJydWFyeSAyMDEwIDIyOjMwLCBWZW5rYXQg UmFtYW4gRG9uIDxE
b24uUmFtYW5AbWljcm9zb2Z0LmNvbT4gd3JvdGU6DQo+IERvY3VtZW50UHJv cGVydGllcw0KDQpo
dHRwOi8vbXNkbi5taWNyb3NvZnQuY29tL2VuLXVzL2xpYnJhcnkvZGQxODM1 NzYoVlMuODUpLmFz
cHgNCg0KTE9ORyBEb2N1bWVudFByb3BlcnRpZXMoDQogIF9faW4gICBIV05E IGhXbmQsDQogIF9f
aW4gICBIQU5ETEUgaFByaW50ZXIsDQogIF9faW4gICBMUFRTVFIgcERldmlj ZU5hbWUsDQogIF9f
b3V0ICBQREVWTU9ERSBwRGV2TW9kZU91dHB1dCwNCiAgX19pbiAgIFBERVZN T0RFIHBEZXZNb2Rl
SW5wdXQsDQogIF9faW4gICBEV09SRCBmTW9kZQ0KKTsNCg0KSWYgdGhlIGZN b2RlIHBhcmFtZXRl
ciBpcyB6ZXJvLCB0aGUgcmV0dXJuIHZhbHVlIGlzIHRoZSBzaXplIG9mIHRo ZQ0KYnVmZmVyIHJl
cXVpcmVkIHRvIGNvbnRhaW4gdGhlIHByaW50ZXIgZHJpdmVyIGluaXRpYWxp emF0aW9uIGRhdGEu
DQpOb3RlIHRoYXQgdGhpcyBidWZmZXIgY2FuIGJlIGxhcmdlciB0aGFuIGEg REVWTU9ERSBzdHJ1
Y3R1cmUgaWYgdGhlDQpwcmludGVyIGRyaXZlciBhcHBlbmRzIHByaXZhdGUg ZGF0YSB0byB0aGUg
c3RydWN0dXJlLg0KDQpJZiB0aGUgZnVuY3Rpb24gZGlzcGxheXMgdGhlIHBy b3BlcnR5IHNoZWV0
LCB0aGUgcmV0dXJuIHZhbHVlIGlzDQplaXRoZXIgSURPSyBvciBJRENBTkNF TCwgZGVwZW5kaW5n
IG9uIHdoaWNoIGJ1dHRvbiB0aGUgdXNlciBzZWxlY3RzLg0KDQpJZiB0aGUg ZnVuY3Rpb24gZG9l
cyBub3QgZGlzcGxheSB0aGUgcHJvcGVydHkgc2hlZXQgYW5kIGlzIHN1Y2Nl c3NmdWwsDQp0aGUg
cmV0dXJuIHZhbHVlIGlzIElET0suDQoNCklmIHRoZSBmdW5jdGlvbiBmYWls cywgdGhlIHJldHVy
biB2YWx1ZSBpcyBsZXNzIHRoYW4gemVyby4NCg0KLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0t
LS0tLS0tDQoNCk5vIGluZGljYXRpb24gdXBvbiB3aGF0IHRoZSBmYWlsdXJl IGlzIGZyb20gdGhl
IGNhbGwgdG8NCkRvY3VtZW50UHJvcGVydGllcywgYnV0IEkgd29uZGVyIGlm IHN1cHBseWluZyBO
dWxsIGZvciB0aGUgZmlyc3QgMg0KcGFyYW1ldGVycyBpcyBhcHByb3ByaWF0 ZS4gVGhlIHNlY29u
ZCBwYXJhbWV0ZXIgaXMgcHJvYmFibHkgZ29pbmcgdG8NCmhhdmUgdG8gYmUg dGhlIGhhbmRsZSBy
ZXR1cm5lZCBieSBPcGVuUHJpbnRlci4NCg0KQnV0IHRoaXMgaXMganVzdCBt ZSByZWFkaW5nIHRo
ZSBNU0ROIHBhZ2VzLiBJJ20gbm8gZXhwZXJ0ISBTb3JyeS4NCg0KUmljaGFy ZC4NCi0tIA0KLS0t
LS0NClJpY2hhcmQgUXVhZGxpbmcNCiJTdGFuZGluZyBvbiB0aGUgc2hvdWxk ZXJzIG9mIHNvbWUg
dmVyeSBjbGV2ZXIgZ2lhbnRzISINCkVFIDogaHR0cDovL3d3dy5leHBlcnRz LWV4Y2hhbmdlLmNv
bS9NXzI0ODgxNC5odG1sDQpFRTRGcmVlIDogaHR0cDovL3d3dy5leHBlcnRz LWV4Y2hhbmdlLmNv
bS9iZWNvbWVBbkV4cGVydC5qc3ANClplbmQgQ2VydGlmaWVkIEVuZ2luZWVy IDogaHR0cDovL3pl
bmQuY29tL3pjZS5waHA/Yz1aRU5EMDAyNDk4JnI9MjEzNDc0NzMxDQpaT1BB IDogaHR0cDovL3Vr
LnpvcGEuY29tL21lbWJlci9SUXVhZGxpbmcNCg0K

Re: What about php 5.3 and printers or PHP_PRINTER.DLL ?

am 24.02.2010 10:26:42 von Pierre Joye

In this case it won't work with impersonate=3D1.

On Wed, Feb 24, 2010 at 1:36 AM, Louis Solomon wrote=
:
> DocumentProperties is probably trying to load some 3rd party printer dll =
extensions. =A0Suggest using procmon.exe and filter for access denied to se=
e what is failing
>
> Louis Solomon
> www.SteelBytes.com
>
> -----Original Message-----
> From: Venkat Raman Don [mailto:Don.Raman@microsoft.com]
> Sent: Wednesday, 24 February 2010 3:50 AM
> To: RQuadling@googlemail.com
> Cc: Keith Davis; Pierre Joye; Robert; php-windows@lists.php.net
> Subject: RE: [PHP-WIN] What about php 5.3 and printers or PHP_PRINTER.DLL=
?
>
> Richard, I tried that. I passed handle returned by OpenPrinter to Documen=
tProperties but same result. It's not that function fails for any bad param=
eter reason. I am getting error number 5 while calling GetLastError() which=
means some sort of access denied. But then why OpenPrinter is going throug=
h I am not able to understand.
>
> Thanks,
> Don.
>
> -----Original Message-----
> From: Richard Quadling [mailto:rquadling@googlemail.com]
> Sent: Tuesday, February 23, 2010 1:28 AM
> To: Venkat Raman Don
> Cc: Keith Davis; Pierre Joye; Robert; php-windows@lists.php.net
> Subject: Re: [PHP-WIN] What about php 5.3 and printers or PHP_PRINTER.DLL=
?
>
> On 22 February 2010 22:30, Venkat Raman Don wro=
te:
>> DocumentProperties
>
> http://msdn.microsoft.com/en-us/library/dd183576(VS.85).aspx
>
> LONG DocumentProperties(
> =A0__in =A0 HWND hWnd,
> =A0__in =A0 HANDLE hPrinter,
> =A0__in =A0 LPTSTR pDeviceName,
> =A0__out =A0PDEVMODE pDevModeOutput,
> =A0__in =A0 PDEVMODE pDevModeInput,
> =A0__in =A0 DWORD fMode
> );
>
> If the fMode parameter is zero, the return value is the size of the
> buffer required to contain the printer driver initialization data.
> Note that this buffer can be larger than a DEVMODE structure if the
> printer driver appends private data to the structure.
>
> If the function displays the property sheet, the return value is
> either IDOK or IDCANCEL, depending on which button the user selects.
>
> If the function does not display the property sheet and is successful,
> the return value is IDOK.
>
> If the function fails, the return value is less than zero.
>
> ---------------------------------
>
> No indication upon what the failure is from the call to
> DocumentProperties, but I wonder if supplying Null for the first 2
> parameters is appropriate. The second parameter is probably going to
> have to be the handle returned by OpenPrinter.
>
> But this is just me reading the MSDN pages. I'm no expert! Sorry.
>
> Richard.
> --
> -----
> Richard Quadling
> "Standing on the shoulders of some very clever giants!"
> EE : http://www.experts-exchange.com/M_248814.html
> EE4Free : http://www.experts-exchange.com/becomeAnExpert.jsp
> Zend Certified Engineer : http://zend.com/zce.php?c=3DZEND002498&r=3D2134=
74731
> ZOPA : http://uk.zopa.com/member/RQuadling
>
>



--=20
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

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