note 71154 modified in features.commandline by sobak

From: Date: Thu, 01 Dec 2016 06:58:03 +0000
Subject: note 71154 modified in features.commandline by sobak
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-207822@lists.php.net to get a copy of this message
If your php script doesn't run with shebang (#!/usr/bin/php), and it issues the beautifull and informative error message: "Command not found." just dos2unix yourscript.php et voila. If you still get the "Command not found." Just try to run it as ./myscript.php , with the "./" if it works - it means your current directory is not in the executable search path. If your php script doesn't run with shebang (#/usr/bin/php), and it issues the beautifull and informative message: "Invalid null command." it's probably because the "!" is missing in the the shebang line (like what's above) or something else in that area. \Alon --was-- An addition to my previous post (you can replace it) If your php script doesn't run with shebang (#!/usr/bin/php), and it issues the beautifull and informative error message: "Command not found." just dos2unix yourscript.php et voila. If you still get the "Command not found." Just try to run it as ./myscript.php , with the "./" if it works - it means your current directory is not in the executable search path. If your php script doesn't run with shebang (#/usr/bin/php), and it issues the beautifull and informative message: "Invalid null command." it's probably because the "!" is missing in the the shebang line (like what's above) or something else in that area. \Alon http://php.net/manual/en/features.commandline.php

« previous php.notes (#207822) next »