php-general Digest 7 Apr 2010 02:44:12 -0000 Issue 6679

Topics (messages 303858 through 303863):

Re: $_SERVER['PHP_AUTH_USER'] has gone
        303858 by: Satz Klauer
        303862 by: Nilesh Govindarajan

Re: Logical reason for strtotime('east') and strtotime('west') returning valid 
results?
        303859 by: Colin Guthrie

mysql query returning slowly
        303860 by: David  Murphy
        303861 by: Nathan Rixham

image question again
        303863 by: Karl DeSaulniers

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 ---
var_dump($_SERVER) gives me several data, the following arrayindices contain
data:

"HTTPS", "SSL_TLS_SNI", "HTTP_USER_AGENT", "HTTP_HOST", "HTTP_ACCEPT",
"HTTP_ACCEPT_LANGUAGE", "HTTP_ACCEPT_CHARSET", "HTTP_ACCEPT_ENCODING",
"HTTP_REFERER", "HTTP_COOKIE", "HTTP_COOKIE2", "HTTP_CONNECTION", "HTTP_TE",
"PATH", "SERVER_SIGNATURE", "SERVER_SOFTWARE", "SERVER_NAME", "SERVER_ADDR",
"SERVER_PORT", "REMOTE_HOST", "REMOTE_ADDR", "DOCUMENT_ROOT",
"SERVER_ADMIN", "SCRIPT_FILENAME", "REMOTE_PORT", "GATEWAY_INTERFACE" =>
string(7) "CGI/1.1" (??? it is running as apache-module ???,
"SERVER_PROTOCOL", "REQUEST_METHOD", "QUERY_STRING", "REQUEST_URI",
"SCRIPT_NAME", "PHP_SELF", "REQUEST_TIME"

Unfortunately not Auth-data.

var_dump($_ENV) tells me (partially anonymised):

["HOSTNAME"]=> string(24) "xxx.yyy.de"
["TERM"]=> string(5) "xterm"
["SHELL"]=> string(9) "/bin/bash"
["HISTSIZE"]=> string(4) "1000"
["QTDIR"]=> string(15) "/usr/lib/qt-3.3"
["QTINC"]=> string(23) "/usr/lib/qt-3.3/include"
["USER"]=> string(4) "root"
["LS_COLORS"]=> string(1268)
"rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.tbz=01;31:*.tbz2=01;31:*.bz=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=01;36:*.au=01;36:*.flac=01;36:*.mid=01;36:*.midi=01;36:*.mka=01;36:*.mp3=01;36:*.mpc=01;36:*.ogg=01;36:*.ra=01;36:*.wav=01;36:*.axa=01;36:*.oga=01;36:*.spx=01;36:*.xspf=01;36:"

["MC_TMPDIR"]=> string(12) "/tmp/mc-root"
["PATH"]=> string(29) "/sbin:/usr/sbin:/bin:/usr/bin"
["MAIL"]=> string(20) "/var/spool/mail/root"
["PWD"]=> string(17) "/etc/xxx/yyy"
["LANG"]=> string(1) "C"
["HISTCONTROL"]=> string(11) "ignorespace"
["HOME"]=> string(5) "/root"
["SHLVL"]=> string(1) "4"
["MC_SID"]=> string(5) "25229"
["LOGNAME"]=> string(4) "root"
["CVS_RSH"]=> string(3) "ssh"
["QTLIB"]=> string(19) "/usr/lib/qt-3.3/lib"
["LESSOPEN"]=> string(24) "|/usr/bin/lesspipe.sh %s"
["G_BROKEN_FILENAMES"]=> string(1) "1" ["_"]=> string(15) "/usr/sbin/httpd"



On Sun, Apr 4, 2010 at 10:54 PM, Daniel P. Brown
<[email protected]>wrote:

> Sorry for the top-post. Easter has me on the DROID instead of my PC.
>
> I second Rixham's thought. Is it a DSO, CGI, FCGI? What pops out in
> var_dump($_SERVER) and var_dump($_ENV)?
>
> On Apr 4, 2010 3:49 PM, "Nathan Rixham" <[email protected]> wrote:
>
> Satz Klauer wrote:
> > Hi,
> >
> > I'm running a system with Fedora 12 and Apache/PHP default installatio...
> just a quick sanity check; you do have the specific site/directory set
> up to send and receive basic auth yeah? sounds very much to me like this
> is an apache config issue and not php :)
>
> regards!
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub....
>
>

