I like to see html highlighting, so I prefer first method, but for some
small snippets I also use echo
Ernest E Vogelsinger wrote:
As Maxim pointed out a couple of days ago, this is just a matter of
nanosecs, it shouldn't be really noticeable from performance.
The fastest was to display non-PHP
I have not problem displaying variable - I do it all over my webpage, or how
to handle them. you may want to check out my post above that has a weblink
to the project, and a better explanation of exactly what I am doing.
"Ernest E Vogelsinger" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED
depends on my situation, but I use both techniques at times...
"Justin French" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I think the difference would be immeasurable, but to me, I think it would
> make sense if PHP didn't have to parse plain HTML...
>
> S
As Maxim pointed out a couple of days ago, this is just a matter of
nanosecs, it shouldn't be really noticeable from performance.
The fastest was to display non-PHP output is to escape from PHP and enter
plain HTML, like
$a = 'World';
?>
Hello !
Hello World!';
Note the single quote
I think the difference would be immeasurable, but to me, I think it would
make sense if PHP didn't have to parse plain HTML...
So IMHO,
/should/ be slightly quicker than
{$foo}"; ?>
The general consensus on the list seems to be "go with whichever one you are
more comfortable with, is more rea
Which would run faster and generate less load on the server, or does it
matter:
-- OR -
...
..
I find it sucks to try and put all the php tags around stuff, so I just
include it all.
--
Chris Edwards
Web Application Developer
Outer Banks Internet, Inc.
252-441-6698
[EM
On Sunday 02 June 2002 02:12, Mark Charette wrote:
> From: Jason Wong [mailto:[EMAIL PROTECTED]]
>
> >Try comparing reading 10K rows from a DB using Perl and PHP would be a
> > more useful benchmark.
>
> ---
> When's the last time you wrote a Web page that needed 10K rows displayed?
Never.
Perha
From: Jason Wong [mailto:[EMAIL PROTECTED]]
>Try comparing reading 10K rows from a DB using Perl and PHP would be a more
>useful benchmark.
---
When's the last time you wrote a Web page that needed 10K rows displayed?
Writing good _and relevant_ benchmarks is one of the more difficult things
to d
On Saturday 01 June 2002 06:20, Daniel Grace wrote:
> > > language would in many cases show PHP to be slower simply because it's
> > > looping code is slow? [...]
>
> It is typical usage, yes, but the conversation that gave me the idea to do
> the quick speed comparison was the idea that PHP can b
I agree that in most cases it makes more sence at seing the webpages per
second benchmark rather then a timing of some artibtrary benchmarks that for
example seeing how long it take to pick prime numbers. Since in the end it
matters how quickly you can get the data to the user, in case of perl
"Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Sure, you could put it that way. When benchmarking something you really
> should benchmark stuff that you actually care about. Benchmark PHP
> spewing out a web page after making a couple of SQL
Sure, you could put it that way. When benchmarking something you really
should benchmark stuff that you actually care about. Benchmark PHP
spewing out a web page after making a couple of SQL queries, for example.
That's typical usage, so that is what you should benchmark. Very few PHP
scripts a
Does this mean that running a comparison benchmarks between PHP and any other
language would in many cases show PHP to be slower simply because it's
looping code is slow? Unless, timing is done on a speed of PHP being able to
spew out webpages via the webserver with a webserver benchmark tool s
Not very surprising. Perl's looping code has always ben faster than
PHP's. Highly iterative loops is really not what PHP is geared for. You
are not going to write a Mandelbrot algorithm in PHP. You write it in C
and drop in a super-quick extension into PHP and call mandelbrot().
-Rasmus
On F
This all started in a little debate between me and a friend of mine who I
think is as much a PERL zealot as I am a PHP zealot (I was briefly pondering
the idea of a Win32 API extension for PHP), and the results were rather
surprising -- to me, at least..
It all started when I asked him what PERL
15 matches
Mail list logo