Category Wordpress

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…

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…