php-windows Digest 25 Aug 2001 15:02:11 -0000 Issue 720

Topics (messages 9056 through 9057):

Re: printer_start_doc
        9056 by: Daniel Beulshausen

PHP and JAVA error???
        9057 by: Kumschick Alain

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


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


At 15:08 24.08.2001 -0400, Rob Cox wrote:
>Updated to 4.0.7rc1 and it still didn't work.
>Here's my snippet:
>
>$handle = printer_open("\\\kinkos\\kinkos");
>printer_start_doc($handle, "Project Status");
>printer_start_page($handle);
>printer_write($handle, "any text");
>printer_end_page($handle);
>printer_end_doc($handle);
>printer_close($handle);

i'm unable to reproduce this locally, i'll try to figure that out in a 
network later.
which OS is the server/client running.
btw: don't use printer_write. it's for sending raw printer data, you'll 
have to do something like

$handle = printer_open();
printer_set_option($handle, PRINTER_MODE, "TEXT");
printer_write($handle, "Text to print");
printer_close($handle);

better see http://php.net/manual/en/function.printer-draw-text.php

daniel

p.s.: you can also contact me privately

>"Rob Cox" <[EMAIL PROTECTED]> wrote in message
>[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > I will give it a try. Thanks.
> >
> > "Daniel Beulshausen" <[EMAIL PROTECTED]> wrote in message
> > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > At 14:20 24.08.2001 -0400, Rob Cox wrote:
> > > >I've made sure that the printer is available to IUSR_ALPHA (my server).
> > The
> > > >printer is actually open to everyone but I made sure that IUSR_ALPHA
>was
> > > >specified too. Nothing. Still get the same error.
> > >
> > > please try http://www.php4win.com/~daniel/php-4.0.7rc1-win32.zip
> > > there have been some fixes to the extension since 4.0.6.
> > > if that still doesn't work please provide some reproducing code.
> > > sounds like printer_start_doc() is failing (permission problem, no
>device
> > > context created/failed,...).
> > >
> > > daniel
> > >
> > >
> > >
> > > >"Erik H. Mathy" <[EMAIL PROTECTED]> wrote in message
> > > >005101c12cc2$fb03c390$1300020a@erik_laptop">news:005101c12cc2$fb03c390$1300020a@erik_laptop...
> > > > > > Yes I believe that I a m running under the IUSR_ComputerName
> > account.
> > > >I'll
> > > > > > have to verify permissions.
> > > > >
> > > > > Do that. If it's a printer being shared over the network, it's
>subject
> > to
> > > > > either the domain permissions or the permissions specific to the box
> > doing
> > > > > the sharing (or both, actually). Wow. That was a long-ass runon
> > sentence!
> > > > >
> > > > > > I've just noticed that the handle that is being returned is
>showing
> > as
> > > > > > 'Resource id #1'.  I have no idea about that but it makes sense
>that
> > if
> > > >I
> > > > > > don't have a proper handle, I won't be able to create a doc.
> > > > >
> > > > > That's because you're running PHP4. It ID's things like connections,
> > > > > etc...as Resource #(whathaveyou). It's an interesting way to keep
> > track of
> > > > > how many major resources you have in a script. ;)
> > > > >
> > > > > > I would like to thank you Erik. You pushed me in the right
> > > > > > direction to get to here.
> > > > >
> > > > > Bah, piffle, tain't no thing. It's nothing you wouldn't have come up
> > with,
> > > > > I'm sure. Besides...it's good karma. You get some, you pass it on!
> > > > >
> > > > > - Erik
> > > > >
> > > >
> > > >
> > > >
> > > >--
> > > >PHP Windows Mailing List (http://www.php.net/)
> > > >To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > >For additional commands, e-mail: [EMAIL PROTECTED]
> > > >To contact the list administrators, e-mail:
>[EMAIL PROTECTED]
> > >
> > >
> > > /*--
> > > daniel beulshausen - [EMAIL PROTECTED]
> > > using php on windows? http://www.php4win.de
> > >
> >
> >
>
>
>
>--
>PHP Windows Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]


/*--
daniel beulshausen
[EMAIL PROTECTED] - [EMAIL PROTECTED]
using php on windows? http://www.php4win.com





Wh can I make JAVA work with PHP.
I have JAVA version "jdk 1.3.1" from "sun".

I have copy/paste the JAVA line in the PHP.INI File:

*******************************************

[Java]
;java.class.path = d:\php\java\php_java.jar
;java.home = d:\jdk
;java.library = d:\jdk\jre\bin\hotspot\jvm.dll
;java.library.path = .\

*******************************************

Are there adder changes to make. Why isn't it working?



                                    --- Alain K. ---







Reply via email to