I wrote a PHP script utilizing PEAR, and one if its modules specific for exporting to an Excel file. Everything PEAR and module related works flawlessly and is set up correctly.
The script itself is approximately 7-8000 lines long.
Basically my issue is this: it seems that as soon as I get to some magic amount of code in my script, the browser stops executing the script as it is supposed to, and rather, attempts to download the .php file instead.
I've realized that it doesn't matter what modules of my script that I comment out. I can comment out the first and third module, the third and fourth module, the tenth module, etc, it seems that once I pass some arbitary amount of code, the script won't run anymore.
I've already tried increasing memory_limit in the php.ini file from 8M to 16M and 24M with no visible difference. I've tried using ini_set("memory_limit", "16M"); at the beginning of my script, and this also seems to result in no visible difference.
Does anyone have any ideas as to what my problem might be? Anything anyone can suggest is greatly appreciated. Thanks in advance.
Josh Bart
MCP, A+, Network+
The script itself is approximately 7-8000 lines long.
Basically my issue is this: it seems that as soon as I get to some magic amount of code in my script, the browser stops executing the script as it is supposed to, and rather, attempts to download the .php file instead.
I've realized that it doesn't matter what modules of my script that I comment out. I can comment out the first and third module, the third and fourth module, the tenth module, etc, it seems that once I pass some arbitary amount of code, the script won't run anymore.
I've already tried increasing memory_limit in the php.ini file from 8M to 16M and 24M with no visible difference. I've tried using ini_set("memory_limit", "16M"); at the beginning of my script, and this also seems to result in no visible difference.
Does anyone have any ideas as to what my problem might be? Anything anyone can suggest is greatly appreciated. Thanks in advance.
Josh Bart
MCP, A+, Network+