![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
PHP
intergameover
这个作者很懒,什么都没留下…
展开
-
Win7下Apache2.2建立虚拟主机
网站目录:D:\development\phpenvironment\phpsite 访问域名:xx 1、修改hosts,增加: # localhost name resolution is handled within DNS itself. # 127.0.0.1 localhost # ::1 localhost 127.0原创 2013-01-22 15:57:04 · 409 阅读 · 0 评论 -
Fatal error: Call to undefined function mysql_connect() in D:\phpwww\index.php
环境:Win7 32位版本; Apache 5.4.4; PHP 5.4.12 Mysql 5.5.27 问题:在php文件中,创建到Mysql的连接,出错。浏览器提示: Fatal error: Call to undefined function mysql_connect() in D:\phpwww\index.php 前面已经把php.ini 中的 extensi原创 2013-03-09 10:30:38 · 6302 阅读 · 3 评论 -
修改mysql初始密码(摘自mysql官方文档)
Assigning root Account Passwords The root account passwords can be set several ways. The following discussion demonstrates three methods: Use the SET PASSWORD statement Use the UPDATE转载 2015-01-17 14:13:25 · 509 阅读 · 0 评论 -
Apache建立IP-Based和Name-based虚拟主机--httpd-vhosts.conf的设置
Name-based DocumentRoot "D:/workspace/PHPWS/shop" ServerName shop ServerAlias shop Require all granted 这种方式的访问: 本机host修改: 127.0.0.1 shop, 然后浏原创 2014-12-15 09:50:41 · 513 阅读 · 0 评论 -
A simple example of PHP closure
<?php function genFunc($name) { return function($msg) use($name) { echo $name . ' --- ' . $msg; }; } $func = genFunc("tom"); //var_dump($f); $func(" hello ");原创 2015-02-24 12:34:30 · 675 阅读 · 0 评论 -
ubutun14.10安装xdebug
Need to install xdebug on Ubuntu so you can test that really cool PHP web app that will wow users for a decade? The first thing you need to achieve that goal is have Ubuntu installed and the lamp stac转载 2015-02-27 17:48:48 · 728 阅读 · 0 评论