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 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 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. 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? Link to comment https://forums.phpfreaks.com/topic/226323-php-command-line/#findComment-1168564 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.