php-general Digest 21 Mar 2012 14:27:13 -0000 Issue 7737

2012-03-21 Thread php-general-digest-help

php-general Digest 21 Mar 2012 14:27:13 - Issue 7737

Topics (messages 317152 through 317159):

Re: Bug zlib.output_compression not normal work in IIS7.5
317152 by: Simon Schick

Pear Auth problem
317153 by: Karl-Arne Gjersøyen
317159 by: Govinda

How can I convert these to hex or strings?
317154 by: David OBrien
317155 by: Jim Giner
317156 by: David OBrien
317157 by: Jim Giner

Re: php upload does not work proper, [tmp_name] and other are missing in 
$_FILES
317158 by: Meike Stone

Administrivia:

To subscribe to the digest, e-mail:
php-general-digest-subscr...@lists.php.net

To unsubscribe from the digest, e-mail:
php-general-digest-unsubscr...@lists.php.net

To post to the list, e-mail:
php-gene...@lists.php.net


--
---BeginMessage---
2012/3/19 小鱼虾 i...@xiaoyu.org

 How I do fix it ?


 https://bugs.php.net/bug.php?id=61434


Hi,

I got a rough overview of the conversation in the bug-tracker ...

You were always talking about a tool you used to test the
gzip-compression ... but why not test it natively?
Using Firefox (with the extension Firebug) or Safari / Chrome for
example you can easily view the respond-header from the server and get
more info out of that.
Just press F12, click on the network-tab, select your request and
search in the response-header for Content-Encoding: ...

I would write my own small php-test-script where you just output some
text. Then you're sure that not other code is doing something strange.

Another possible problem: Is the extension zlib enabled at all? The
documentation says that it's disabled by default ...
http://www.php.net/manual/en/zlib.installation.php

Bye
Simon
---End Message---
---BeginMessage---
Hello.
I am trying to use pear Auth packet but am doing something wrong.
I am currently looking at the simple example in the documentation, but
something is wrong in my source code, because if I write a username
and a password in the fields and hit the submit button, I receive a
blank pages without any informatio at all..

Here is my source code:
---

?php

