๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.programming
Article #205464

Re: jsp vs php

#205464
From: R.e.m.e.K
Date: Tue, 30 Apr 2013 18:28
43 lines
2315 bytes
Dnia Tue, 30 Apr 2013 18:56:29 +0200, Ghost napisaล‚(a):

>>>> $smarty = new Smarty;
>>>> $smarty->assign('name', 'george smith');
>>>> $smarty->assign('address', '45th & Harris');
>>>> $smarty->display('index.tpl');
>>>>
>>>> Gdzie tu mieszanie HTMLa i PHP?
>>>
>>> A teraz przyjrzyj sie jak wyglada HTML.
>>
>> Wyglada dobrze i czysto:
> 
> Ryli?
> 
>> <html>
>> <head>
>> <title>Info</title>
>> </head>
>> <body>
>> <pre>
>> User Information:
>>
>> Name: {$name}
>> Address: {$address}
>> </pre>
>> </body>
>> </html>
> 
> Ta, {$name} plus overhead na oprogramowanie przypisania dla smartow jest 
> tysiac razy lepsze od <? echo $name?>, nigga, please.

Oczywiscie, ze jest to POSTKROC lepsze. Nie chce mi sie rozpisywac, bo
widze, zes zabetonowany. Rownie dobrze mozesz napisac, ze:

SELECT KOLUMNA FROM TABELA WHERE KLUCZ = ?KLUCZ

jest takze mieszaniem kodu SQL z kodem natywnym jezyka i bedzie to ...rownie
glupie.

-- 
pozdro
R.e.m.e.K
Technical Details
Message-ID: <51800d5c$0$26683$65785112@news.neostrada.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!news.cyf-kr.edu.pl!news.nask.pl!news.nask.org.pl!news.unit0.net!news.glorb.com!news-out.readnews.com!transit4.readnews.com!nx02.iad01.newshosting.com!newshosting.com!newsfeed.neostrada.pl!unt-exc-01.news.neostrada.pl!unt-spo-a-02.news.neostrada.pl!news.neostrada.pl.POSTED!not-for-mail
References: <cfa1e1b8-b40c-45e1-a091-7e7a1f53c751@googlegroups.com> <slrnkns9ih.jsn.dozzie@jarowit.net> <517e8f58$0$26681$65785112@news.neostrada.pl> <517ed8a7$0$1220$65785112@news.neostrada.pl> <517f8523$0$1210$65785112@news.neostrada.pl> <517fbf12$0$1252$65785112@news.neostrada.pl> <517fce0c$0$1270$65785112@news.neostrada.pl> <517fdd83$0$26694$65785112@news.neostrada.pl> <517ff7c4$0$1232$65785112@news.neostrada.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!news.cyf-kr.edu.pl!news.nask.pl!news.nask.org.pl!news.unit0.net!news.glorb.com!news-out.readnews.com!transit4.readnews.com!nx02.iad01.newshosting.com!newshosting.com!newsfeed.neostrada.pl!unt-exc-01.news.neostrada.pl!unt-spo-a-02.news.neostrada.pl!news.neostrada.pl.POSTED!not-for-mail
From: "R.e.m.e.K" <go@dev.null>
Subject: Re: jsp vs php
Newsgroups: pl.comp.programming
User-Agent: 40tude_Dialog/2.0.15.1pl
MIME-Version: 1.0
Sender: hell@heaven
References: <cfa1e1b8-b40c-45e1-a091-7e7a1f53c751@googlegroups.com> <slrnkns9ih.jsn.dozzie@jarowit.net> <517e8f58$0$26681$65785112@news.neostrada.pl> <517ed8a7$0$1220$65785112@news.neostrada.pl> <517f8523$0$1210$65785112@news.neostrada.pl> <517fbf12$0$1252$65785112@news.neostrada.pl> <517fce0c$0$1270$65785112@news.neostrada.pl> <517fdd83$0$26694$65785112@news.neostrada.pl> <517ff7c4$0$1232$65785112@news.neostrada.pl>
Date: Tue, 30 Apr 2013 20:28:43 +0200
Lines: 43
Message-ID: <51800d5c$0$26683$65785112@news.neostrada.pl>
Organization: Telekomunikacja Polska
NNTP-Posting-Host: 89-71-60-255.dynamic.chello.pl
X-Trace: 1367346524 unt-rea-a-01.news.neostrada.pl 26683 89.71.60.255:52831
X-Complaints-To: abuse@news.neostrada.pl
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit