PHP Example:
<?php error_log( print_r( $thing, true ) ); ?>
CLI Example:
tail -f /Applications/MAMP/logs/php_error.log
<?php | |
/** | |
* Add post type filter support for search. | |
* | |
* @param array $query | |
* | |
* @since 1.0.0 | |
*/ | |
public function filter_post_type( $query ) { |
cmd /c mklink /J .\app\public\ .\code\wordpress\ |
sshkey () { | |
local file="$HOME/.ssh/id_rsa.pub" | |
if [ -n "$file" ] ; then # If the file exists. | |
cat "$file" | |
if pbcopy < "$file" ; then # If the text successfully copied to the clipboard. | |
tput setaf 2 # Set text color to green. | |
echo "SSH key copied to clipboard." | |
else | |
tput setaf 1 # Set text color to red. | |
echo "SSH key failed to copy to clipboard but you can manually copy it above." |
PHP Example:
<?php error_log( print_r( $thing, true ) ); ?>
CLI Example:
tail -f /Applications/MAMP/logs/php_error.log