<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Preschool presents and PHP</title>
	<atom:link href="http://www.schwieb.com/blog/2008/04/18/preschool-presents-and-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.schwieb.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.schwieb.com%2Fblog%2F2008%2F04%2F18%2Fpreschool-presents-and-php%2F&amp;seed_title=Preschool+presents+and+PHP</link>
	<description>Random blatherings</description>
	<pubDate>Mon, 08 Sep 2008 02:36:28 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: JIngxia</title>
		<link>http://www.schwieb.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.schwieb.com%2Fblog%2F2008%2F04%2F18%2Fpreschool-presents-and-php%2F&amp;seed_title=Preschool+presents+and+PHP#comment-34909</link>
		<dc:creator>JIngxia</dc:creator>
		<pubDate>Wed, 14 May 2008 15:43:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.schwieb.com/blog/?p=66#comment-34909</guid>
		<description>There is another coding styles in PHP: Separate PHP  from HTML. A good habit is using some template to accelerate your work. One typical example is Smarty. If you are using Smarty, you will see the world looks better:)

Example
demo.php
assign('Hello', $hi');
    $smaty-&#62;assign('World', $schwieb);
     $smarty-&#62;display('demo.htm');
?&#62;

demo.htm



.....


..... {$hi} ...
.....{$schwieb}....
...

</description>
		<content:encoded><![CDATA[<p>There is another coding styles in PHP: Separate PHP  from HTML. A good habit is using some template to accelerate your work. One typical example is Smarty. If you are using Smarty, you will see the world looks better:)</p>
<p>Example<br />
demo.php<br />
assign(&#8217;Hello&#8217;, $hi&#8217;);<br />
    $smaty-&gt;assign(&#8217;World&#8217;, $schwieb);<br />
     $smarty-&gt;display(&#8217;demo.htm&#8217;);<br />
?&gt;</p>
<p>demo.htm</p>
<p>&#8230;..</p>
<p>&#8230;.. {$hi} &#8230;<br />
&#8230;..{$schwieb}&#8230;.<br />
&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tim</title>
		<link>http://www.schwieb.com/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fwww.schwieb.com%2Fblog%2F2008%2F04%2F18%2Fpreschool-presents-and-php%2F&amp;seed_title=Preschool+presents+and+PHP#comment-34024</link>
		<dc:creator>tim</dc:creator>
		<pubDate>Wed, 30 Apr 2008 20:14:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.schwieb.com/blog/?p=66#comment-34024</guid>
		<description>The balance of php and html varies with the purpose of the page: some are mainly php, some mainly html, and many a goodly mix. That's the power of php - and the code style still reads well. It's fun watching c-background guys doing

$o .= "some more html code";
$o .= "yet more html code";
print ($0);

while web-background people do

Some people like  enjoy inlining
php with html more than  do.

It's just style, until, after the first  versions have begun to be used online and the site develops, reliability and delegation of content to web-only people requires that code and content will be separated, with a purely or mainly php page callling mostly-html pages to do the display work.

php is still the AppleScript of the web :-)</description>
		<content:encoded><![CDATA[<p>The balance of php and html varies with the purpose of the page: some are mainly php, some mainly html, and many a goodly mix. That&#8217;s the power of php - and the code style still reads well. It&#8217;s fun watching c-background guys doing</p>
<p>$o .= &#8220;some more html code&#8221;;<br />
$o .= &#8220;yet more html code&#8221;;<br />
print ($0);</p>
<p>while web-background people do</p>
<p>Some people like  enjoy inlining<br />
php with html more than  do.</p>
<p>It&#8217;s just style, until, after the first  versions have begun to be used online and the site develops, reliability and delegation of content to web-only people requires that code and content will be separated, with a purely or mainly php page callling mostly-html pages to do the display work.</p>
<p>php is still the AppleScript of the web <img src='http://www.schwieb.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
</channel>
</rss>
