Jump to content

php_printer.dll & IIS


paulwoolcock

Recommended Posts

PHP 5.2.5

Microsoft IIS 6.0

Windows Server 2003 R2

 

I have just enabled php_printer.dll in my php.ini file, and it works correctly from the command line.  However, running the same commands within a script running on IIS gives me a "call to undefined function printer_open() ...".  My boss says we shouldn't have to restart IIS to get it to work, and is unwilling to try, because of the few mission-critical apps we have running on that server.  Is restarting IIS necessary, or should the commands be accessible from a script as well as from the command line?

Link to comment
https://forums.phpfreaks.com/topic/171820-php_printerdll-iis/
Share on other sites

If php is running as a CGI application under IIS, the php.ini should be read on each page request. If php is running as a server module under IIS, you will need to stop and start the IIS service (in the service management console) to get any change made to php.ini to take effect. You cannot just stop and start the web site (in the IIS management console.)

Link to comment
https://forums.phpfreaks.com/topic/171820-php_printerdll-iis/#findComment-905994
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.