PHP创建没有fopen的文件 [英] PHP create a file without fopen

查看:137
本文介绍了PHP创建没有fopen的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

禁用fopen时,是否可以使用PHP创建文件?启用了其他访问文件系统的功能,例如file_get_contents().

Is there a way to create a file with PHP when fopen is disabled? Other functions to access the file system are enabled such as file_get_contents().

推荐答案

查找file_put_contents()...尽管如果禁用了fopen,也可能会禁用它.从权限的角度来看,获取和放置文件是两件事.

look up file_put_contents()... though if fopen has been disabled it may also be disabled. Getting and putting files are two different things from a permissions perspective.

如果fopen已被禁用,我无法想象exec()也没有被禁用.

And if fopen has been disabled, I can't imagine that exec() hasn't also been disabled.

这篇关于PHP创建没有fopen的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