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