php-windows Digest 26 Oct 2006 14:47:03 -0000 Issue 3063
Topics (messages 27253 through 27256):
Re: PHP_PRINTER.DLL prints from shell but not from web
27253 by: Robert
27254 by: Niel Archer
27255 by: Robert
COM, DLL
27256 by: Amit Stein
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]
----------------------------------------------------------------------
--- Begin Message ---
I don't have the users PHP in users list.
This Apache Server and PHP are running under Windows XP Professional.
Should I create it?
Thank you for your reply
Robert
"Niel Archer" <[EMAIL PROTECTED]> ha scritto nel messaggio
news:[EMAIL PROTECTED]
> Hi,
>
> does the user php runs as in apache, have appropriate permissions for the
> shared printer?
>
> Niel
--- End Message ---
--- Begin Message ---
Hi
Usually (using the SAPI) PHP runs under the same username as Apache,
which is usually 'System', when ran as a service. If this account does
not have access to the shared resource, then neither will PHP.
Granting such access to the 'System' account is probably not a good idea.
Instead create an account for Apache to run with and tell the service to
use it. Then grant access to the printer for that account.
Niel
--- End Message ---
--- Begin Message ---
Thank you Niel for your answer it did work correctly.
Issue closed.
Regards
Robert
"Niel Archer" <[EMAIL PROTECTED]> ha scritto nel messaggio
news:[EMAIL PROTECTED]
> Hi
>
> Usually (using the SAPI) PHP runs under the same username as Apache,
> which is usually 'System', when ran as a service. If this account does
> not have access to the shared resource, then neither will PHP.
>
> Granting such access to the 'System' account is probably not a good idea.
> Instead create an account for Apache to run with and tell the service to
> use it. Then grant access to the printer for that account.
>
> Niel
--- End Message ---
--- Begin Message ---
I have this problem. I am running a php application , that calls a
dll, through COM ($obj=new COM("foo.dll"), and this works fine.
My problem is that each time i call from a php a function from this
dll, the dll initialiazes again, which happens to be very time
consuming because it reads a lot of data from a database.
My question is if there is a way (other than converting the dll into
an .exe and a window service), to keep the dll in memory, keeping all
their global variables set between calls from php.
--- End Message ---