php的memory_limit最大值是多少?

解决方案 »

  1.   

    php.iniThis sets the maximum amount of memory in bytes that a script is allowed to allocate. This helps prevent poorly written scripts for eating up all available memory on a server. Note that to have no memory limit, set this directive to -1.设置成-1没有限制。
      

  2.   

    memory_limit = 128M
    默认是128M
    最大值可以根据你服务器的配置内在的大小进行设置