Home > Backend Development > PHP Tutorial > TP框架下的php.ini在哪啊

TP框架下的php.ini在哪啊

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-06 20:11:37
Original
1404 people have browsed it

TP框架下写一段上传附加的程序,提示:

string(78) "上传的文件超过了 php.ini 中 upload_max_filesize 选项限制的值!"

怎么找到php.ini啊

回复内容:

TP框架下写一段上传附加的程序,提示:

string(78) "上传的文件超过了 php.ini 中 upload_max_filesize 选项限制的值!"

怎么找到php.ini啊

php.ini是服务器上的php配置 不在TP里
可以通过 echo phpinfo(); 看到

可以尝试用php函数ini_set()修过php默认设置

php.ini是你自己安装的php的配置文件,一般都是在你安装的php目录下,跟ThinkPHP没什么关系。
至于题主遇到的错误,可以直接修改php.ini文件,也可以按楼上说的使用ini_set临时修改设置。

这个需要找到php配置目录下的php.ini修改对应项

那是php的文件啊

linux && mac
一般在/etc/php.ini

win
一般在你的php安装目录下

Related labels:
php
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template