New Ribbon
快快樂樂學威力導演2024.影音剪輯與AI精彩創作 文淵閣工作室祝福大家新年快樂.龍年吉祥 Power Automate自動化超效率工作術 Midjourney AI圖像魔導書:搭配ChatGPT魔法加倍 超人氣FB+IG+LINE社群經營與行銷力(第二版) 翻倍效率工作術:不會就太可惜的 Excel × ChatGPT 自動化應用 AppInventor2零基礎入門班中文版(第六版) Python零基礎入門班(第四版) C語言學習聖經 用Canva設計超快超質感:平面、網頁、電子書、簡報、影片製作與AI繪圖最速技 PHP8/MySQL網頁程式設計自學聖經 翻倍效率工作術 - 不會就太可惜的Power BI大數據視覺圖表設計與分析(第三版) 社群經營一定要會的影音剪輯與動畫製作術 Notion高效管理250招:筆記×資料庫×團隊協作,數位生活與工作最佳幫手 Office 2021高效實用範例必修16課(附500分鐘影音教學/範例檔) Excel自學聖經(第二版):從完整入門到職場活用的技巧與實例大全 網路開店×拍賣王:蝦皮來了(第二版) 專家都在用的Google最強實戰:表單、文件、試算、簡報、遠距與線上會議 超人氣 Instagram 視覺行銷力(第二版):小編不敗,經營 IG 品牌人氣王的 120 個秘技!

 

  挑戰Dreamweaver MX 2004 for PHP的問題

elaine

elaine
更新時間:2008/10/31 下午 05:40:53

 

“挑戰Dreamweaver MX 2004 for PHP”第2章
2-2-4:“在Apache網站服務器上安裝PHP”
第二步:“修改Apache網站服務器的設置文件”
第3步:接著要設置Apache網站服務器對於PHP擴展名的程序編譯能力。選擇[編輯]\[查找]命令打開[查找]對話框,輸入“AddType”後單擊[查找下一個]按鈕來搜索要修改的設置字符串。

按照上述指示操作後出現的字符串如下:
#
# AddType allows you to add to or override the MIME configuration
# file mime.types for specific file types.
#
#AddType application/x-tar .tgz
#
# AddEncoding allows you to have certain browsers (Mosaic/X 2.1+) uncompress
# information on the fly. Note: Not all browsers support this.
# Despite the name similarity, the following Add* directives have nothing
# to do with the FancyIndexing customization directives above.
#
#AddEncoding x-compress .Z
#AddEncoding x-gzip .gz .tgz
#
# If the AddEncoding directives above are commented-out, then you
# probably should define those extensions to indicate media types:
#
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz

#
# AddHandler allows you to map certain file extensions to "handlers":
# actions unrelated to filetype. These can be either built into the server
# or added with the Action directive (see below)
#
# To use CGI scripts outside of ScriptAliased directories:
# (You will also need to add "ExecCGI" to the "Options" directive.)
#
#AddHandler cgi-script .cgi


但是按照書上指示,應該出現下面的字符串:
#
# AddType allows you to add to or override the MIME configuration
# file mime.types for specific file types.
#
AddType application/x-tar .tgz
AddType image/x-icon .ico

#
# AddHandler allows you to map certain file extensions to "handlers":
# actions unrelated to filetype. These can be either built into the server
# or added with the Action directive (see below)
#
# To use CGI scripts outside of ScriptAliased directories:
# (You will also need to add "ExecCGI" to the "Options" directive.)
#
#AddHandler cgi-script .cgi


所以現在無法運行PHP。請問這個問題應該如何解決?

文淵閣工作室

文淵閣工作室
更新時間:2008/11/4 上午 09:38:25

 

各個版本的 Apache 都有些許不同,請問您的環境跟書上都一樣嗎?
若不一樣也無妨,
請按照書上說明加上那些行程式,
順序及位置您都可以放置在最下方。

elaine

elaine
更新時間:2008/11/4 下午 08:09:35

 

照你說的方法試了,問題沒有解決。我用的是隨書光盤裏的apache_2.0.52-win32-x86-no_ssl,使用的是Windows XP Professional操作系統。-系統中沒有IIS服務器軟件,所以直接安裝的Apache軟件。之前的步驟都沒問題,和書上的顯示完全相同,就是這一步不一樣,實際出現的字符串比書上顯示的多出很多,還有很多不一樣的地方,試了好幾種方式加入書上的行程式,但是都沒有用。輸入http://localhost/index.php後總是顯示“找不到網頁”。

能不能幫我仔細看一下多出的這些字符串,看看有沒有什麽辦法在這個基礎上修改和添加?我現在卡在這一步,PHP應用不了,書上所講的內容全都無法操作呢,拜托拜托

文淵閣工作室

文淵閣工作室
更新時間:2008/11/5 上午 09:07:12

 

顯示找不到網頁,您是否有測試過您的Apache是否正常運作?




 

 

Re:挑戰Dreamweaver MX 2004 for PHP的問題

請輸入姓名。

已超出字元數目的最大值。


請輸入電子郵件。

格式無效。


請輸入內容。