CurlyMo
-
Posts
1 -
Joined
-
Last visited
Never
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.
Memory issues
in PHP Coding Help
Posted
I have a bit of a problem here. I'm fairly new in programming in c but i can write some simple programs.
What i wrote is a program that simply encodes my php scripts en decodes them again with the right password. This worked fine when i ran the code just as a c executeable.
Now i made a php function of this c code. The only problem is, that when i keep executing my php script the memory keeps remembering my previous values:
The code i run throught zend_eval_string (after it's decoded) is:
?><?PHP
echo 'good';
?>
the output of this script is for the first time:
good
the second time:
good?>good
the third time:
good?>good?>good
and so on.
So the question i have, how can i succesfully fill the memory for just ones and free it after executing my script.
The important pieces of code: