php-windows Digest 25 Aug 2001 01:09:27 -0000 Issue 719

Topics (messages 9035 through 9055):

Re: managing bounced mail
        9035 by: Matthias Maar
        9050 by: Mike Flynn
        9055 by: Mike Flynn

Compiling PHP as a filter for apache2 on win32
        9036 by: Paulius Bulotas

Date
        9037 by: Sichta Daniel
        9038 by: Camelia Moldovan

PHP & MSSQL server communication
        9039 by: Jan Walter

Problem with php_gd.dll
        9040 by: Celine Rimeur
        9041 by: Angie Tollerson
        9042 by: Daniel Beulshausen
        9043 by: Angie Tollerson
        9045 by: Daniel Beulshausen

Help with PHP/Apache/Win98 install
        9044 by: Chris Scott

printer_start_doc
        9046 by: Rob Cox
        9047 by: Erik H. Mathy
        9048 by: Rob Cox
        9049 by: Erik H. Mathy
        9051 by: Rob Cox
        9052 by: Daniel Beulshausen
        9053 by: Rob Cox
        9054 by: Rob Cox

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]


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


Hi.

Just a comment about the return-path:
The mail() function requires additional headers to be case sensitive
depending on the OS PHP/SMTP is running on. Under Linux I think you have to
write them "Reply-To" and "Return-Path" according to the manual
(http://www.php.net/manual/en/function.mail.php).


MfG
Maar

----------------------------------------
Matthias Maar
Lehrstuhl für Informatik I
Universität Würzburg
Am Hubland
D-97074 Würzburg
Germany
Tel.: ++49 (0) 931/888-4941
Fax: ++49 (0) 931/888-4600
http://www1.informatik.uni-wuerzburg.de

"P.Agenbag" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi, this problem isn't really Windows specific...
>
> I have a client on one of my webservers who is causing me great
> headaches. He wrote  php mail function that reads approx 17 000 e-mail
> addresses out of a mysql table, and then mails them all a standard
> newsletter.
> Firstly, the page bombs out ( no wonder really...) but before it does,
> it sends out as many mails as it can loop through in the 30s. I have
> checked the script, and he does add headers,; reply-to, return-path,
> from etc., yet, when the mail he sends starts to bounce, they all end up
> in the "root" account mailbox, as sendmail sees at as mail sent by users
> nobody@mydomain. For some reason, the Return-path header is ignored. I
> would really like to route these errors to his mailbox so he can handle
> the bouncers. Furthermore, concerning this problem of the bulk mail.
> I've had several people tell me that PHP is not the right way to send
> bulk mail, yet, I know of no other way to read addresses from a mysql
> table and send it as easily as with PHP. I was just wondering if there
> is another way of doing it with PHP so my server won't get bombarded
> with all these sendmail calls, ie, some way of pausing the sending
> process after every nth mail so sendmail can catch up. I've heard people
> talk about "sending the process to the background", but that sounds way
> too loose a term...
> Can someone here help me out?
>
> Thanks a lot.
>
>






If it is indeed on a Windows server, check your php.ini file.
Look for the entry:
; For Win32 only.
sendmail_from= [EMAIL PROTECTED] ; for Win32 only
And put the e-mail address you'd like the SMTP server to see as the sender 
there.

-Mike

At 10:59 PM 8/22/01 +0200, you wrote:
>Hi, this problem isn't really Windows specific...
>
>I have a client on one of my webservers who is causing me great
>headaches. He wrote  php mail function that reads approx 17 000 e-mail
>addresses out of a mysql table, and then mails them all a standard
>newsletter.
>Firstly, the page bombs out ( no wonder really...) but before it does,
>it sends out as many mails as it can loop through in the 30s. I have
>checked the script, and he does add headers,; reply-to, return-path,
>from etc., yet, when the mail he sends starts to bounce, they all end up
>in the "root" account mailbox, as sendmail sees at as mail sent by users
>nobody@mydomain. For some reason, the Return-path header is ignored. I
>would really like to route these errors to his mailbox so he can handle
>the bouncers. Furthermore, concerning this problem of the bulk mail.
>I've had several people tell me that PHP is not the right way to send
>bulk mail, yet, I know of no other way to read addresses from a mysql
>table and send it as easily as with PHP. I was just wondering if there
>is another way of doing it with PHP so my server won't get bombarded
>with all these sendmail calls, ie, some way of pausing the sending
>process after every nth mail so sendmail can catch up. I've heard people
>talk about "sending the process to the background", but that sounds way
>too loose a term...
>Can someone here help me out?
>
>Thanks a lot.
>
>
>
>--
>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]


               -=- Mike Flynn - Burlington, VT -=-