--- End Message ---
--- Begin Message ---
On 04/06/10 21:27, Satz Klauer wrote:
var_dump($_SERVER) gives me several data, the following arrayindices contain
data:

"HTTPS", "SSL_TLS_SNI", "HTTP_USER_AGENT", "HTTP_HOST", "HTTP_ACCEPT",
"HTTP_ACCEPT_LANGUAGE", "HTTP_ACCEPT_CHARSET", "HTTP_ACCEPT_ENCODING",
"HTTP_REFERER", "HTTP_COOKIE", "HTTP_COOKIE2", "HTTP_CONNECTION", "HTTP_TE",
"PATH", "SERVER_SIGNATURE", "SERVER_SOFTWARE", "SERVER_NAME", "SERVER_ADDR",
"SERVER_PORT", "REMOTE_HOST", "REMOTE_ADDR", "DOCUMENT_ROOT",
"SERVER_ADMIN", "SCRIPT_FILENAME", "REMOTE_PORT", "GATEWAY_INTERFACE" =>
string(7) "CGI/1.1" (??? it is running as apache-module ???,
"SERVER_PROTOCOL", "REQUEST_METHOD", "QUERY_STRING", "REQUEST_URI",
"SCRIPT_NAME", "PHP_SELF", "REQUEST_TIME"

Unfortunately not Auth-data.

var_dump($_ENV) tells me (partially anonymised):

["HOSTNAME"]=>  string(24) "xxx.yyy.de"
["TERM"]=>  string(5) "xterm"
["SHELL"]=>  string(9) "/bin/bash"
["HISTSIZE"]=>  string(4) "1000"
["QTDIR"]=>  string(15) "/usr/lib/qt-3.3"
["QTINC"]=>  string(23) "/usr/lib/qt-3.3/include"
["USER"]=>  string(4) "root"
["LS_COLORS"]=>  string(1268)
"rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.tbz=01;31:*.tbz2=01;31:*.bz=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01
;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=01;36:*.au=01;36:*.flac=01;36:*.mid=01;36:*.midi=01;36:*.mka=01;36:*.mp3=01;36:*.mpc=01;36:*.ogg=01;36:*.ra=01;36:*.wav=01;36:*.axa=01;36:*.oga=01;36:*.spx=01;36:*.xspf=01;36:"

["MC_TMPDIR"]=>  string(12) "/tmp/mc-root"
["PATH"]=>  string(29) "/sbin:/usr/sbin:/bin:/usr/bin"
["MAIL"]=>  string(20) "/var/spool/mail/root"
["PWD"]=>  string(17) "/etc/xxx/yyy"
["LANG"]=>  string(1) "C"
["HISTCONTROL"]=>  string(11) "ignorespace"
["HOME"]=>  string(5) "/root"
["SHLVL"]=>  string(1) "4"
["MC_SID"]=>  string(5) "25229"
["LOGNAME"]=>  string(4) "root"
["CVS_RSH"]=>  string(3) "ssh"
["QTLIB"]=>  string(19) "/usr/lib/qt-3.3/lib"
["LESSOPEN"]=>  string(24) "|/usr/bin/lesspipe.sh %s"
["G_BROKEN_FILENAMES"]=>  string(1) "1" ["_"]=>  string(15) "/usr/sbin/httpd"



On Sun, Apr 4, 2010 at 10:54 PM, Daniel P. Brown
<[email protected]>wrote:

Sorry for the top-post. Easter has me on the DROID instead of my PC.

I second Rixham's thought. Is it a DSO, CGI, FCGI? What pops out in
var_dump($_SERVER) and var_dump($_ENV)?

On Apr 4, 2010 3:49 PM, "Nathan Rixham"<[email protected]>  wrote:

Satz Klauer wrote:
Hi,

I'm running a system with Fedora 12 and Apache/PHP default installatio...
just a quick sanity check; you do have the specific site/directory set
up to send and receive basic auth yeah? sounds very much to me like this
is an apache config issue and not php :)

regards!


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub....




This means that something is wrong with your script or server which is not sending the Auth headers properly. Do you get the auth box in the latest browser, and are you sure that you're using basic and not digest auth ?

--
Nilesh Govindarajan
Site & Server Administrator
www.itech7.com
मेरा भारत महान !
मम भारत: महत्तम भवतु !

--- End Message ---
--- Begin Message ---
'Twas brillig, and Kevin Kinsey at 05/04/10 19:15 did gyre and gimble:
> Nonetheless, I'm suspecting the programmers had something
> like this in mind. 

