iyer2286 Posted February 1, 2011 Share Posted February 1, 2011 Hi.. I have a php file where i have only one line which says header('Location: index.php'); How do i run this php file in the terminal on fedora 14? Thanks, Rohit Quote Link to comment https://forums.phpfreaks.com/topic/226323-php-command-line/ Share on other sites More sharing options...
eo92866 Posted February 1, 2011 Share Posted February 1, 2011 quick google search. http://php.net/manual/en/features.commandline.php Quote Link to comment https://forums.phpfreaks.com/topic/226323-php-command-line/#findComment-1168533 Share on other sites More sharing options...
AbraCadaver Posted February 1, 2011 Share Posted February 1, 2011 php filename.php But it won't do anything because that issues a HTTP header which for the most part is only understood by a browser not a shell terminal. Quote Link to comment https://forums.phpfreaks.com/topic/226323-php-command-line/#findComment-1168541 Share on other sites More sharing options...
Maq Posted February 1, 2011 Share Posted February 1, 2011 May I ask what exactly you're trying to do? Quote Link to comment https://forums.phpfreaks.com/topic/226323-php-command-line/#findComment-1168564 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.