mssakib Posted August 5, 2011 Share Posted August 5, 2011 Hi I want to do the following thing $response = shell_exec(some codes.....); if ($response==true) Then redirect to home/index.php My idea is that i have made a script that generates images from video and i want that after generating the images will show via a image viewer script which is in another directory. Quote Link to comment Share on other sites More sharing options...
phpSensei Posted August 5, 2011 Share Posted August 5, 2011 header("location: index.php") ? Quote Link to comment Share on other sites More sharing options...
mssakib Posted August 5, 2011 Author Share Posted August 5, 2011 DO u mean like this $response = shell_exec(some codes.....); if ($response==true) { header("location: images/index.php"); } else { echo"Error"; } Quote Link to comment Share on other sites More sharing options...
WebStyles Posted August 5, 2011 Share Posted August 5, 2011 or just: if( shell_exec(some codes.....) ){ header("location: images/index.php"); }else{ echo"Error"; } Quote Link to comment Share on other sites More sharing options...
mssakib Posted August 5, 2011 Author Share Posted August 5, 2011 Thx Problem Solved Quote Link to comment Share on other sites More sharing options...
phpSensei Posted August 5, 2011 Share Posted August 5, 2011 Mark as Solved, its been hard to see whats what lately. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.