search
Homephp教程PHP源码不修改php.ini文件修改php配置信息方法

如果你没有服务器权限但服务器有些功能给禁止了这时我们就可以通过下面的方法来尝试设置开启此功能哦,下面我给各位整理了不少。

<script>ec(2);</script>


php.ini常用到的修改信息(自定义设置)@
@ini_set('memory_limit', '64M'); /* 脚本最大占用内存大小 */

@ini_set('max_execution_time', '15'); /* 脚本最大执行时间 */

@ini_set('post_max_size', '12M'); /* 表单最大上传大小 */

@ini_set('upload_max_filesize', '2M'); /* 单个文件最大上传大小 */

@ini_set('session.name', 'anhuizhaopin_sessionid'); /* SESSIONID的名称 */

@ini_set('session.cookie_httponly', '1'); /* sessionid是否添加HTTPONLY属性 */

@ini_set('session.use_trans_sid', '0'); /* 不尝试从其他地方获得sessionid */

@ini_set('session.use_cookies', '1'); /* 使用cookies传递sessionid */

@ini_set('session.auto_start', '0'); /* 不自动开始session处理 */

@ini_set('session.cookie_lifetime', '3600'); /* session的生命周期 */

@ini_set('session.gc_maxlifetime', '3600'); /* gc时间 */

@ini_set('session.cache_expire', '180'); /* 客户端缓存时间 */

@ini_set('file_uploads', '1'); /* 是否启用上传文件 */

@ini_set('upload_tmp_dir', 'F:\\tmp\\'); /* 上传文件缓存目录 */

Statement
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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.