惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

P
Proofpoint News Feed
Microsoft Azure Blog
Microsoft Azure Blog
Jina AI
Jina AI
博客园_首页
宝玉的分享
宝玉的分享
The Cloudflare Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
量子位
T
Tailwind CSS Blog
雷峰网
雷峰网
Blog — PlanetScale
Blog — PlanetScale
Last Week in AI
Last Week in AI
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Hugging Face - Blog
Hugging Face - Blog
月光博客
月光博客
罗磊的独立博客
F
Fortinet All Blogs
酷 壳 – CoolShell
酷 壳 – CoolShell
Stack Overflow Blog
Stack Overflow Blog
J
Java Code Geeks
V
V2EX
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
The GitHub Blog
The GitHub Blog
Apple Machine Learning Research
Apple Machine Learning Research
博客园 - 聂微东
U
Unit 42
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
D
Docker
阮一峰的网络日志
阮一峰的网络日志
I
InfoQ
Simon Willison's Weblog
Simon Willison's Weblog
D
DataBreaches.Net
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
I
Intezer
Scott Helme
Scott Helme
B
Blog
M
MIT News - Artificial intelligence
K
Kaspersky official blog
H
Help Net Security
V
Vulnerabilities – Threatpost
C
CXSECURITY Database RSS Feed - CXSecurity.com
Engineering at Meta
Engineering at Meta
博客园 - 【当耐特】
L
Lohrmann on Cybersecurity
P
Privacy & Cybersecurity Law Blog
Project Zero
Project Zero
The Hacker News
The Hacker News
B
Blog RSS Feed
T
Tor Project blog

博客园 - 系咪噶

[JAVA基础]流文件读写文件编码转换 最近转战东软 Apache + php 配置 php基础教程之PHP面向对象技术(全面讲解) 今日无事,将一同志之毕设完结 SQL查询基本练习1:(作业) SQL Server 高级应用(周六讲座) 面向对象之CoreJava(第一课) CVS的使用(一课时) PL/SQL第三课(学习笔记) PL/SQL第二课(作业) PL/SQL第二课(学习笔记) PL/SQL第一课(学习笔记) Oracle第五课(学习笔记) Oracle第四课(学习笔记) 全步骤安装mysql SQL Server 存储过程的分页 无法连接到Visual Studio 的Localhost Web服务器 Oracle第三课(学习中笔记)
apache 新建虚拟机 +Zend Framework建立
系咪噶 · 2009-07-08 · via 博客园 - 系咪噶

官方下载 Zend Framework

1、LoadModule rewrite_module modules/mod_rewrite.so

2、建立映射主机 c:\windows\system32\drivers\etc\hosts  加入 127.0.0.1 sugou

3、建立虚拟主机

Listen 8080 #监听端口
       <VirtualHost *:8080>
            ServerAdmin admin@sugou.local                           
            ServerName sugou      #域名 输入"http://sugou:8080/即可到达该目录
            DocumentRoot "e:/php/sugou/htdocs"   
            <Directory "e:/php/sugou/htdocs">
                 Options All
                 AllowOverride All

                 </Directory>
 php_value include_path ",;e:/php/sugou/include;e:/webservices/phpinstall/PEAR"
 php_value magic_quotes_gpc off
 php_value register_globals off
 php_value display_errors on
        </VirtualHost>    

4、建立. .htaccess 文件

cmd->cd 到index.php目录 键入命令 edit .htaccess 输入
           文件内容为
           RewriteEngine on
           RewriteRule !\.(js|ico|gif|bmp|jpg|png|css|xml|html|txt)$ index.php [NC]

5、加载Zend Framework

      index.php

<?php

      require_once("Zend/Loader.php"); //这里自动获取路径 总路径为 index_path+"Zend/Loader.php"

      Zend_Loader::loadClass('Zend_Controller_Front');  
      Zend_Loader::loadClass('Zend_Config_Ini');  
      Zend_Loader::loadClass('Zend_Registry');  
      Zend_Loader::loadClass("Zend_View");  
      Zend_Loader::loadClass('Zend_Db');
      echo "good information";

?>