require_once('Auth.php');
if(!isset($_POST['submit'])){
function loginFunction($username = null, $status = null, $auth = null){
?

form action=index.php method=post
fieldset  
legendLogin:/legend
p
label for=usernameUsername:/labelbr
input id=username name=username type=text
/p
p
label for=passwordPassword:/labelbr
input id=password name=password type=password
/p
p
input id=submit name=submit type=submit value=Login
/p
/fieldset
/form

?php   
}

$options = array(
'dsn' = mysql://username:password@localhost/database,
);
$a = new Auth(DB, $options, loginFunction);
$a-start();

if($a-checkAuth()){
header(Location: http://www.karl-arne.name/;);
}
}   
?

The example is located at:
http://pear.php.net/manual/en/package.authentication.auth.intro.php

Thanks for your time.
Karl
---End Message---
---BeginMessage---
 Hello.
 I am trying to use pear Auth packet but am doing something wrong.
 I am currently looking at the simple example in the documentation, but
 something is wrong in my source code, because if I write a username
 and a password in the fields and hit the submit button, I receive a
 blank pages without any informatio at all..
 
 Here is my source code:
 ---
 
 ?php
 
 require_once('Auth.php');
 if(!isset($_POST['submit'])){
 function loginFunction($username = null, $status = null, $auth = null){
 ?
 
 form action=index.php method=post
   fieldset  
legendLogin:/legend
   p
label for=usernameUsername:/labelbr
   input id=username name=username type=text
/p
p
label for=passwordPassword:/labelbr
   input id=password name=password type=password
/p
p
input id=submit name=submit type=submit value=Login
/p
/fieldset
 /form
 
 ?php 
   }
 
   $options = array(
   'dsn' = mysql://username:password@localhost/database,
   );
   $a = new Auth(DB, $options, loginFunction);
   $a-start();
   
   if($a-checkAuth()){
   header(Location: http://www.karl-arne.name/;);
   }
 } 
 ?
 
 The example is located at:
 http://pear.php.net/manual/en/package.authentication.auth.intro.php

Karl,

You'll want to turn on error reporting so you can start to get a peak into what 
is happening..  Do you know how to do that?  (... so that you get more info. 
than just a blank page).

-Govinda

---End Message---
---BeginMessage---
I'm running snmp against a huge list of printers and certain HP models
return

Model:
stdClass Object
(
[type] = 4
[value] = ☺§HP LaserJet P3010 Series
)

Serial:
stdClass Object
(
[type] = 4

php-general Digest 22 Mar 2012 05:56:41 -0000 Issue 7738

2012-03-21 Thread php-general-digest-help

php-general Digest 22 Mar 2012 05:56:41 - Issue 7738

Topics (messages 317160 through 317171):

Re: php upload does not work proper, [tmp_name] and other are missing in 
$_FILES
317160 by: Meike Stone
317162 by: Matijn Woudt

PEAR_Error reporting
317161 by: Karl-Arne Gjersøyen

Thinking out loud - a continuation...
317163 by: Jay Blanchard
317164 by: Adam Richardson
317165 by: Daniel Brown
317166 by: Jay Blanchard
317167 by: Robert Cummings
317168 by: Jay Blanchard
317169 by: Jim Lucas
317171 by: Robert Cummings

Node.PHP
317170 by: Joseph Moniz

Administrivia:

To subscribe to the digest, e-mail:
php-general-digest-subscr...@lists.php.net

To unsubscribe from the digest, e-mail:
php-general-digest-unsubscr...@lists.php.net

To post to the list, e-mail:
php-gene...@lists.php.net


--
---BeginMessage---

 But what is the reason, that the module not work properly?
 Which next step can I do?

I figured out, that the new mod_php5.so is not linked against
libmm.so.14. Can this be the problem?

Thanks Meike

# ldd mod_php5.so.5.3.8
linux-vdso.so.1 =  (0x7fffe051c000)
libcrypt.so.1 = /lib64/libcrypt.so.1 (0x7f3d30f82000)
libresolv.so.2 = /lib64/libresolv.so.2 (0x7f3d30d6b000)
libpcre.so.0 = /usr/lib64/libpcre.so.0 (0x7f3d30b3a000)
librt.so.1 = /lib64/librt.so.1 (0x7f3d30931000)
libm.so.6 = /lib64/libm.so.6 (0x7f3d306b8000)
libdl.so.2 = /lib64/libdl.so.2 (0x7f3d304b3000)
libnsl.so.1 = /lib64/libnsl.so.1 (0x7f3d3029b000)
libz.so.1 = /lib64/libz.so.1 (0x7f3d30085000)
libxml2.so.2 = /usr/lib64/libxml2.so.2 (0x7f3d2fd28000)
libc.so.6 = /lib64/libc.so.6 (0x7f3d2f9b4000)
libpthread.so.0 = /lib64/libpthread.so.0 (0x7f3d2f797000)
/lib64/ld-linux-x86-64.so.2 (0x7f3d31c0f000)

# ldd mod_php5.so.5.2.14
linux-vdso.so.1 =  (0x7fffcdfff000)
libmm.so.14 = /usr/lib64/libmm.so.14 (0x7f0307223000)
libcrypt.so.1 = /lib64/libcrypt.so.1 (0x7f0307428000)  
libresolv.so.2 = /lib64/libresolv.so.2 (0x7f0306bd2000)
libpcre.so.0 = /usr/lib64/libpcre.so.0 (0x7f0306ff2000)
librt.so.1 = /lib64/librt.so.1 (0x7f0306de9000)
libm.so.6 = /lib64/libm.so.6 (0x7f0306958000)
libdl.so.2 = /lib64/libdl.so.2 (0x7f0306754000)
libnsl.so.1 = /lib64/libnsl.so.1 (0x7f030653c000)
libz.so.1 = /lib64/libz.so.1 (0x7f0306325000)
libxml2.so.2 = /usr/lib64/libxml2.so.2 (0x7f0305fc9000)
libc.so.6 = /lib64/libc.so.6 (0x7f0305c55000)
libpthread.so.0 = /lib64/libpthread.so.0 (0x7f0305a37000)
/lib64/ld-linux-x86-64.so.2 (0x7f0307b51000)
---End Message---
---BeginMessage---
On Wed, Mar 21, 2012 at 3:32 PM, Meike Stone meike.st...@googlemail.com wrote:

 But what is the reason, that the module not work properly?
 Which next step can I do?

 I figured out, that the new mod_php5.so is not linked against
 libmm.so.14. Can this be the problem?

 Thanks Meike

 # ldd mod_php5.so.5.3.8
        linux-vdso.so.1 =  (0x7fffe051c000)
        libcrypt.so.1 = /lib64/libcrypt.so.1 (0x7f3d30f82000)
        libresolv.so.2 = /lib64/libresolv.so.2 (0x7f3d30d6b000)
        libpcre.so.0 = /usr/lib64/libpcre.so.0 (0x7f3d30b3a000)
        librt.so.1 = /lib64/librt.so.1 (0x7f3d30931000)
        libm.so.6 = /lib64/libm.so.6 (0x7f3d306b8000)
        libdl.so.2 = /lib64/libdl.so.2 (0x7f3d304b3000)
        libnsl.so.1 = /lib64/libnsl.so.1 (0x7f3d3029b000)
        libz.so.1 = /lib64/libz.so.1 (0x7f3d30085000)
        libxml2.so.2 = /usr/lib64/libxml2.so.2 (0x7f3d2fd28000)
        libc.so.6 = /lib64/libc.so.6 (0x7f3d2f9b4000)
        libpthread.so.0 = /lib64/libpthread.so.0 (0x7f3d2f797000)
        /lib64/ld-linux-x86-64.so.2 (0x7f3d31c0f000)

 # ldd mod_php5.so.5.2.14
        linux-vdso.so.1 =  (0x7fffcdfff000)
        libmm.so.14 = /usr/lib64/libmm.so.14 (0x7f0307223000)
        libcrypt.so.1 = /lib64/libcrypt.so.1 (0x7f0307428000)
        libresolv.so.2 = /lib64/libresolv.so.2 (0x7f0306bd2000)
        libpcre.so.0 = /usr/lib64/libpcre.so.0 (0x7f0306ff2000)
        librt.so.1 = /lib64/librt.so.1 (0x7f0306de9000)
        libm.so.6 = /lib64/libm.so.6 (0x7f0306958000)
        libdl.so.2 = /lib64/libdl.so.2 (0x7f0306754000)
        libnsl.so.1 = /lib64/libnsl.so.1 (0x7f030653c000)
        libz.so.1 = /lib64/libz.so.1 (0x7f0306325000)
        libxml2.so.2 = /usr/lib64/libxml2.so.2 (0x7f0305fc9000)
        libc.so.6 = /lib64/libc.so.6 (0x7f0305c55000)
        libpthread.so.0 = /lib64/libpthread.so.0 (0x7f0305a37000)
        /lib64/ld-linux-x86-64.so.2 (0x7f0307b51000)

I believe using