Re: Call to undefined function printer_open()
| From: | Nick | Date: | Tue, 19 Apr 2005 10:43:46 +0000 |
| Subject: | Re: Call to undefined function printer_open() | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-25870@lists.php.net to get a copy of this message | ||
also added c:\php\ext and c:\php\ext\ to windows %path% environment
variable, saw in other thread
did not work :s
"Jin Yong Wu" <jinyong.wu@CHN.XEROX.com> wrote in message
news:76130D07EA63B945B35125D7BCDEAE5F0740F075@chnshamspf01.chn.xerox.com...
>
> Check whether you install related printer driver. For instance, it's not
> enough only to load
> module <php_mysql.dll>, but also you should have libmysql.dll. Maybe it'll
> help you some.
>
> Yong
>
> -----Original Message-----
> From: Nick [mailto:glenn.brutyn@telenet.be]
> Sent: Monday, April 18, 2005 23:07 PM
> To: php-windows@lists.php.net
> Subject: [PHP-WIN] Call to undefined function printer_open()
>
>
> hey
>
> i want to use that function, but i cant load it :s
>
> content of php.ini:
> ;extension=php_pgsql.dll
> extension=php_printer.dll
> ;extension=php_shmop.dll
>
> extension_dir = "c:\php\ext"
>
> the file is =>> C:\php\ext\php_printer.dll
>
> this seems correct to me. why wont it load
>
> some more info: i use apache(apache_1.3.31-win32-x86-no_src.exe), win xp
> pro, mysql (mysql-4.0.20d-win.zip), php 5.0.1 (php-5.0.1-Win32.zip)
>
> this didnt work ==> multithreaded
> // Example loading an extension based on OS
> if (!extension_loaded('printer')) {
> if (strtoupper(substr(PHP_OS, 0, 3) == 'WIN')) {
> dl('php_printer.dll');
> } else {
> dl('printer.so');
> }
> }
>
> System Windows NT PCNICK 5.1 build 2600
> Build Date Aug 12 2004 23:30:01
> Configure Command cscript /nologo configure.js "--with-gd=shared"
> "--enable-snapshot-build"
> Server API Apache
> Virtual Directory Support enabled
> Configuration File (php.ini) Path C:\WINDOWS\php.ini
> PHP API 20031224
> PHP Extension 20040412
> Zend Extension 220040412
> Debug Build no
> Thread Safety enabled
> IPv6 Support enabled
> Registered PHP Streams php, file, http, ftp, compress.zlib
> Registered Stream Socket Transports tcp, udp
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php