This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'save_post', 'tivwp_save_post', 10, 3 ); | |
/** | |
* Save the selected template info for the particular post | |
* @param int $post_id | |
* @param \WP_Post $post | |
* @param bool $update | |
* @wp-hook save_post |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Path to the PHP executable | |
php="/cygdrive/c/PHP/php.exe" | |
for ((n=1; n <= $#; n++)); do | |
if [ -e "${!n}" ]; then | |
# Converts Unix style paths to Windows equivalents | |
path="$(cygpath --mixed ${!n} | xargs)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* OOP vs. Procedural PHP Benchmark | |
* @author tivnet | |
* @version 13.11.27 | |
* Disclaimer: This is too simple, and does not prove anything. Just forget it. :-) | |
* My results on PHP 5.4 / Windows 8.1 / Apache 2.4 (all 64 bits, but who cares) : | |
* first 3 tests: same 3.1 to 3.4; the last test: 5.0 to 5.1 | |
*/ | |
header( 'Content-type: text/plain' ); |
NewerOlder