Hi,
I have simple PHP script that crash the server. The script is
This works fine on my server with PHP 4.4.4PHP Code:<?php
$cmd = "php -v";
exec("$cmd 2>&1", $output);
print_r($output);
But on server with php 5, it just get into some loop (too many process in short time) and crash the server. This is part of a script so many clients use the script and crash my server so i checked the script and found these lines create the problem. If i use full path to php, it will be fine.
My php version is PHP 5.2.5 running in suPHP mode.
Anyone know why this happening ?
Thanks,
Yujin



LinkBack URL
About LinkBacks

Reply With Quote






