I'm working on a web vulnerability scanner using PHP where I'm creating target_url by appending directory traversal patterns on url. I'm fetching these patterns from a file using fopen(). The problem is that, "before completing the execution the script dies as my patterns count more than 1000". Is there any way to prevent premature death of script.
I'd thought of using pcntl_fork() but Currently, this module will not function on non-Unix platforms (Windows). set_time_limit(0) ini_set(Memory_limit) both not working.
Note: I've to use Smarty as my template engine for displaying output. Any suggestions or help will be appreciated. Thanks.