Saturday, July 24, 2010
PHP Scripting in Command line
1. How can I execute a PHP script using command line?
Ans : “php filename” or “php -f filename” will run a php file in command line.
Ans : “php filename” or “php -f filename” will run a php file in command line.
Word Wrap in php
$text = "A very long woooooooooooord.";$newtext = wordwrap($text, 8, "\n", true);
echo "$newtext\n";?> Wednesday, June 30, 2010
Subscribe to:
Posts (Atom)