blog.Ring.idv.tw

2007 October

在Zend Framework上開發一個HelloWorld

趁著今天剛好有點時間~ 來玩玩PHP順便試試Zend Framework~

本文所使用的範例均參考Zend_Controller Quick Start.來製作,並稍加擴充~

由於筆者涉獵未深,如果你有興趣的話,請參考Zend Framework官方文件的詳加說明~

作業環境

Windows XP Home(SP2)

Apache 2.2.6

PHP 5.2.4

Zend Framework 1.0.2

Apache rewrite_module設定

1.將rewrite_module啟用(LoadModule rewrite_module modules/mod_rewrite.so)

2.將<Directory "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs">底下的AllowOverride設為All

HelloWorld安裝步驟

1.下載Zend Framework.

2.解壓縮後將目錄下的library複製到C:\Program Files\PHP\ (這是筆者測試環境,你可以自由更改)

3.修改php.ini中的include_path = ".;C:\Program Files\PHP\library" (如果前面有;分號,請拿掉)

4.下載筆者寫好的HelloWorld

5.直接解壓縮在htdocs目錄底下即可

最後打開你的瀏覽器~

試一下http://127.0.0.1/http://127.0.0.1/indexhttp://127.0.0.1/index/hello

可以發現屬於你的第一個Zend Framework範例已經架構完成了~

希望本文能減少許多對此感興趣的朋友的摸索時間~

問題排除

1.確認安裝好Apache和PHP時,並在Apache的httpd.conf設定如下:

ServerName *:80

#加入PHP

AddType application/x-httpd-php .php .php3 .phtml

AddType application/x-httpd-php-source .phps

2.支援short tag,請修改php.ini

short_open_tag = On

參考資源:

1.Zend_Controller Quick Start.

2.Zend Framework安裝

2007-10-07 21:27:16 | Comments (4)

Adobe AIR beta 2 Released!

Adobe AIR beta 2已經在今天釋出了~Adobe Integrated Runtime (AIR) SDK也跟著更新了~

我想離正式版應該相去不遠了~

We are currently targeting the beginning of 2008 for the release of Adobe AIR 1.0. 

Beta 2所包含的新特色:

- System Tray icon/Dock Bar Bounce

- Synchronous database API(tm)

- Native menus

- Drag and drop enhancements including bitmap support

- Windowing improvements such as Z-order control and enhanced activation and focus support

- Improved Install dialog look and feel

- Application-initiated runtime updates

- HTML security model improvements

- Mouse support for double-click and scroll-wheel

- Per-machine runtime installs

- Performance and memory enhancements

- Hundreds of bug fixes

2007-10-01 17:30:14 | Comments (5)

Flash Lite 3 Update for Flash CS3 Professional

想要在手機上觀看Flash Video的影片嗎?官方已釋出Flash Lite 3 Update(Adobe Flash Support Center),趕緊來更新一下~

2007-10-01 17:20:57 | Add Comment

Next Posts
Copyright (C) Ching-Shen Chen. All rights reserved.

::: 搜尋 :::

::: 分類 :::

::: 最新文章 :::

::: 最新回應 :::

::: 訂閱 :::

Atom feed
Atom Comment