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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.