Month: February 2006

  • failed to open stream: HTTP request failed!

    [17-Feb-2006 13:05:28] PHP Warning: readfile(http://xxxxxxx): failed to open stream: HTTP request failed! À in Command line code on line 1 => a weird error code return

  • Problem w/ .htaccess and mod_rewrite

    Purpose: maintain the same .htaccess file between localhost and production servers. Making changes to one file is better than editing two or more. Problem: directory for the project at local & production server are different. Therefore, RewriteBase of mod_rewrite needs to be set differently. Eg: Local: http://localhost/working/abc.html Production: http://example.com/abc.html Solution/Hack: have this in httpd.conf for…

  • Problem of CSS float & IE

    IE seems to really have a problem with breaking CSS. First is the 3-pixel bug for 2-column layout float. Solution: instead of just having the left panel float, have both panels (left & main) float left & right. Then there is an issue with italic and float. If the text in the left panel is…

  • Geographic Information Systems in e-businesses

    Title: Uses of Geographic Information Systems in e-businesses to improve user experience with online services Date: Feb 28, 2003 Introduction Surfing across a website, you see an advertisement of a local store for this week’s sale. This event immediately catches your attention and you click the banner. Businesses are putting great effort to understand website…

  • Blog Conversion – pLog to WordPress

    To convert database from pLog to WordPress, you basically need to run 2 SQL queries, assuming you have them on the same server. # Posts INSERT INTO db_wordpress.wp_posts ( ID, post_author, post_date,post_date_gmt, post_content,post_title, post_modified,post_modified_gmt ) SELECT a.id, 1, FROM_UNIXTIME(UNIX_TIMESTAMP(a.date)), FROM_UNIXTIME(UNIX_TIMESTAMP(a.date)+5*3600), p.text,p.topic, FROM_UNIXTIME(UNIX_TIMESTAMP(a.date)), FROM_UNIXTIME(UNIX_TIMESTAMP(a.date)+5*3600) FROM db_plog.plog_articles_text p,db_plog.plog_articles a WHERE a.id=p.article_id # Post-Categories Relationship INSERT INTO db_wordpress.wp_post2cat…

  • Google Sitemap – PHP Classes – XML Generator

    If you need some PHP classes to generate Google Sitemap XML, you come to the right page. ‘; $vOutput .= ‘‘; foreach ($this->mURLs AS $vOne) { $vOutput .= $vOne->display(); } // rof $vOutput .= ‘‘; return $vOutput; } } ?> CGoogleSiteMapURL is the support class for CGoogleSiteMapBase Sample Usage: init the class and add URLs…