webgrind是什么页面怎么没有显示东西

美女图片(2)
在调试WEB应用程序时,我们都需要很多配置,LAMP,ASP,IIS等等。而在所有方式中,最简单的莫过于WAMP了。
WAMP是Windows下的Apache+Mysql+PHP的缩写。
通过这个服务器我们可以完全傻瓜的在一般的Windows PC上面搭建起一个WEB服务器,一个功能齐全的服务器。
通过百度就可以找到安装文件,一个EXE文件,简单吧?
Windows标准安装。
3.&如何用:
Wamp需要一些简单的配置,首先是对80端口的扫描,WAMP提供了80端口检查的工具,如下图:
如果的确不想用80端口,可以指定端口。
3.1 添加自定义映射:
然后就是修改基本配置了,上图中的httpd.conf文件直接打开就可以修改配置,
之前有很多比较麻烦和难懂的配置,新版本的WAMP已经都默认设置过了。
这一步基本不再需要,如果想要简单的本地域名映射,添加如下代码到Httpd.conf文件结束:
&VirtualHost *:80&
ServerAdmin &a target=_blank href=&mailto:&&&/a&
DocumentRoot &D:\test&
ServerName&#
&Directory /&
AllowOverride None
Order Deny,Allow
Deny from all
&/Directory&
&Directory &D:\test&&
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
&/Directory&
&/VirtualHost&
这样WAMP就会将收到得到本机的对页面的请求 解析到&目录&&D:\test&了。
此时,因为没有DNS,如果想访问,还需要设置一个到的映射。
在C:\WINDOWS\system32\drivers\etc\目录下 hosts文件中,添加一行:
如果是其他局域网的主机需要访问,自行调整设置即可.
3.2 优先级
httpd.conf文件还可以设置启动的主页优先级:
&IfModule dir_module&
DirectoryIndex index.php index.php3 index.html index.htm index.html5
&/IfModule&
&这样服务器会根据php -& php3 -& html...
这样的顺序进行读取。
3.3 访问权限
httpd.conf文件中对网站各个子文件夹的访问权限可以分开设置,如:
&Directory /&
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
&/Directory&如上语句指明了默认的访问规则是最严格的“deny from all”。
而后在未修改的httpd.conf文件中(而非上面的)有如下段:
&Directory &c:/wamp/www/&&
# Possible values for the Options directive are &None&, &All&,
# or any combination of:
Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
# Note that &MultiViews& must be named *explicitly* --- &Options All&
# doesn't give it to you.
# The Options directive is both complicated and important.
Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
Options Indexes FollowSymLinks
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be &All&, &None&, or any combination of the keywords:
Options FileInfo AuthConfig Limit
AllowOverride all
# Controls who can get stuff from this server.
onlineoffline tag - don't remove
Order Allow,Deny
Allow from all
&/Directory&
这就指明了默认的localhost目录,如果使用这个默认的配置,在IE中打开localhost或直接用WAMP的快捷方式:
则可以访问到c:/wamp/www/index.html页面。
3.4 PHP My Admin
在较新版本的WAMP中,关于PHPMyAdmin等被移到了独立的文件中,WAMP3.4.10.1版本各项对应关系如下:
PHPMyAdmin
C:\wamp\alias\phpmyadmin.conf
设置PHP主要的权限及管理配置参数,对应页面为c:/wamp/apps/phpmyadmin3.4.10.1/
C:\wamp\alias\sqlbuddy.conf
设置MySql主要的权限及管理配置参数,对应页面为C:\wamp\apps\sqlbuddy1.3.3
C:\wamp\alias\webgrind.conf
设置PHP主要的权限及管理配置参数,对应页面为C:\wamp\apps\webgrind1.0
按照注释修改,获得完全权限:
# to give access to phpmyadmin from outside
# replace the lines
Order Deny,Allow
# Deny from all
# Allow from 127.0.0.1
Order Allow,Deny
Allow from all
#之后通过浏览器打开phpMyAdmin,配置各项服务。
其中MySQL部分可以执行SQL操作并且声称PHP代码,这些超出本文范畴,不在介绍。
因为WAMP的各类配置,包括MySQL和PHP都已经非常简单了,这里就不再详细赘述。
参考知识库
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:6718次
排名:千里之外
原创:15篇抓取url PHP显示任何网页的HTML源代码 - 为程序员服务
为程序员服务
PHP显示任何网页的HTML源代码
&?php // display source code
$lines = file('/');
foreach ($lines as $line_num =& $line) {
// loop thru each line and prepend line numbers
echo &Line #&b&{$line_num}&/b& : & . htmlspecialchars($line) . &&br&\n&;
您可能的代码
相关聚客文章
荣誉:1146
相关专栏文章部署webgrind监控页面执行效率 - 推酷
部署webgrind监控页面执行效率
1、安装xdebug(不多做介绍)
2、配置php.ini的xdebug
配置文件如下
zend_extension = xdebug.so
xdebug.auto_trace=on
xdebug.collect_params=on
xdebug.collect_return=on
xdebug.trace_output_dir=/vagrant_data/webgrind/tmp
#监控缓存文件存放目录
xdebug.remote_enable = on
xdebug.profiler_enable =off
#禁止全部程序监控
xdebug.profiler_enable_trigger=on
xdebug.profiler_output_dir = /vagrant_data/webgrind/tmp #监控缓存文件存放目录
xdebug.profiler_output_name = cachegrind.out.%t.%p
#生成文件格式
3、下载webgrind程序
下载地址:/jokkedk/webgrind
4、安装 graphviz
#aptitude install
graphviz # graphviz 附带& dot 命令用于下文的配置
5、修改webgrind配置文件config.php
`$pythonExecutable`的值改为python命令路径
`$dotExecutable`的值改为dot命令路径
6、访问webgrind配置的web页面即可
已发表评论数()
请填写推刊名
描述不能大于100个字符!
权限设置: 公开
仅自己可见
正文不准确
标题不准确
排版有问题
主题不准确
没有分页内容
图片无法显示
视频无法显示
与原文不一致<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
您的访问请求被拒绝 403 Forbidden - ITeye技术社区
您的访问请求被拒绝
亲爱的会员,您的IP地址所在网段被ITeye拒绝服务,这可能是以下两种情况导致:
一、您所在的网段内有网络爬虫大量抓取ITeye网页,为保证其他人流畅的访问ITeye,该网段被ITeye拒绝
二、您通过某个代理服务器访问ITeye网站,该代理服务器被网络爬虫利用,大量抓取ITeye网页
请您点击按钮解除封锁&

我要回帖

更多关于 webgrind怎么用 的文章

 

随机推荐