Reputation: 4136
I am overriding php.ini variables in my code. (ini_set("memory_limit", -1);)
How can i make sure it is set. Am using windows machine.
Is there any way i can read variable by variable with some GLOBAL array or something ?
Once i set variable, i want to read it in the next line for testing.
Upvotes: 1
Views: 489
Reputation: 9415
Adding an live example
<?php
echo ini_get("memory_limit");
?>
Output:
128M (based on the value set in your php.ini).
Please see the link below for working example:
Upvotes: 0