php-general Digest 6 Mar 2012 08:21:55 -0000 Issue 7714
Topics (messages 316914 through 316922):
Re: iphone & php
316914 by: Robert Williams
316915 by: Jim Giner
316916 by: Shawn McKenzie
316917 by: Ashley Sheridan
Jobs in Denver
316918 by: Nathan Nobbe
Re: îÕÖÎÙ ÐÁÍÐÅÒÓÙ
316919 by: Ghodmode
Re: MySQL over TCP results on CLOSE_WAIT state in PHP 5.3.8
316920 by: Tommy Pham
PHP 5.4 new output control API callback buffer
316921 by: Charles
SDO DAS XML "drops" some elements
316922 by: Emil Obermayr
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
----------------------------------------------------------------------
--- Begin Message ---
On 3/5/12 11:58, "Jim Giner" <jim.gi...@albanyhandball.com> wrote:
>"Marc Guay" <marc.g...@gmail.com> wrote in message
>news:CAL0DAJq0y-iOMvt4Ko+D4Z_t+oo3PT9SYmR+9foa=9q9gsr...@mail.gmail.com...
>> And if you change your input type to "date", because it's a date, does
> that bring up the numeric keys as well?
>
>actually I have not seen anything that suggests that is a possible
>option.
>I am about to test something that I just received from Apple tho......
Yep, it's in there, as part of HTML 5. In iOS, support for it was added
with Safari 5, so that's probably why the behavior of the 'number' type
changed. There are others, too; see:
<https://developer.apple.com/library/safari/#documentation/appleapplication
s/reference/SafariHTMLRef/Articles/InputTypes.html>
<http://www.w3schools.com/html5/att_input_type.asp>
Regards,
Bob
--
Robert E. Williams, Jr.
Associate Vice President of Software Development
Newtek Businesss Services, Inc. -- The Small Business Authority
https://www.newtekreferrals.com/rewjr
http://www.thesba.com/
Notice: This communication, including attachments, may contain information that
is confidential. It constitutes non-public information intended to be conveyed
only to the designated recipient(s). If the reader or recipient of this
communication is not the intended recipient, an employee or agent of the
intended recipient who is responsible for delivering it to the intended
recipient, or if you believe that you have received this communication in
error, please notify the sender immediately by return e-mail and promptly
delete this e-mail, including attachments without reading or saving them in any
manner. The unauthorized use, dissemination, distribution, or reproduction of
this e-mail, including attachments, is prohibited and may be unlawful. If you
have received this email in error, please notify us immediately by e-mail or
telephone and delete the e-mail and the attachments (if any).
--- End Message ---
--- Begin Message ---
"Robert Williams" <rewilli...@thesba.com> wrote in message
news:cb7a5dd7.828c6%rewilli...@thesba.com...
On 3/5/12 11:58, "Jim Giner" <jim.gi...@albanyhandball.com> wrote:
>"Marc Guay" <marc.g...@gmail.com> wrote in message
>news:CAL0DAJq0y-iOMvt4Ko+D4Z_t+oo3PT9SYmR+9foa=9q9gsr...@mail.gmail.com...
>> And if you change your input type to "date", because it's a date, does
> that bring up the numeric keys as well?
>
>actually I have not seen anything that suggests that is a possible
>option.
>I am about to test something that I just received from Apple tho......
Yep, it's in there, as part of HTML 5. In iOS, support for it was added
with Safari 5, so that's probably why the behavior of the 'number' type
changed. There are others, too; see:
<https://developer.apple.com/library/safari/#documentation/appleapplication
s/reference/SafariHTMLRef/Articles/InputTypes.html>
<http://www.w3schools.com/html5/att_input_type.asp>
Regards,
Bob
--
Robert E. Williams, Jr.
Associate Vice President of Software Development
Newtek Businesss Services, Inc. -- The Small Business Authority
https://www.newtekreferrals.com/rewjr
http://www.thesba.com/
I now see that to be true. In fact, it works really well on the iphone the
ipad
mail or telephone and delete the e-mail and the attachments (if any).
--- End Message ---
--- Begin Message ---
On 03/05/2012 11:16 AM, Jim Giner wrote:
> An appl that has been working fine for a year now and fine up through last
> week, suddenly is not working on my iphone. The only differences between
> using it on a pc, ipad or iphone are for font sizes and such (handled by JS)
> so I'm puzzled as to what is going on. I do the same exact thing on each of
> these 3 devices and the iphone fails. The specifics are : I'm entering a
> date into an input field and php is supposed to retrieve it and display a
> record that is retrieved using that input. The iphone for some reason is
> not getting my input (passed via POST) correctly, yet it's the same script
> being run for each device.
>
> Trying not to paranoid, but does anyone think that Apple could have done
> something to my iphone in the last few days?
>
>
After one of my i[phone software updates, javascript in safari was
turned off. I know I didn't do it and js had been working great.
Something to check.
--
Thanks!
-Shawn
http://www.spidean.com
--- End Message ---
--- Begin Message ---
On Mon, 2012-03-05 at 14:43 -0500, Jim Giner wrote:
> "Robert Williams" <rewilli...@thesba.com> wrote in message
> news:cb7a5dd7.828c6%rewilli...@thesba.com...
> On 3/5/12 11:58, "Jim Giner" <jim.gi...@albanyhandball.com> wrote:
>
>
> >"Marc Guay" <marc.g...@gmail.com> wrote in message
> >news:CAL0DAJq0y-iOMvt4Ko+D4Z_t+oo3PT9SYmR+9foa=9q9gsr...@mail.gmail.com...
> >> And if you change your input type to "date", because it's a date, does
> > that bring up the numeric keys as well?
> >
> >actually I have not seen anything that suggests that is a possible
> >option.
> >I am about to test something that I just received from Apple tho......
>
> Yep, it's in there, as part of HTML 5. In iOS, support for it was added
> with Safari 5, so that's probably why the behavior of the 'number' type
> changed. There are others, too; see:
>
> <https://developer.apple.com/library/safari/#documentation/appleapplication
> s/reference/SafariHTMLRef/Articles/InputTypes.html>
> <http://www.w3schools.com/html5/att_input_type.asp>
>
>
> Regards,
> Bob
>
> --
> Robert E. Williams, Jr.
> Associate Vice President of Software Development
> Newtek Businesss Services, Inc. -- The Small Business Authority
> https://www.newtekreferrals.com/rewjr
> http://www.thesba.com/
>
>
>
> I now see that to be true. In fact, it works really well on the iphone the
> ipad
> mail or telephone and delete the e-mail and the attachments (if any).
>
>
>
I just recall seeing a lot of buzz about the various input types and
support for them recently on the WhatWG mailing lists. I believe more
up-to-date versions of Firefox, Chrome and Opera will be validating
number fields for only numerical data too.
Apparently there is also an undocumented "feature" of iOS that triggers
the numerical input; putting the word 'zip' or 'phone' as part (or all)
of the input name, even if the type of the input is set to something
like 'text'
--
Thanks,
Ash
http://www.ashleysheridan.co.uk
--- End Message ---
--- Begin Message ---
Hey gang,
Anyone looking for solid PHP gigs in the Denver area, (or would consider
moving to Denver b/c it's so awesome!) contact me offline; I've got the
hookup!
-nathan
--- End Message ---
--- Begin Message ---
I'll be damned! Russian spam. Use Google translate if you want to,
then please ban this idiot.
--
Vince Aggrippino
Ghodmode Development
http://www.ghodmode.com
2012/3/5 Deti
> Детям требуется Ваша помощь!
--- End Message ---
--- Begin Message ---
On Mon, Mar 5, 2012 at 7:33 AM, <php-l...@dubistmeinheld.de> wrote:
>> > I have a MySQL server A, a server B with PHP 5.3.8 and a server C with
>> > PHP 5.3.3. I'm connecting to the MySQL server on A via TCP from B and C
>> > using an internal network. Server B and C use the same PHP application.
>> > There are also same PHP scripts that get data from the database and then
>> > calculate up to 30 minutes. I close all database connection before doing
>> > the calculation to save connections (and ports) using:
>> > $thread_id = mysqli_thread_id( $this->handle );
>> > mysqli_kill( $this->handle, $thread_id );
>> > mysqli_close( $this->handle );
>> >
>> > During a review on our servers I discovered that server B has a lot of
>> > network connection in the state "CLOSE_WAIT". Server C running the same
>> > PHP application has not. I see the difference that server B is using
>> > mysqlnd and server C not.
>> >
>> > serverB# netstat -an | grep 3306
>> > tcp 1 0 10.8.0.58:47455 10.8.0.1:3306
>> > CLOSE_WAIT
>> >
>> > serverA# cat firewall
>> > Feb 17 16:21:49 www kernel: [6587053.325075] SFW2-OUT-ERROR IN= OUT=tun0
>> > SRC=10.8.0.1 DST=10.8.0.58 LEN=40 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF
>> > PROTO=TCP SPT=3306 DPT=47455 WINDOW=0 RES=0x00 RST URGP=0
>> >
>> > Does anybody have an idea why this happens? How can I avoid this or
>> > investigate in this? Is this a know issue?
>>
>> Is the underlying OS for servers B & C exactly the same? Down to
>> kernel version (if Linux/Unix), NICs and driver version,
>> configurations, etc.? It would help if specify OS type and kernel
>> version.
>
> No, client B and C have different OS versions. You are right this can be a
> reason too. Do you have any hints how I can trace that down?
>
> Details client B (newer OS with CLOSE_WAIT problems):
> $ uname -a
> Linux www3 3.1.9-1.4-default #1 SMP Fri Jan 27 08:55:10 UTC 2012 (efb5ff4)
> x86_64 x86_64 x86_64 GNU/Linux
> $ mysql --version
> mysql Ver 14.14 Distrib 5.5.16, for Linux (x86_64) using readline 6.2
> $ ethtool -i eth0
> driver: r8169
> version: 2.3LK-NAPI
> firmware-version: rtl_nic/rtl8168e-2.fw
> bus-info: 0000:04:00.0
> supports-statistics: yes
> supports-test: no
> supports-eeprom-access: no
> supports-register-dump: yes
>
> Details client C:
> $ uname -a
> Linux www13 2.6.34.10-0.4-default #1 SMP 2011-10-19 22:16:41 +0200 x86_64
> x86_64 x86_64 GNU/Linux
> $ mysql --version
> mysql Ver 14.14 Distrib 5.1.57, for suse-linux-gnu (x86_64) using readline
> 6.1
> $ ethtool -i eth0
> driver: r8169
> version: 2.3LK-NAPI
> firmware-version:
> bus-info: 0000:04:00.0
>
> Server A:
> Linux www 3.1.9-1.4-default #1 SMP Fri Jan 27 08:55:10 UTC 2012 (efb5ff4)
> x86_64 x86_64 x86_64 GNU/Linux
> $ mysql --version
> mysql Ver 14.14 Distrib 5.5.16, for Linux (x86_64) using readline 6.2
> $ ethtool -i eth0
> driver: r8169
> version: 2.3LK-NAPI
> firmware-version: rtl_nic/rtl8168e-2.fw
> bus-info: 0000:04:00.0
> supports-statistics: yes
> supports-test: no
> supports-eeprom-access: no
> supports-register-dump: yes
>
> I also have set wait_timeout 45 in my.cnf on server A and mysqli.reconnect On
> on client B and C in php.ini.
Troubleshooting that much variances will take a lot of time. Do you
have root access? Was the OS installed via standard distribution?
Did someone reconfigured and recompiled the kernel and system? I'd
suggest you start compiling from source of the following:
* MySQL client - same version (preferred) or newer than server (make
sure config is the same on both boxes for PHP)
* compile PHP thereafter
Then you'll know if it's the OS related or not (ie: configuration,
kernel version, etc.) Also, your kernel versions doesn't seem to be
stable per [1]. You might want to check each flavor's distributor.
Just out of curiosity, are both boxes (B & C) are the same Linux
flavor?
Best regards,
Tommy
[1]http://www.kernel.org/
--- End Message ---
--- Begin Message ---
Hi,
I'm just wondering, what is the right output of below code should be
ob_start(function($o) { fwrite(STDERR, $o); });
echo 'hello';
ob_end_clean();
Does it should print "hello" or does it should print nothing?
In PHP 5.3, it prints hello, but in 5.4.0 it prints nothing.
Looking at the C code of PHP 5.4, it explicitly discards the output
buffer before calling the callback, except when flushing
or when using the internal callback handler.
--- End Message ---
--- Begin Message ---
Hello,
I try to generate a XML using an XSD with the library
SDO DAS XML:
http://www.php.net/manual/en/book.sdo-das-xml.php
Most elements are working nicely, but others are
just missing in XML. There where no warnings and
no log entries.
Where can I get some more debug information?
Is there a more detailed tutorial somewhere?
Are there any known bugs in that library?
Thanks for any help
Emil
--- End Message ---