PHP 新手筆記

Fatal error: Call to undefined function curl_init() 問題

今天想嘗試使用 CURL 這個 MODULE 去 POST 一些 XML Data 到另一個 website, 當我跟著網上的 example 試 code 的時候" <? $ch = curl_init(); ?> 下面的 error 便出現了 Fatal error: Call to undefined function curl_init() in D:WebServerWebSitePostXML.php on line 8

2009-08-12

PHP Session Problem

When I try to use the Session variable in PHP $_Session[“VariableName”], it does not work". The session never get registered. How to check? You can use the following code to see if the Session is null or not.

2009-08-09

CodeIgniter does not work — CodeIgniter 不能 顯示 $name入面的內容

今日在學習CodeIgniter 時 嘗試隨著 CodeIgniter的教學建立一些 Sample Website 但不知道為什麼用 <?=$name?> 不能顯然 $name 的內容, 最後發現原來是 一些 Config 的問題 解決方法: 打開你的 CodeIgniter 檔案夾 到systemapplicationconfig 開啟: config.php 之後找 $config['rewrite_short_tags'] 如果設定為FALSE 的話 就會用不到這個功能的 只要把設定改到好像下面一樣便可 $config[‘rewrite_short_tags’] = TRUE; Hope you find it useful

2008-08-12

PHP Framework CodeIgniter- 一個挺好用的 PHP Framework

最近開始學習 CodeIgniter CodeIgniter 是一個挺好用的 PHP Framework 可以令你開發PHP 網頁的速度更快 很多時候在開發PHP 網頁 出現的問題 大部份用這個Framework 都可以解決 有時間可以嘗試學習..使用這個Framework 大家可以到以下網址Download 和使用 CodeIgniter Framework http://codeigniter.com/ Have Fun

2008-08-10