当前位置:网站首页>php.ini配置
php.ini配置
2022-04-22 03:15:00 【SUPER_童】
1、首先找到php.ini
1、新建一个.php文件,输入以下代码
<?php
phpinfo();
?>
保存,并且访问它,得到如下,标记红色框框的为当前php配置文件php.ini的路径

2、如果window系统的phpstudy软件的有快速方法,如图:

点击【其他选项菜单】-->【打开配置文件】-->【php.ini】就可以打开
2、配置参数
file_uploads = ON : 确定服务器上的PHP脚本是否可以接受HTTP文件上传
memory_limit = 8M :设置脚本可以分配的最大内存量,防止失控的脚本独占服务器内存
upload_max_filesize = 2M :限制PHP处理上传文件的最大值,此值必须小于post_max_size值
post_max_size = 8M : 限制通过POST方法可以接受的信息最大量
max_execution_time = 600 ;每个PHP页面运行的最大时间值(秒)默认30秒
max_input_time = 600 ;每个PHP页面接收数据所需的最大时间,默认60秒
注意:max_execution_time一般不建议调整,在PHP程序中可以使用:set_time_limit(0) 进行临时调整,0表示没有时间限制
版权声明
本文为[SUPER_童]所创,转载请带上原文链接,感谢
https://blog.csdn.net/weixin_40354683/article/details/89517032
边栏推荐
- Exercise 23, pilot brothers [binary enumeration / bit operation]
- Go language -----30-----token mechanism, WeChat official account signature verification method, XML parsing, CDATA parsing, exchange protocol, receive message protocol, passive reply message protocol,
- Jupyter code cannot be run
- Type of water tunnel
- Wordpress blog Building Guide
- An article gives you a preliminary understanding of the basic knowledge of C language operators
- Workplace etiquette How to use foreign enterprise email
- 【Laravel系列4.7】连接redis以及缓存应用
- ESP32_GPIO输入、输出和中断
- 824. Goat Latin (string segmentation + string substitution)
猜你喜欢

Evolution and construction of data warehouse architecture

2022年当选IEEE Fellow的人员列表

500 error, unable to forward after submitting the response

Ros2 learning notes (V) -- Summary of common instructions for ros2 command line operation (I)

Flutter04-Widget初体验

嘉戎技術深交所上市破發:公司市值41億 應收賬款2.8億

Can Chrome browser + postman do interface testing like this?

Go language practice ------ 31 ------ live broadcast architecture and audio and video call of streaming media architecture design (common streaming media protocol interpretation)

Writing method of JSS in material UI (notes)

Finally see the true face of Alibaba, meituan and JD
随机推荐
Record your first web automation test case
go语言实战-----31-----流媒体架构设计之直播架构、音视频通话(常见 流媒体协议 解释)
moudle中的activity跳转到主项目的activity
Golang dependency injection wire. When executing the wire command, an error is reported: bash: Wire: command not found
824. Goat Latin (string segmentation + string substitution)
OneFlow 如何做静态图的算子对齐任务
Ros2 learning notes (V) -- Summary of common instructions for ros2 command line operation (I)
ESP32_GPIO输入、输出和中断
Competition conference of the most fully quantified hardware facilities in the whole network
Technology sharing | selenium ide use case recording
Leetcode dictionary order
Record of problems in socket multicast
Saas.扩展字段 自定义字段
Source code encryption Product Guide
第9章 内核同步介绍
The activity in the moudle jumps to the activity of the main project
嘉戎技術深交所上市破發:公司市值41億 應收賬款2.8億
An article gives you a preliminary understanding of the basic knowledge of C language operators
全网最全量化硬件设施比拼大会
Go language practice ------ 31 ------ live broadcast architecture and audio and video call of streaming media architecture design (common streaming media protocol interpretation)