-
PHP经验交流 php访问access的方法
[PHP教程] 2022-03-10 16:30:41 119人阅读
php访问mysql的方法,地球人都知道,不过访问access就麻烦点,今天我们一起也来学习下吧,因为在实际应用中也会要用到。在虚拟目录下访问需要转化下数据库文件所在的路径。这里采用ADODB库作为测试。代码如下: incl...[详细]
-
php的计数器程序
[PHP教程] 2022-03-10 16:30:16 62人阅读
1)文本计数器 以下为引用的内容: ?php $countfile=/count.txt; //设置保存数据的文件 if (!file_exists($countfile)){//判断文件是否存在 exec( echo 0 $countfile); } $fp = fopen($countfile,rw); $length=files...[详细]
-
PHP中上传大体积文件时需要的设置
[PHP教程] 2022-03-10 16:30:02 198人阅读
不用说,还得找PHP配置文件php.ini的麻烦:) 打开php.ini,首先找到 ;;;;;;;;;;;;;;;; ; File Uploads ; ;;;;;;;;;;;;;;;; 区域,有影响文件上传的以下几个参数: file_uploads = on ;是否允许通过HTTP上传文件的开...[详细]
-
用PHP生成PDF文件 with FPDF
[PHP教程] 2022-03-10 16:29:45 73人阅读
What is FPDF? FPDF is a PHP class which allows to generate PDF files with pure PHP, that is to say without using the PDFlib library. The advantage is that PDFlib requires a fee for a commercial usage....[详细]
-
PHP新手总结的PHP基础知识
[PHP教程] 2022-03-10 16:29:28 189人阅读
看了些PHP的基础知识,自己在这里总结下: 1、在HTML嵌入PHP脚本有三种办法: 以下为引用的内容: <scriptlanguage=php> //嵌入方式一 echo(test); </script> <? //嵌入方式二 echo<br>test2; ?> <?php //...[详细]
-
WINDOWS服务器安装多套PHP的另类解决方案
[PHP教程] 2022-03-10 16:29:05 72人阅读
我们需要在WINDOWS服务器中安装多个不同版本的PHP环境,或采用不同的php.ini配置,例如在使用中国E商务网的IONCUBE系统对PHP程序进行加密后,要在php.ini中设置加载选项目,但这个选项和zend加密程序解释器不能同时存在...[详细]
-
PHP精确到每一秒钟的在线人数显示代码
[PHP教程] 2022-03-10 16:28:36 149人阅读
以下为引用的内容: ?php session_start(); $dat_now1=date(H i s);//取时间 $p2=explode( , $dat_now1); $dat_number1=$p2[0]*3600 $p2[1]*60 $p2[2];//取秒 if($online_time)//上次刷新时间 {$dat_h=substr($onlin...[详细]
-
PHP学习入门的一些基础知识
[PHP教程] 2022-03-10 16:27:52 123人阅读
一,PHP脚本代码标记 PHP的脚本是文件中一对特殊标记所包括的内容,如ASP是%....%,PHP可看成是?...?。 然而为了适应XML标准以将PHP嵌入到XML或XHTML中,PHP不建议使用短格式的?...?,而建议使用长格式标记?php...? ...[详细]
-
学习PHP技巧 txtSQL安装手册中文版
[PHP教程] 2022-03-07 16:32:59 174人阅读
txtsql的最大优点之一是文档很详细,可惜,我在网上找了半天也找不到中文版的文档,所以只好自己动手,利人利已吧,不过自己的E文水平自己是很清楚的,希望大家看了不会笑掉大牙才好,还希望大家多多指教。 欢迎使用...[详细]
-
在PHP中使用灵巧的体系架构
[PHP教程] 2022-03-07 16:32:13 87人阅读
很久以前我就想写这篇文章了,但是一直都没有时间。这里并不是想要告诉你怎样做,我希望它可以投石问路,和大家讨论一下如何开发一个好的、扩展性佳的web应用。 我从事开发已经有2-3年了,回望刚开始做的程序,真有...[详细]
- 这篇文章主要介绍了Laravel 5.0 发布 新版本特性详解,...[详细]
- 计算两个日期之间的时间差需要先把两个日期转换成纪元...[详细]
- 初步使用面向对象程序设计,要掌握的就是使用面向对象...[详细]
- 每个 PHP 数组内部都有一个指针,该指针指向数组的某...[详细]
- 因为 PHP 是一个 Web 编程语言,在编程过程中难免会遇...[详细]
- PHP 中提供了 return 语句来返回函数的运行结果,其语...[详细]
- final 关键字的作用如下: 使用 final 修饰的类,不能...[详细]
- 在使用 switch 语句时应该注意以下几点: 和 if 语句...[详细]
- 这篇文章主要给大家介绍了关于PHP替换Word中变量并导...[详细]
- 这篇文章主要介绍了PHP常量DIRECTORY_SEPARATOR原理及...[详细]