[EMAIL PROTECTED]  http://www.mikeflynn.net/  * Give blood *
  "this is a subversive quote"






If it is indeed on a Windows server, check your php.ini file.
Look for the entry:
; For Win32 only.
sendmail_from= [EMAIL PROTECTED] ; for Win32 only
And put the e-mail address you'd like the SMTP server to see as the sender 
there.

-Mike

At 10:59 PM 8/22/01 +0200, you wrote:
>Hi, this problem isn't really Windows specific...
>
>I have a client on one of my webservers who is causing me great
>headaches. He wrote  php mail function that reads approx 17 000 e-mail
>addresses out of a mysql table, and then mails them all a standard
>newsletter.
>Firstly, the page bombs out ( no wonder really...) but before it does,
>it sends out as many mails as it can loop through in the 30s. I have
>checked the script, and he does add headers,; reply-to, return-path,
>from etc., yet, when the mail he sends starts to bounce, they all end up
>in the "root" account mailbox, as sendmail sees at as mail sent by users
>nobody@mydomain. For some reason, the Return-path header is ignored. I
>would really like to route these errors to his mailbox so he can handle
>the bouncers. Furthermore, concerning this problem of the bulk mail.
>I've had several people tell me that PHP is not the right way to send
>bulk mail, yet, I know of no other way to read addresses from a mysql
>table and send it as easily as with PHP. I was just wondering if there
>is another way of doing it with PHP so my server won't get bombarded
>with all these sendmail calls, ie, some way of pausing the sending
>process after every nth mail so sendmail can catch up. I've heard people
>talk about "sending the process to the background", but that sounds way
>too loose a term...
>Can someone here help me out?
>
>Thanks a lot.
>
>
>
>--
>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]


               -=- Mike Flynn - Burlington, VT -=-
[EMAIL PROTECTED]  http://www.mikeflynn.net/  * Give blood *
  "this is a subversive quote"






Hello list,

has anyone succeeded doing $subj and wants to share instructions/way of doing this?
I've got latest cvs snapshot, but there's none info on compiling it for apache2 (only 
on unix).

TIA
Regards,
Paulius




Hi,
Is there any function in php to solve this ?
there is date - 24.08.2001 and I need to add 10 days to it and convert to
the date format. So result should be - 03.09.2001
 
dan





date("Y-m-d",mktime(0,0,0,8,34,2001));


--- Sichta Daniel <[EMAIL PROTECTED]> wrote:
> Hi,
> Is there any function in php to solve this ?
> there is date - 24.08.2001 and I need to add 10 days
> to it and convert to
> the date format. So result should be - 03.09.2001
>  
> dan
> 


__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/




Hi all,

