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. Link to comment https://forums.phpfreaks.com/topic/243981-redirect-after-a-function/ Share on other sites More sharing options...
phpSensei Posted August 5, 2011 Share Posted August 5, 2011 header("location: index.php") ? Link to comment https://forums.phpfreaks.com/topic/243981-redirect-after-a-function/#findComment-1252866 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"; } Link to comment https://forums.phpfreaks.com/topic/243981-redirect-after-a-function/#findComment-1252874 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"; } Link to comment https://forums.phpfreaks.com/topic/243981-redirect-after-a-function/#findComment-1252875 Share on other sites More sharing options...
mssakib Posted August 5, 2011 Author Share Posted August 5, 2011 Thx Problem Solved Link to comment https://forums.phpfreaks.com/topic/243981-redirect-after-a-function/#findComment-1252882 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. Link to comment https://forums.phpfreaks.com/topic/243981-redirect-after-a-function/#findComment-1252883 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.