06 2013 档案

摘要:练习php连接mysql数据库代码:mysql_connect("127.0.0.1:3306","root", .....浏览器报错:Fatal error: Call to undefined function mysql_connect() in ......解决办法:1、php.ini文件extension_dir = "php安装目录\ext" //我只改了这一行就好了然后,注释掉下面两行(分号表示注释)extension=php_mysql.dll;extension=php_mysqli.dll;2、apache安装目录 阅读全文
posted @ 2013-06-26 22:57 Medeor 阅读(1035) 评论(0) 推荐(0)
摘要:PHP部分文件访问函数总结: 1.filetype("文件路径") //可以输出相关文件类型,返回之为:dir/file... 2.stat("文件名") //函数获得指定文件文明参数目标文件基本属性 3.clearstatcache()清除缓存 4.is_executable()判断文件是否可执行 5.is_dir()判断是否存在或是文件夹 6.is_file("文件路径")判断是否是文件 7.scandir("文件夹路径")遍历文件夹/返回一个数组PHP部分文件操作函数总结: 1.fopen(filename, 阅读全文
posted @ 2013-06-26 16:48 Medeor 阅读(534) 评论(0) 推荐(0)
摘要:";//这是一个文件echo filetype("picture")."";//这是一个文件夹echo filetype("none")."";//不出在的//获取文件的属性$tt=stat("array.php");print_r($tt);echo "";//遍历文件夹scandFile("picture/");function scandFile($file){ $dir = scandir($file);//遍历文件夹 foreach ( 阅读全文
posted @ 2013-06-26 16:18 Medeor 阅读(230) 评论(0) 推荐(0)
摘要:函数名函数功能概述array 新建一个数组array_combine创建一个数组,用一个数组的值作为其键名,另一个数组的值作为其值array_count_values统计数组中所有的值出现的次数array_fill用给定的值填充数组array_flip交换数组中的键和值array_keys返回数组中所有的键名array_pad用值将数组填补到指定长度array_product计算数组中所有值的乘积array_rand从数组中随机取出一个或多个单元array_shift将数组开头的单元移出数组array_pop将数组最后一个单元移除数组array_unshift在数组开头插入一个或多个单元a.. 阅读全文
posted @ 2013-06-25 23:43 Medeor 阅读(336) 评论(0) 推荐(0)
摘要:一、配置httpd.conf# Virtual hosts#Include conf/extra/httpd-vhosts.conf //取消这一行的#二、配置httpd-vhosts.conf文件1.多IP模式 DocumentRoot "E:/www/htdocs" //虚拟主机文件夹 ServerName 127.0.0.1 //访问IP地址 DocumentRoot "E:/www/htdocsA" ServerName 127.0.0.2 DocumentRoot "E:/www/htdocsB" ServerName 12 阅读全文
posted @ 2013-06-24 22:33 Medeor 阅读(6646) 评论(0) 推荐(0)
摘要:ForbiddenYou don't have permission to access /a.php on this server.apache昨天调试 httpd.conf 文件:OptionsFollowSymLinksAllowOverrideNoneOrderdeny,allowdenyf... 阅读全文
posted @ 2013-06-24 22:23 Medeor 阅读(255) 评论(0) 推荐(0)