does anybody know, if it is possible to set the way of communication
(code page) between php mssql_* functions and MSSQL server and how? I
have encounered this situation: all my dbases are set to Czech
collations (I suppose it's win-1250 encoding), but when I send a query
via php, lots of characters above 128 bits are malformed.

I have found out, that the communication runs od DOS CP852, but I would
prefer win-1250 or iso-8859-2.

Thanx for any hint!!!
--
__________________________________________________________________________________________

==========================================================================================

Jan Walter, called John
LERACH, s.r.o.
phone nr. work: +420-2-78 22 619, home: +420-2-35 35 27 61
on emergency call cell phone: +420-602-385 760
work e-mail mailto:[EMAIL PROTECTED]
private e-mail mailto:[EMAIL PROTECTED]
ICQ#: 28353428
__________________________________________________________________________________________

==========================================================================================







Hi all,

I just installed PHP on IIS and there are some functions I can't use like
imagecreate whereas I have the php_gd.dll.

Do you have any suggestions to resolve the problem?

Thanks

Celine







Celine,
You need to do two things:
first, make sure you have the dll "gds32.dll" from the dll folder copied into the same 
folder your php.exe is sitting.  Next, don't use the imagecreate() function, use 
imagecreatetruecolor() function since the beta of this gd 32 seems to have a bug in it.
Angie

>>> "Celine Rimeur" <[EMAIL PROTECTED]> 08/24/01 11:23AM >>>
Hi all,

I just installed PHP on IIS and there are some functions I can't use like
imagecreate whereas I have the php_gd.dll.

Do you have any suggestions to resolve the problem?

Thanks

Celine




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






At 11:29 24.08.2001 -0500, Angie Tollerson wrote:
>Celine,
>You need to do two things:
>first, make sure you have the dll "gds32.dll" from the dll folder copied 
>into the same folder your php.exe is sitting.  Next, don't use the

uh? gds32.dll is need for the interbase extension but not for the gd :)

>imagecreate() function, use imagecreatetruecolor() function since the beta 
>of this gd 32 seems to have a bug in it.
>Angie

check if the extension is loaded:
print extension_loaded("gd") ? "gd is loaded" : "gd isn't loaded";
if the extension isn't loaded verify that your php.ini get's read (copy it 
to %WINDIR%), and set the proper extension path.

daniel

> >>> "Celine Rimeur" <[EMAIL PROTECTED]> 08/24/01 11:23AM >>>
>Hi all,
>
>I just installed PHP on IIS and there are some functions I can't use like
>imagecreate whereas I have the php_gd.dll.
>
>Do you have any suggestions to resolve the problem?
>
>Thanks
>
>Celine
>
>
>
>
>--
>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]
>
>
>
>--
>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





My bad, Daniel, you are right, I misudnertood what that dll is for.  But she does need 
to make sure she has the gd uncommented in the php.ini file and that she is using 
imagecreatetruecolor, not imagecreate.

Angie Tollerson
Alliance Technologies
Web Programmer
(515)245-7628
[EMAIL PROTECTED]

>>> Daniel Beulshausen <[EMAIL PROTECTED]> 08/24/01 11:51AM >>>
At 11:29 24.08.2001 -0500, Angie Tollerson wrote:
>Celine,
>You need to do two things:
>first, make sure you have the dll "gds32.dll" from the dll folder copied 
>into the same folder your php.exe is sitting.  Next, don't use the

uh? gds32.dll is need for the interbase extension but not for the gd :)

>imagecreate() function, use imagecreatetruecolor() function since the beta 
>of this gd 32 seems to have a bug in it.
>Angie

check if the extension is loaded:
print extension_loaded("gd") ? "gd is loaded" : "gd isn't loaded";
if the extension isn't loaded verify that your php.ini get's read (copy it 
to %WINDIR%), and set the proper extension path.

daniel

> >>> "Celine Rimeur" <[EMAIL PROTECTED]> 08/24/01 11:23AM >>>
>Hi all,
>
>I just installed PHP on IIS and there are some functions I can't use like
>imagecreate whereas I have the php_gd.dll.
>
>Do you have any suggestions to resolve the problem?
>
>Thanks
>
>Celine
>
>
>
>
>--
>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] 
>
>
>
>--
>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 






At 11:53 24.08.2001 -0500, Angie Tollerson wrote:
>My bad, Daniel, you are right, I misudnertood what that dll is for.  But 
>she does need to make sure she has the gd uncommented in the php.ini file 
>and that she is using imagecreatetruecolor, not imagecreate.

