paulwoolcock Posted August 25, 2009 Share Posted August 25, 2009 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? Quote Link to comment https://forums.phpfreaks.com/topic/171820-php_printerdll-iis/ Share on other sites More sharing options...
PFMaBiSmAd Posted August 25, 2009 Share Posted August 25, 2009 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.) Quote Link to comment https://forums.phpfreaks.com/topic/171820-php_printerdll-iis/#findComment-905994 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.