Re: [PHP] Re: newbie question - php parsing

2009-07-23 Thread Sebastiano Pomata
Thanks, it's now much more clear. I thought that html parts outside php tags were just dumped to output, no matter of if-else statements and other conditions. I was *definitely* wrong 2009/7/23 Peter Ford : > In response to Sebastiano: > > There would be not much point in using something like PHP

Re: [PHP] Re: newbie question - php parsing

2009-07-22 Thread Martin Scotta
This is how I'd write this snippet ', $title, ''; } ?> On Wed, Jul 22, 2009 at 6:31 PM, Lenin wrote: > Ted Turner > - > "Sports is like a war without the killing." > > 2009/7/23 Shane Hill > > > 2009/7/22 João Cândido

Re: [PHP] Re: newbie question - php parsing

2009-07-22 Thread Lenin
Ted Turner - "Sports is like a war without the killing." 2009/7/23 Shane Hill > 2009/7/22 João Cândido de Souza Neto > > > You made a mistake in your code: > > > > > > > > must be: > > > > > > > Short tag and not recommended

Re: [PHP] Re: newbie question - php parsing

2009-07-22 Thread Shane Hill
2009/7/22 João Cândido de Souza Neto > You made a mistake in your code: > > > > must be: > > also works. -Shane > > > -- > João Cândido de Souza Neto > SIENS SOLUÇÕES EM GESTÃO DE NEGÓCIOS > Fone: (0XX41) 3033-3636 - JS > www.siens.com.br > > "Sebastiano Pomata" escreveu na men

Re: [PHP] Re: newbie question about storing big5 codes into mysql-5.0.24a

2007-03-25 Thread Jochem Maas
Man-wai Chang wrote: >> queries in the command-line MySQL client. If it works there but not >> through mysqli_query() then you might have a case for asking here. > > For the 13081 chinese alphabets I tried, only 1 one failed, and it's > 0x9f54. mysqli_query() should have escaped the string for me.

Re: [PHP] Re: newbie question about storing big5 codes into mysql-5.0.24a

2007-03-25 Thread Stut
Man-wai Chang wrote: >>> create table temp ( big5 char(2) ) character set big5 collate big5_bin; >>> insert into temp ( big5 ) values ( 0x9f54 ); >>> insert into temp ( big5 ) values ( 0x9f53 ); >>> The 2nd query will report duplicated key. How should I fix the problem? >> What does this has to do

Re: [PHP] Re: Newbie question about

2006-09-11 Thread tedd
At 5:36 PM +0100 9/11/06, Stut wrote: tedd wrote: Opinions? I would have to agree. Having watched the server CPU load while playing with this test script it would appear that the performance can be skewed a lot more by that than by the method you use for squidging out the output. As a cu

Re: [PHP] Re: Newbie question about

2006-09-11 Thread Satyam
- Original Message - From: "Stut" <[EMAIL PROTECTED]> To: "Satyam" <[EMAIL PROTECTED]> Cc: Sent: Monday, September 11, 2006 6:32 PM Subject: Re: [PHP] Re: Newbie question about Satyam wrote: I admit I'm totally surprised about the buffered res

Re: [PHP] Re: Newbie question about

2006-09-11 Thread Stut
Jon Anderson wrote: Stut wrote: How bored am I? This bored: http://dev.stut.net/phpspeed/ Server is running PHP 5.1.2 (really should upgrade that) with no caches of any sort. Just looking through the source, could you try changing the first example to put the output all on one line? It's th

Re: [PHP] Re: Newbie question about

2006-09-11 Thread Stut
tedd wrote: At 4:56 PM +0100 9/11/06, Stut wrote: How bored am I? This bored: http://dev.stut.net/phpspeed/ Server is running PHP 5.1.2 (really should upgrade that) with no caches of any sort. -Stut Which begs the question, does it make much of a difference? (not you being bored, but the

Re: [PHP] Re: Newbie question about

2006-09-11 Thread Stut
Satyam wrote: I admit I'm totally surprised about the buffered results. Nevertheless, may I sugest you add the following to the series of tests?: Using line-by-line single-quoted echowith comma separated arguments There seems to be one thing rarely anybody remembers, echo admits mu

Re: [PHP] Re: Newbie question about

2006-09-11 Thread Satyam
are the second best option. Satyam - Original Message - From: "Stut" <[EMAIL PROTECTED]> To: "Jon Anderson" <[EMAIL PROTECTED]> Cc: "Satyam" <[EMAIL PROTECTED]>; Sent: Monday, September 11, 2006 5:56 PM Subject: Re: [PHP] Re: Newbie que

