<?xml version="1.0"?>
<rss version="2.0">
<channel>
  <title>Weiqi Gao&#039;s Observations - php tag</title>
  <link>http://www.weiqigao.com/blog/tags/php/</link>
  <description>Sharing My Experience...</description>
  <language>en</language>
  <copyright>Weiqi Gao</copyright>
  <lastBuildDate>Fri, 11 May 2012 12:48:36 GMT</lastBuildDate>
  <generator>Pebble (http://pebble.sourceforge.net)</generator>
  <docs>http://backend.userland.com/rss</docs>
  
  <image>
    <url>http://pebble.sourceforge.net/common/images/powered-by-pebble.gif</url>
    <title>Weiqi Gao&#039;s Observations</title>
    <link>http://www.weiqigao.com/blog/</link>
  </image>
  
  
  <item>
    <title>My Other Blog Is A WordPress</title>
    <link>http://www.weiqigao.com/blog/2005/08/28/my_other_blog_is_a_wordpress.html</link>
    
      
        <description>
          &lt;p&gt;After provoking a &lt;a href= &#034;http://ericburke.com/blog/2005/08/27/30&#034; &gt;small&lt;/a&gt; &lt;a href= &#034;http://7gen.com/personal-blog-entry/2005aug272101/computers/blogging/why-is-it-hard-to-find-a-place-to-host-java-based-web-applications&#034; &gt;debate&lt;/a&gt; with my &lt;a href= &#034;http://www.weiqigao.com/blog/2005/08/27/wordpress_php_anti_intuitive_reality.html&#034; &gt;WordPress, PHP, Anti-Intuitive Reality, ...&lt;/a&gt; post yesterday, I feel obligated to at least try out WordPress.&lt;/p&gt;

&lt;p&gt;And as a result, I have two blogs now.  My canonical blog is still the &lt;a href= &#034;http://pebble.sourceforge.net/&#034; &gt;Pebble&lt;/a&gt; powered (and dully named) &lt;a href= &#034;http://www.weiqigao.com/blog/&#034; &gt;Weiqi Gao&#039;s Weblog&lt;/a&gt;.  My new blog, named &lt;a href= &#034;http://www.weiqigao.com/blog2/&#034; &gt;不惑&lt;/a&gt;, is available at &lt;a href= &#034;http://www.weiqigao.com/blog2/&#034; &gt;http://www.weiqigao.com/blog2/&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The initial mission of the new blog is to get me familiarized with WordPress and PHP so that I can say something more intelligent on this subject.  Once that is done, I&#039;ll use it to explore some other topics.&lt;/p&gt;

&lt;p&gt;My first impression so far:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;The initial setup of WordPress is comparable to that of Pebble.&lt;/li&gt;
	&lt;li&gt;The WordPress blog feels snappier than Pebble, although both are more than adquate.&lt;/li&gt;
	&lt;li&gt;WordPress takes noticably longer to save blog entries than Pebble does.&lt;/li&gt;
	&lt;li&gt;Both seems to support the same set of basic features.&lt;/li&gt;
	&lt;li&gt;WordPress&#039;s blog editor text area is more developed (more Quicktags) than Pebble&#039;s.&lt;/li&gt;
	&lt;li&gt;&lt;strong&gt;WordPress relies on PHP, which is available in the default installation of Fedora Core 3.  Pebble relies on Java and Tomcat, which are not available by default.&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The bottom line, as I see it, is this: If I want to setup a blog and I&#039;m not a PHP programmer, I can still setup WordPress.  If I want to setup a blog and I&#039;m not a Java programmer, there is not way that I can setup Pebble.&lt;/p&gt;

&lt;p&gt;I agree with David Herron on his accessment of the reason for the lack of Java hosting services.&lt;/p&gt;

&lt;p&gt;Eric Burke&#039;s argument that Java hosting requires more memory can explain why Java hosting is more expensive.  If the same amount of memory can host either 100 PHP accounts or 33 Java accounts, then it make sense to price the Java accounts at 3 times the price of PHP accounts.  But it cannot explain why there is less Java hosting than PHP hosting services.&lt;/p&gt;&lt;p&gt;

&lt;/p&gt;&lt;p&gt;The complexities of Java web applications doesn&#039;t seem to matter in this argument.  As a user, I just don&#039;t see them.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Update&lt;/b&gt;: My experiment &lt;a href= &#034;http://www.weiqigao.com/blog/2006/03/15/wordpress_experiment_finished.html&#034; &gt;ended in 199 days&lt;/a&gt;.  The blog is off line now.  The following are comments posted to the blog entry in the WordPress system:&lt;/p&gt;

&lt;p&gt;
&lt;a href= &#034;http://www.ericburke.com/blog/&#034; &gt;Eric Burke&lt;/a&gt; Says:&lt;br&gt;
&lt;small class=&#034;commentmetadata&#034;&gt;&lt;a href=&#034;#comment-2&#034; title=&#034;&#034;&gt;August 28th, 2005 at 9:08 pm&lt;/a&gt; &lt;/small&gt;

&lt;p&gt;Wordpress
posting may take longer if you include hyperlinks in your posts and
pingback is enabled. Wordpress might be trying to ping each of those
outbound hyperlinks to let them know you are blogging about them.&lt;/p&gt;

	&lt;p&gt;Pebble
and Wordpress use different data storage techniques. Pebble stores
pages in flat files, Wordpress uses MySql. This could impact
performance when rendering pages.
&lt;/p&gt;

&lt;p&gt;&lt;a href= &#034;http://blog.f12.no&#034; &gt;Anders&lt;/a&gt; Says:&lt;br&gt;
&lt;small class=&#034;commentmetadata&#034;&gt;&lt;a href=&#034;#comment-3&#034; title=&#034;&#034;&gt;August 29th, 2005 at 2:10 am&lt;/a&gt; &lt;/small&gt;

&lt;p&gt;The long save times are probably because the xml pings it sends while saving.&lt;/p&gt;

&lt;p&gt;&lt;a href= &#034;http://www.funkatron.com&#034; &gt;Ed Finkler&lt;/a&gt; Says: &lt;br&gt;

&lt;small class=&#034;commentmetadata&#034;&gt;&lt;a href=&#034;#comment-4&#034; title=&#034;&#034;&gt;August 29th, 2005 at 9:25 am&lt;/a&gt; &lt;/small&gt;

				&lt;p&gt;Just
FYI, most of the apparent delay in saving posts in Wordpress comes from
the automatic pinging via XML-RPC of external sites to notify them of
updates. The post is actually saved and available on your site
immediately. You can disable the pinging by clearing out Options &amp;gt;
Writing &amp;gt; Update Services.
&lt;/p&gt;

&lt;p&gt;Harry Fuecks Says:&lt;br&gt;

&lt;small class=&#034;commentmetadata&#034;&gt;&lt;a href=&#034;#comment-5&#034; title=&#034;&#034;&gt;August 29th, 2005 at 4:10 pm&lt;/a&gt; &lt;/small&gt;

				&lt;p&gt;It’s
ironic that the PHP applications that are most popular (Wordpress and
phpBB in particular) are also those that raise the eyebrows of those
that know PHP well, usually for secuirty reasons. You may want to read
these for example;&lt;/p&gt;
	&lt;p&gt;&lt;a href=&#034;http://blog.php-security.org/archives/4-WordPress-a-hackers-paradise.html&#034; rel=&#034;nofollow&#034;&gt;http://blog.php-security.org/archives/4-WordPress-a-hackers-paradise.html&lt;/a&gt;&lt;br&gt;
&lt;a href=&#034;http://blog.php-security.org/archives/7-WordPress-update.html&#034; rel=&#034;nofollow&#034;&gt;http://blog.php-security.org/archives/7-WordPress-update.html&lt;/a&gt;&lt;br&gt;
&lt;a href=&#034;http://blog.php-security.org/archives/8-WordPress-irresponsible-silent-tarball-update.html&#034; rel=&#034;nofollow&#034;&gt;http://blog.php-security.org/archives/8-WordPress-irresponsible-silent-tarball-update.html&lt;/a&gt;&lt;/p&gt;
	&lt;p&gt;Stephan Esser, the author, is a developer for the Hardened PHP project &lt;a href=&#034;http://www.hardened-php.net/&#034; rel=&#034;nofollow&#034;&gt;http://www.hardened-php.net/&lt;/a&gt;&lt;/p&gt;

	&lt;p&gt;One alternative is s9y: &lt;a href=&#034;http://www.s9y.org/&#034; rel=&#034;nofollow&#034;&gt;http://www.s9y.org/&lt;/a&gt;
- used by many how also do stuff with PHP internals. s9y hasn’t quite
got character sets nailed down yet but if you hack your “local config”
you can force it to use UTF-8 without breaking anything (if you’re
using the English localization).&lt;/p&gt;
	&lt;p&gt;Another I’ve heard good things about but never tried is &lt;a href=&#034;http://www.dotclear.net/&#034; rel=&#034;nofollow&#034;&gt;http://www.dotclear.net/&lt;/a&gt; - the language barrier is probably hampering dotclear’s popularity&lt;/p&gt;
	&lt;p&gt;A third way might be Drupal but that’s not specifically a blog.&lt;/p&gt;
	&lt;p&gt;Forum-wise, while I’m on this rant, this is what everyone should be using: &lt;a href=&#034;http://fudforum.org/forum/&#034; rel=&#034;nofollow&#034;&gt;http://fudforum.org/forum/&lt;/a&gt;.
Sadly doesn’t quite look as slick as phpBB, which is probably the #1
criterion for many. And perhaps the single file installer throws people
(clever trick embedding a binary tarball inside a PHP script) but the
code is sane - things like profiling will have happened, for example,
and the secuirty track record is good. Here’s one of the authors
pointing a sly finger at phpBB &lt;a href=&#034;http://ilia.ws/archives/55-Webhosts-have-had-enough%21.html&#034; rel=&#034;nofollow&#034;&gt;http://ilia.ws/archives/55-Webhosts-have-had-enough!.html&lt;/a&gt;

&lt;/p&gt;

&lt;p&gt;不惑? Says:&lt;br&gt;

&lt;small class=&#034;commentmetadata&#034;&gt;&lt;a href=&#034;#comment-6&#034; title=&#034;&#034;&gt;August 29th, 2005 at 5:26 pm&lt;/a&gt; &lt;/small&gt;

				&lt;p&gt;Interesting title! It means “Forty years old”, courtesy of Google Translate:)&lt;/p&gt;
	&lt;p&gt;Zhicheng
