Category php

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…

nginx php centos6 howto

Remove previous php installation # yum remove php-cli php-common Add the EPEL and REMI repos: wget wget sudo rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm Install nginx prerequisites # yum install perl pcre-devel gperftools-devel geoip geoip-devel Download nginx # wget “”…