php-windows Digest 19 Apr 2005 08:36:58 -0000 Issue 2638

Topics (messages 25866 through 25868):

Re: Call to undefined function printer_open()
        25866 by: Wu, Jin Yong

Re: [PHP] Localhost not working with cookies
        25867 by: Richard Lynch
        25868 by: Joseph L. Mueller

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 ---
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:[EMAIL PROTECTED]
Sent: Monday, April 18, 2005 23:07 PM
To: [email protected]
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

--- End Message ---
--- Begin Message ---
On Sun, April 17, 2005 1:05 pm, Proudly Pinoy said:
> I've read from php.net/setcookie and codecomments.com that using localhost
> won't work with cookies and neither are IP addresses. So how do I test
> cookies on local system?

Works for me.

Maybe doesn't work with specific broken browsers or something, but you
just need it to work for development, where you pick the browser, no?

You'd have to do QA on a non-localhost for those browsers so badly broken
as to not do Cookies for localhost, but that should not be too onerous.

-- 
Like Music?
http://l-i-e.com/artists.htm

--- End Message ---
--- Begin Message --- Richard Lynch wrote:
On Sun, April 17, 2005 1:05 pm, Proudly Pinoy said:

I've read from php.net/setcookie and codecomments.com that using localhost
won't work with cookies and neither are IP addresses. So how do I test
cookies on local system?


Works for me.

Maybe doesn't work with specific broken browsers or something, but you
just need it to work for development, where you pick the browser, no?

You'd have to do QA on a non-localhost for those browsers so badly broken
as to not do Cookies for localhost, but that should not be too onerous.

What I did when I had that same problem was to add the following record in the HOSTS file in c:\windows\system32\drivers\etc
127.0.0.1 my.local.com localhost


--
Joseph L. Mueller

--- End Message ---

Reply via email to