&lt;/p&gt;

&lt;p&gt;不惑 » Blog Archive » What The Five Munites Setup Doesn’t Do Says:&lt;br&gt;

&lt;small class=&#034;commentmetadata&#034;&gt;&lt;a href=&#034;#comment-7&#034; title=&#034;&#034;&gt;September 3rd, 2005 at 8:45 am&lt;/a&gt; &lt;/small&gt;

&lt;p&gt;[…] 不惑 The Other Side Of Me (I’m Weiqi Gao)      « My Other Blog Is A WordPress […]
&lt;/p&gt;
        </description>
      
      
    
    
    
    <comments>http://www.weiqigao.com/blog/2005/08/28/my_other_blog_is_a_wordpress.html#comments</comments>
    <guid isPermaLink="true">http://www.weiqigao.com/blog/2005/08/28/my_other_blog_is_a_wordpress.html</guid>
    <pubDate>Sun, 28 Aug 2005 23:56:52 GMT</pubDate>
  </item>
  
  <item>
    <title>WordPress, PHP, Anti-Intuitive Reality, ...</title>
    <link>http://www.weiqigao.com/blog/2005/08/27/wordpress_php_anti_intuitive_reality.html</link>
    
      
        <description>
          &lt;p&gt;Had an interesting conversation at the stuff meeting &lt;a href= &#034;http://www.weiqigao.com/blog/2005/08/09/when_is_next_tuesday.html&#034; &gt;this past last Wednesday&lt;/a&gt;, i.e., 3 &lt;a href= &#034;http://www.weiqigao.com/blog/2004/12/11/how_many_days_ago_was_that.html&#034; &gt;days ago&lt;/a&gt;:&lt;/p&gt;

