file

  • Drupal中处理文件流File System和Stream Wrapper原理

    Stream其实是一个抽象的概念,类似于传输层,位于文件系统的下层。php本身是支付StreamWrapper的,不过Drupal对其进行完善,本文我们来看看底层File System和Stream Wrapper......2016-11-25 16:17
  • PHP $_FILES详解

    文件上传表单 <form enctype="multipart/form-data" action="URL" method="post"> <input type="hidden" name="MAX_FILE_SIZE" value="1000"> <input na......2016-11-25 16:09
  • PHP5盗链函数(referfile)

    PHP5盗链函数(referfile) 作者:axgle 功能:任何以&lsquo;HTTP_REFERER&rsquo;为主要特征的防盗链技术将通通失效,顷刻间便灰飞烟灭。 <?php /** @title:P......2016-11-25 16:09
  • php file_get_contents读取远程文件并输出

    php file_get_contents读取远程文件并输出,这样做的好得就是不会在flash播放代码中显示对方网站的文件地址,下面是我自己用的一个.是读取方视频文件用的. <?php requi......2016-11-25 16:05
  • ExcelFileParser导入excel数据

    以前自己也写过一个简单的excel进行数据导入到mysql数据库,这款是一个网友发布的,觉得不错。 <?php /** * CopyRight (c) 2009, * All rights reserved. *......2016-11-25 16:03
  • PHP获取当前脚本目录 getcwd(),__file__

    关于获取getcwd,file函数是一个获取当前目录的文件信息,好了费话不说多了来看看这两个函数哦。 取得当前文件的路径今天一般用下面二个函数了。 getcwd() 函数 ge......2016-11-25 16:03
  • php 简单file_get_contents fopen教程

    php 简单file_get_contents fopen教程 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitiona...2016-11-25 16:02
  • php is_file file_exists判断文件是否存函数

    <?php mysql_connect('localhost','root','root') or die('remote server cant' connect'); mysql_select_db('www.111cn.net') or('selected not exists!'); $s......2016-11-25 16:01
  • php dirname __FILE__ 实例教程

    php dirname __FILE__ dirname(__FILE__) 就是取得当前文件所在的目录,是返回真实的文件所在路径下面来看几个实例 */ //直接__FILE__看实例 $url = __FILE__;......2016-11-25 16:00
  • php file_put_contents 生成文件

    <html> <head> <title>test</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <script type="text/javascript" src="http://ajax......2016-11-25 15:59
  • file_get_contents() 函数把整个文件读入一个字符串中

    语法 file_get_contents(path,include_path,context,start,max_length) path 必需。规定要读取的文件。 include_path 可选。如果也想在 include_pat...2016-11-25 15:57
  • php file_put_contents 函数

    php file_put_contents 函数 file_put_contents ( PHP 5中) file_put_contents -写一个字符串到一个文件 描述 国际file_put_contents (字符串$文件名,......2016-11-25 16:51
  • php file_exists 判断文件是否存在,是返回ture或1 否返回false或0...

    file_exists($filename); */ $file ='www.111cn.net.txt'; if( file_exists( $file ) ) { echo $file,'存在'; } else { echo $file,'不存...2016-11-25 15:57
  • php move_uploaded_file 中文乱码问题或上传失败问题

    php是外国人做的,在中文支持上有些地方做得不完美,就在我们文件上传时就发现了,上传中文竟然不成功, 下面我们来看看实例与解决方法吧。 */ $filepath ='upfile/'; if (......2016-11-25 15:57
  • php file_get_contents函数轻松采集ip138数据

    <?php教程 //全国,判断条件是$REQUEST_URI是否含有html if (!strpos($_SERVER["REQUEST_URI"],".html")) { $page="http://qq.ip138.com/weather/"; $html =......2016-11-25 15:57
  • php file_exists 函数与 file_exists语法

    其实于php file_exists 函数与 file_exists语法我们早就讲过了,下面我们来看看一下关于它的使用方法与实例吧 bool file_exists ( string filename ) 如果由 filen......2016-11-25 15:56
  • file_get_contents只读取网页的部分内容

    file_get_contents只读取网页的部分内容,其实这就是采集文章最简单最原始的做法了。 在php教程中 file_get_contents函数可以打开本地文件,也可能读取远程文件 用......2016-11-25 15:56
  • php curl、fopen、file_get_contents实例代码

    //php教程 curl实例 代码如下 复制代码 session_write_close(); $pageurl = "http://www.111cn.net/index.html"; curl_setopt($ch, curlopt_r...2016-11-25 15:55
  • file file_get_contents HTTP request failed

    /* 我有一个问题,要求从php教程代码的url。我需要调用一个服务,使用从我的php代码的查询字符串。如果我的浏览器中键入一个网址,它工作还算可以,但如果我使用文件获取,内容......2016-11-25 15:54
  • php文件上传与move_uploaded_file简介

    <form action="index.php教程" method="post" enctype="multipart/form-data"> 缩略图:<input type="file" name="files" /> <input type="submit" value="提交"/......2016-11-25 15:52