560 Part IV: Using PHP (Web hosting company) for Sysadmin Tasks

560 Part IV: Using PHP for Sysadmin Tasks Working with the Command-Line Interpreter The command-line version of PHP is installed when you enable CGI support during the PHP installation process. The command-line PHP interpreter can be found by running the following: which php This will show the full path of the PHP command-line interpreter. Sample output appears as follows: /usr/bin/php In most cases, you should find the PHP binary in the /usr/bin directory, which is typically in your path, so you can run the following: php -h The 4.3.x version of the PHP command-line interpreter will display output similar to following: Usage: php [options] [-f] [args…] php [options] -r [args...] php [options] [-- args...] -s Display color syntax highlighted source. -w Display source with stripped comments and whitespace. -f Parse . -v Version number -c
| Look for php.ini file in this directory -a Run interactively -d foo[=bar] Define INI entry foo with value bar -e Generate extended information for debugger/profiler -z Load Zend extension . -l Syntax check only (lint) -m Show compiled in modules -i PHP information -r Run PHP without using script tags -h This help args… Arguments passed to script. Use — args when first argument starts with - or script is read from stdin

WordPress database error: [Table 'armadillowebhosting_com_-_jsp.wp_comments' doesn't exist]
SELECT * FROM wp_comments WHERE comment_post_ID = '616' AND comment_approved = '1' ORDER BY comment_date

Leave a Reply