RE: [PHP] php-speed
| From: | Niklas Lampén | Date: | Thu, 13 Jun 2002 13:09:23 +0000 |
| Subject: | RE: [PHP] php-speed | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-101941@lists.php.net to get a copy of this message | ||
I don't think so. The difference is (IMHO + the article linked below) if
you use
...<a href="<?=$Var?>">Foo</a>... (faster)
or
<? print "...<a href=\"$Var\">Foo</a>..."; ?> (slower)
Niklas
-----Original Message-----
From: Brian McGarvie [mailto:bmcgarvie@lennox-mckinlay.co.uk]
Sent: 13. kesäkuuta 2002 15:29
To: niklas.lists@publico.fi
Cc: Php-General
Subject: RE: [PHP] php-speed
I believe it also depends on the quote types used...
Place string/text/html code etc with in single quotes > ' < if the
string contains no $var's to be parsed, and > " < if it does need to
parse $var's.
> -----Original Message-----
> From: Niklas Lampén [mailto:niklas.lists@publico.fi]
> Sent: 13 June 2002 1:25 PM
> To: Php-General
> Subject: RE: [PHP] php-speed
>
>
> On which part was I wrong?
>
> Printing HTML via PHP is slower than inserting PHP into HTML. Maybe
> we're just having communicational problems. :)
>
> English is not my native language, so I might have understood
> it wrong,
> but I understand embedding php opposite to echoing html. Am I
> understood
> now? ;)
>
> Btw. everyone else, check that link below too, if this issue
> is in your
> interest.
>
>
> Niklas
>
>
> -----Original Message-----
> From: Pradeep Dsouza [mailto:pradeep@aspbytecreations.com]
> Sent: 13. kesäkuuta 2002 15:21
> To: niklas.lists@publico.fi
> Subject: Re: [PHP] php-speed
>
>
> See this
> And maybe you might change your impression
>
> http://www.phpbeginner.com/columns/jason/echo
>
> Pradeep
>
> www.naharonline.com
>
>
>
>
>
> ----- Original Message -----
> From: "Niklas Lampén" <niklas.lists@publico.fi>
> To: "Php-General" <php-general@lists.php.net>
> Sent: Thursday, June 13, 2002 5:38 PM
> Subject: RE: [PHP] php-speed
>
>
> Embedding PHP in HTML, since I think HTML is ignored by php,
> just passed
> thru.
>
>
> Niklas
>
>
> -----Original Message-----
> From: Philipp Melab [mailto:philipp.melab@gmx.at]
> Sent: 13. kesäkuuta 2002 14:55
> To: php-general@lists.php.net
> Subject: [PHP] php-speed
>
>
> I have a simple newbie question...
> Whats better (faster?):
>
> - embedding PHP in HTML
> - or printing HTML via PHP
> ....?
>
> yours Philipp
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
> ###########################################
> This message has been scanned by F-Secure Anti-Virus for
> Internet Mail.
> For more information, connect to http://www.F-Secure.com/
>
> ###########################################
> This message has been scanned by F-Secure Anti-Virus for
> Internet Mail.
> For more information, connect to http://www.F-Secure.com/
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
> ###########################################
> This message has been scanned by F-Secure Anti-Virus for
> Internet Mail.
> For more information, connect to http://www.F-Secure.com/
>
> ###########################################
> This message has been scanned by F-Secure Anti-Virus for
> Internet Mail.
> For more information, connect to http://www.F-Secure.com/
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
###########################################
This message has been scanned by F-Secure Anti-Virus for Internet Mail.
For more information, connect to http://www.F-Secure.com/
###########################################
This message has been scanned by F-Secure Anti-Virus for Internet Mail.
For more information, connect to http://www.F-Secure.com/