Re: [PHP] Re: Newbie question about

2006-09-11 Thread tedd
At 4:56 PM +0100 9/11/06, Stut wrote: How bored am I? This bored: http://dev.stut.net/phpspeed/ Server is running PHP 5.1.2 (really should upgrade that) with no caches of any sort. -Stut Which begs the question, does it make much of a difference? (not you being bored, but the rather speed

Re: [PHP] Re: Newbie question about

2006-09-11 Thread Stut
How bored am I? This bored: http://dev.stut.net/phpspeed/ Server is running PHP 5.1.2 (really should upgrade that) with no caches of any sort. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Newbie question about

2006-09-11 Thread Jon Anderson
Satyam wrote: for ($x=0;$x<1000;$x++) { echo ' X is ' , $x , ''; } This seems to be a hair faster. I extended the test to 1 requests (still concurrency 10) to make the test a little more reproducible: echo str,var,str did 604.65 requests a second where ?> did 599.63 requests a second. I

Re: [PHP] Re: Newbie question about

2006-09-10 Thread Satyam
- Original Message - From: "Jon Anderson" <[EMAIL PROTECTED]> To: Cc: "Al" <[EMAIL PROTECTED]> Sent: Sunday, September 10, 2006 9:16 PM Subject: Re: [PHP] Re: Newbie question about Al wrote: Structurally, there is a far better way to compile you

Re: [PHP] Re: Newbie question about

2006-09-10 Thread Jon Anderson
Al wrote: Structurally, there is a far better way to compile your html pages. This approach is easier to design and debug and it is faster since it sends one complete packet instead of one for every short tag. And, it saves using ob_start() and ob_flush(). Consider: $report= ''; $report .=

Re: [PHP] Re: Newbie question about

2006-09-10 Thread Satyam
- Original Message - From: "Al" <[EMAIL PROTECTED]> To: Sent: Sunday, September 10, 2006 5:52 PM Subject: [PHP] Re: Newbie question about Mike Borrelli wrote: Good day, While I've been using php for more than a little while now, I've never understood why the use of the "" short t

Re: [PHP] Re: Newbie question : PHP variables are not posted by this

2002-05-31 Thread Stuart Dallas
On Friday, May 31, 2002, 5:17:49 PM, you wrote: > Can you send the code that is failing to the list - it will help in working > out the problem... And include your platform details (OS, PHP version, etc). -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Re: Newbie question...

2002-02-22 Thread Thalis A. Kalfigopoulos
On Fri, 22 Feb 2002, J Smith wrote: > > Try wget if it's installed. If not, lynx, a shell-based web browser, is > installed on quite a few machines. > > J > > > > > Ben Turner wrote: > > > This may be a bit off topic but I am trying to install the pdflib package > > for Linux so I can ma

Re: [PHP] Re: Newbie: Question about filesize()

2002-02-06 Thread Lars Torben Wilson
On Wed, 2002-02-06 at 15:33, Jeff Sheltren wrote: > At 10:27 AM 2/6/2002 -0500, Ben Crawford wrote: > >You also seem to have an extra equals. Your loop should read: > > > >while (false != ($file=readdir($handle))){ > > I think you could eliminate the "false !=" in the while condition... > > It s

Re: [PHP] Re: Newbie: Question about filesize()

2002-02-06 Thread Lars Torben Wilson
On Wed, 2002-02-06 at 07:27, Ben Crawford wrote: > You also seem to have an extra equals. Your loop should read: > > while (false != ($file=readdir($handle))){ > > It should come up as an error, but I'm not sure. > > Ben No, that's the 'identical' operator, which returns true when its operands

Re: [PHP] Re: Newbie: Question about filesize()

2002-02-06 Thread Jeff Sheltren
At 10:27 AM 2/6/2002 -0500, Ben Crawford wrote: >You also seem to have an extra equals. Your loop should read: > >while (false != ($file=readdir($handle))){ I think you could eliminate the "false !=" in the while condition... It should be just the same if you write while (($file = readdir($handl

RE: [PHP] Re: Newbie: Question about filesize()

2002-02-06 Thread Martin Towell
that should be okay - it's to make sure that it is exactly equal to (as opposed to equates to be equal to) eg (0 === false) => false (0 == false) => true -Original Message- From: Ben Crawford [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 07, 2002 2:28 AM To: [EMAIL PROTECTED]