hi,
can i intercept this error?
PHP Fatal error: Allowed memory size of 8388608 bytes
exhausted (tried to allocate 12 bytes)
echo "1-".memory_get_usage() . "<br>";
$Search = ldap_search($Conn,$SYS["LDAP"]["ResellerPath"],$FilterOK,$Attributes);
$Get = ldap_get_entries($Conn,$Search);
echo "2-".memory_get_usage() . "<br>";
1=80376 memory
2=9775912 memory
if i write this, i resolve the problem...
ini_set("memory_limit","16M");
but i can do this?
echo "1-".memory_get_usage() . "<br>";
$Search = ldap_search($Conn,$SYS["LDAP"]["ResellerPath"],$FilterOK,$Attributes);
$Get = ldap_get_entries($Conn,$Search);
/* this */
if(memory_get_usage()>7000000){ini_set("memory_limit","16M");}
/* end this */
echo "2-".memory_get_usage() . "<br>";