Having trouble with running php in a shell script.
The command im trying to use is
echo '<?php echo "test"; ?>' | php -q
This simply returns nothing from the command line, ive tried path to php aswell and no joy.
#!/usr/local/bin/php -q
<?php echo "test"; ?>'
Will work, so it looks like the cli is working but i cant execute it from within a shell script.
php -v shows
PHP 5.2.5 (cli) (built: Nov 22 2007 02:14:24)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
with the ionCube PHP Loader v3.1.32, Copyright (c) 2002-2007, by ionCube Ltd., and
with Zend Extension Manager v1.2.0, Copyright (c) 2003-2007, by Zend Technologies
with Zend Optimizer v3.3.0, Copyright (c) 1998-2007, by Zend Technologies
was built with whm really cant work out how to get this working, anyone got any ideas?
Thx in advance