php set memory limit in script code example Example: memory limit php ini_set ini_set("memory_limit","256M");