php mysql update variable

Goal: Update wordpress post with PHP cli < ?php $con = mysql_connect("localhost","root","[redacted]"); if (!$con) { echo "Unable to connect to DB: " . mysql_error(); exit; } if (!mysql_select_db("wordpress")) { echo "Unable to select mydbname: " . mysql_error(); exit; } $myfileText = mysql_real_escape_string(file_get_contents('./code_for_wordpress.html',true)); $sql = "UPDATE `[your_instance_prefix]_posts` SET `post_content` = '$myfileText' WHERE `ID` like '1397';"; $result... » read more

disable enable wordpress plugin command line

Goal: Disable and Enabled WordPress Plugins via the Command Line Today i’m going to show you how to disable and enable wordpress plugins via the command line Installation Download these two files to the root of your wordpress installation (same folder where wp-config is) # wget "http://www.packetmischief.ca/files/wp/wp_enable_plugins.php" # wget "http://www.packetmischief.ca/files/wp/wp_disable_plugins.php" Usage Run wp_disable_plugins.php with no... » read more

wordpress plugin pre syntax

A great plugin to use to get syntax specific pre statements is “Prettify GC Syntax Highlighter” Found here You can also change prettyprint to: prettyprint lang-YOURLANG and Replace YOURLANG with one of the following: aea agc apollo bsh c cc cl cpp cs csh css-str cv cxx cyc default-markup el fs go hs htm html... » read more

working wordpress google sitemap plugin

working wordpress google sitemap plugin   I looked forever and finally found a plugin that correctly generates a google sitemap.  Christ!  It took forever! Simple Google Sitemap XML Version 1.4.1 | By iTx Technologies | Visit plugin site