only 4.0.6's gd was broken :(
try using http://www.php4win.com/~daniel/php-4.0.7rc1-win32.zip
i won't use imagecreatetruecolor (gd2 functions) as gd2beta is somewhat buggy.

daniel

>Angie Tollerson
>Alliance Technologies
>Web Programmer
>(515)245-7628
>[EMAIL PROTECTED]
>
> >>> Daniel Beulshausen <[EMAIL PROTECTED]> 08/24/01 11:51AM >>>
>At 11:29 24.08.2001 -0500, Angie Tollerson wrote:
> >Celine,
> >You need to do two things:
> >first, make sure you have the dll "gds32.dll" from the dll folder copied
> >into the same folder your php.exe is sitting.  Next, don't use the
>
>uh? gds32.dll is need for the interbase extension but not for the gd :)
>
> >imagecreate() function, use imagecreatetruecolor() function since the beta
> >of this gd 32 seems to have a bug in it.
> >Angie
>
>check if the extension is loaded:
>print extension_loaded("gd") ? "gd is loaded" : "gd isn't loaded";
>if the extension isn't loaded verify that your php.ini get's read (copy it
>to %WINDIR%), and set the proper extension path.
>
>daniel
>
> > >>> "Celine Rimeur" <[EMAIL PROTECTED]> 08/24/01 11:23AM >>>
> >Hi all,
> >
> >I just installed PHP on IIS and there are some functions I can't use like
> >imagecreate whereas I have the php_gd.dll.
> >
> >Do you have any suggestions to resolve the problem?
> >
> >Thanks
> >
> >Celine
> >
> >
> >
> >
> >--
> >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]
> >
> >
> >
> >--
> >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]
using php on windows? http://www.php4win.de





Hello Everyone

I have installed php on my win98 computer with Apache.  The php files are in
c:\php directory.  I put a test script in the Apache htdocs directory and
ran the script but all I getting is the raw text of the script file.  Php
does not appear to be processing file(http://localhost/test.php) and no
errors appear.   Can anyone tell what I'm doing incorrectly?

Chris Scott
[EMAIL PROTECTED]






I have been able to establish a connection to a printer. printer_start_doc and 
printer_start_page don't seem to be working. I keep on getting the following errors:

Warning: couldn't allocate new print job in E:\Archive\html\PSprint.php on line 4

Warning: couldn't start a new page in E:\Archive\html\PSprint.php on line 5

Warning: couldn't end the page in E:\Archive\html\PSprint.php on line 35

Fatal error: couldn't terminate print job in E:\Archive\html\PSprint.php on line 36


any ideas?





> I have been able to establish a connection to a printer.

Sweet!

> printer_start_doc and printer_start_page don't seem to be working. I
> keep on getting the following errors:
>
> Warning: couldn't allocate new print job in E:\Archive\html\PSprint.php
> on line 4

Sounds like a possible permissions issue, perhaps. You're running under the
iuse_computername account, right?

Just a "off the top o' my lid" thought,
- Erik





Yes I believe that I a m running under the IUSR_ComputerName account. I'll
have to verify permissions.
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.

I would like to thank you Erik. You pushed me in the right direction to get
to here.



"Erik H. Mathy" <[EMAIL PROTECTED]> wrote in message
005001c12cc1$2be4f4e0$1300020a@erik_laptop">news:005001c12cc1$2be4f4e0$1300020a@erik_laptop...
> > I have been able to establish a connection to a printer.
>
> Sweet!
>
> > printer_start_doc and printer_start_page don't seem to be working. I
> > keep on getting the following errors:
> >
> > Warning: couldn't allocate new print job in E:\Archive\html\PSprint.php
> > on line 4
>
> Sounds like a possible permissions issue, perhaps. You're running under
the
> iuse_computername account, right?
>
> Just a "off the top o' my lid" thought,
> - Erik
>






> 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





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.



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






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





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
>






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);



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




Reply via email to