php打开ppt的程序下载,PHP应用-文件ppt

文件属性相关函数

®basename(string path [,string suffix])

®pathinfo()

®realpath()

®filesize()

®filetype()

®fileatime()

®filectime()

filemtime()

®fileperms()

®fileowner()

®chgrp( )

®filegroup( )

®chmod( )

®chown( )

®fileowner( )

copy()

®unlink()

®rename()

®file_exists()

®is_dir()

®is_file()

在PHP5中,实现了一些数据访问标准和接

口DirectoryIterator

®current():返回当前列表(list)中的元素值。

®next():用于在一个列表中向下移动一个位置。

®valid():检测在当前列表中是否还有下一个元

素,如果有,返回true,否则返回false。

®rewind():可以访问指定特征的元素列表,在

开始操作iterator时,会将指针设置在顶部

文件操作相关函数

®文件打开

n $文件指针 = fopen(目的文件名称, 文件打开模式参数)

n 模式:r、r+、w、w+、a、a+、x、x+

®文件关闭

n fclose()

文件读取

n fread()

n file() --不需要打开文件

n readfile() --不需要打开文件

n file_get_contents()  --不需要打开文件

®文件写入

n fwrite()

n file_put_contents() --不需要打开文件

文件指针

n feof(文件指针)

n ftell()

n flock()

LOCK_SH表示要取得共享锁定(读取程序)。

LOCK_EX表示要取得独占锁定(写入程序)。

LOCK_UN表示要释放锁定(无论共享或独占)。

LOCK_NB表示如果你不希望 flock() 在锁定时堵塞,则给控制

参数再加上这个参数。

n fseek() / rewind()

解析ini文件 n parse_ini_file()

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
操作PPT文档的PHP库,可以演示文档、添加幻灯片,支持图像、媒体的加入,作者的信息等等,并且完美兼容MS Office。本库配有十几个实际例子可以作为开发参考,而且配有对应的中文文档,使用起来相当方便,不需要在去啃英文单词。<?php date_default_timezone_set('UTC'); if (!defined('PHPPRESENTATION_TESTS_BASE_DIR')) {     define('PHPPRESENTATION_TESTS_BASE_DIR', realpath(__DIR__)); } $vendor = realpath(__DIR__ . '/../vendor'); if (file_exists($vendor . "/autoload.php")) {     require $vendor . "/autoload.php"; } else {     $vendor = realpath(__DIR__ . '/../../../');     if (file_exists($vendor . "/autoload.php")) {         require $vendor . "/autoload.php";     } else {         throw new Exception("Unable to load dependencies");     } } spl_autoload_register(function ($class) {     $class = ltrim($class, '\\');     $prefix = 'PhpOffice\\PhpPresentation\\Tests';     if (strpos($class, $prefix) === 0) {         $class = str_replace('\\', DIRECTORY_SEPARATOR, $class);         $class = join(DIRECTORY_SEPARATOR, array('PhpPresentation', 'Tests', '_includes')) .         substr($class, strlen($prefix));         $file = __DIR__ . DIRECTORY_SEPARATOR . $class . '.php';         if (file_exists($file)) {             require_once $file;         }     } }); require_once __DIR__ . "/../src/PhpPresentation/Autoloader.php"; \PhpOffice\PhpPresentation\Autoloader::register();
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值