&lt;div style=&#034;margin-left:3em&#034;&gt;
&lt;p&gt;&lt;b&gt;Me&lt;/b&gt;: Hi, I started to read &lt;a href= &#034;http://nathan.tippy.name/software/&#034; &gt;your blog&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nathan&lt;/b&gt;: I&#039;ve noticed.  I did spend some time tweaking it.  It was fun.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Me&lt;/b&gt;: It&#039;s quite polished.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Brad&lt;/b&gt;: Who&#039;s hosting it?&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nathan&lt;/b&gt;: I&#039;m hosting it myself.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Brad&lt;/b&gt;: What software do you use?&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nathan&lt;/b&gt;: &lt;a href= &#034;http://wordpress.org/&#034; &gt;WordPress&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Me&lt;/b&gt;: Isn&#039;t that written in &lt;a href= &#034;http://www.php.net/&#034; &gt;PHP&lt;/a&gt;?&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nathan&lt;/b&gt;: Yes.  And it&#039;s quite an easy language.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Me&lt;/b&gt;: Didn&#039;t they put PHP code right there in the HTML pages?&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nathan&lt;/b&gt;: They do.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Me&lt;/b&gt;: Didn&#039;t we say that&#039;s bad?&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nathan&lt;/b&gt;: Apparently they are doing alright.  Lots of people are using WordPress.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Me&lt;/b&gt;: And look at us.  We tried so hard to separate our stuff into layers and all that and still can&#039;t manage the complexity.  We have so many frameworks yet not anything as popular as WordPress.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nathan&lt;/b&gt;: Not everyone needs the scalability.  How many hits can I get?&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Brad&lt;/b&gt;: You are hosting your blog in Java, right.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Me&lt;/b&gt;: Yes.  I use &lt;a href= &#034;http://pebble.sourceforge.net/&#034; &gt;Pebble&lt;/a&gt; with &lt;a href= &#034;http://jakarta.apache.org/tomcat/&#034; &gt;Tomcat&lt;/a&gt;.  I like it a lot.  A well designed tag library is a joy to use.&lt;/p&gt;
&lt;/div&gt;