Yeah I guess that's why it interprets these terms. Good thinking :)

> Isn't strtotime() based on some GNU utility?

Yeah, that's why I said "the relevant authorities". I couldn't remember
off-hand where it came from so figured I'd not blame "PHP" just yet :p

Cheers

Col

-- 

Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/

Day Job:
  Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
  Mandriva Linux Contributor [http://www.mandriva.com/]
  PulseAudio Hacker [http://www.pulseaudio.org/]
  Trac Hacker [http://trac.edgewall.org/]


--- End Message ---
--- Begin Message ---
 
This is from our application 
I enabled profile in mysql to determine why an update took 20seconds.  As
you can see  MySQL reported no where near that amount of duration took
place. 
Is there any way I can dig into php and determine why  mysql client libs are
so slow (this is not using mysqlnd but  mysql-client-libs on CentOS using
5.3.2)
 
 
04/06/2010 14:54:54 20.6899s  UPDATE `calls` SET `Result`='Busy' WHERE
`CallID`='144786'
     | Status               | Duration | CPU_user | CPU_system |
Context_voluntary | Context_involuntary | Block_ops_in | Block_ops_out |
Messages_sent | Messages_received | Page_faults_major | Page_faults_minor |
Swaps | 
 
----------------------------------------------------------------------------
----------------------------------------------------------------------------
------------------------------------------------------------------
     | starting             | 0.000039 | 0.000000 | 0.000000   | 0
| 0                   | 0            | 0             | 0             | 0
| 0                 | 0                 | 0     | 
     | checking permissions | 0.000008 | 0.000000 | 0.000000   | 0
| 0                   | 0            | 0             | 0             | 0
| 0                 | 0                 | 0     | 
     | Opening tables       | 0.000010 | 0.000000 | 0.000000   | 0
| 0                   | 0            | 0             | 0             | 0
| 0                 | 0                 | 0     | 
     | System lock          | 0.000005 | 0.000000 | 0.000000   | 0
| 0                   | 0            | 0             | 0             | 0
| 0                 | 0                 | 0     | 
     | Table lock           | 0.000006 | 0.000000 | 0.000000   | 0
| 0                   | 0            | 0             | 0             | 0
| 0                 | 0                 | 0     | 
     | init                 | 0.000036 | 0.000000 | 0.000000   | 0
| 0                   | 0            | 0             | 0             | 0
| 0                 | 0                 | 0     | 
     | Updating             | 0.000099 | 0.001000 | 0.000000   | 0
| 0                   | 0            | 0             | 0             | 0
| 0                 | 0                 | 0     | 
     | end                  | 0.000023 | 0.000000 | 0.000000   | 0
| 0                   | 0            | 0             | 0             | 0
| 0                 | 0                 | 0     | 
     | query end            | 0.000004 | 0.000000 | 0.000000   | 0
| 0                   | 0            | 0             | 0             | 0
| 0                 | 0                 | 0     | 
     | freeing items        | 0.007410 | 0.000000 | 0.000000   | 4
| 1                   | 0            | 0             | 0             | 0
| 0                 | 0                 | 0     | 
     | logging slow query   | 0.000004 | 0.000000 | 0.000000   | 0
| 0                   | 0            | 0             | 0             | 0
| 0                 | 0                 | 0     | 
     | cleaning up          | 0.000004 | 0.000000 | 0.000000   | 0
| 0                   | 0            | 0             | 0             | 0
| 0                 | 0                 | 0     |

 

 

Thanks

David Murphy


--- End Message ---
--- Begin Message ---
David Murphy wrote:
>  
> This is from our application 
> I enabled profile in mysql to determine why an update took 20seconds.  As
> you can see  MySQL reported no where near that amount of duration took
> place. 
> Is there any way I can dig into php and determine why  mysql client libs are
> so slow (this is not using mysqlnd but  mysql-client-libs on CentOS using
> 5.3.2)
>  
>  
> 04/06/2010 14:54:54 20.6899s

maybe it was waiting to acquire a lock

--- End Message ---
--- Begin Message --- When I have an imagecreatetruecolor and I create another one and use imagecopymerge, how do I keep the backgrounds transparent even if say the width of the top image is smaller than the back image? I keep getting a black background where the top image does not cover the back. It sets the transparency to the rest of the top image as long as it is covering the bottom one. I think it has to do with the imagealphablending.
Any ideas?
TIA

Karl DeSaulniers
Design Drumm
http://designdrumm.com


--- End Message ---

Reply via email to