&lt;p&gt;But why is this?  Why do people (at least some people) flock to something like PHP, which we Java people know is &#034;bad&#034; (or at least were told is bad)?&lt;p&gt;

&lt;p&gt;Could it be because that Java, although good, is too hard?&lt;/p&gt;

&lt;p&gt;Could it be because Java is not available out of the box?  (If you want to do ASP.NET, you get a Windows server.  If you want to do PHP, you get a Linux server.  If you want to do Java, you get a what?)&lt;/p&gt;

&lt;p&gt;Could it be because the Java implementations on different platforms are incompatible?  (What&#039;s the latest version of Java on Mac OS X?  on Solaris 7? 8? 9? 10?  on Free BSD?  On AIX?  HP-UX?  Tru64)&lt;/p&gt;

&lt;p&gt;Could it be because the Java stuff is too hard to set up right for end-users?  True that I can setup Pebble in five minutes, but that&#039;s assuming I have a working Tomcat environment.  And that is in itself a non-trivial task.&lt;/p&gt;

&lt;p&gt;Could it be because what we have been told this past ten years were wrong.  That PHP is really superior to Java?&lt;p&gt;

&lt;p&gt;Could it be because contrary to what we believed and what we&#039;ve been told by our bosses, we aren&#039;t that bright, and couldn&#039;t see something that is so plain to the PHP product vendors and users.  Doesn&#039;t that Joel on Software guy have a product that&#039;s ASP on Windows and PHP on UNIX?  I wonder why he did not use Java?&lt;/p&gt;

&lt;p&gt;Fooled us, those @#$%s!&lt;/p&gt;
        </description>
      
      
    
    
    
    <comments>http://www.weiqigao.com/blog/2005/08/27/wordpress_php_anti_intuitive_reality.html#comments</comments>
    <guid isPermaLink="true">http://www.weiqigao.com/blog/2005/08/27/wordpress_php_anti_intuitive_reality.html</guid>
    <pubDate>Sat, 27 Aug 2005 13:39:01 GMT</pubDate>
  </item>
  
  </channel>
</rss>

