Monthly Archives: February 2011
At work, due to a Flash Media Server running on one of the IP addresses, when we restart Apache using WHM, everything gets disconnected, and this causes Apache to fail. Here are instructions for what to do if someone restarts Apache: Open Putty and login to the server. Insert this line to access the FMS… Read more »
Use Pageant for loading the key, then in Putty make sure you add the username to the Connection -> Data -> auto-login username. Once you’ve done that, make sure that Connection -> SSH -> Auth has “attempt authentication using Pageant ticked, and “attempt keyboard-interactive auth. Here’s a good article.
The recommended browser for this purpose is Firefox, because it can be configured to resolve DNS names through the SOCKS proxy, so the names of the websites you’re browsing don’t leak out through DNS queries. You will need an account at an SSH server which allows you to use port forwarding. Configure Tunnelier to connect… Read more »
Thanks to Jaygilford.com Also note, you can use vsprintf to supply an array as an argument, and also take a look at the WordPress function $wpdb->prepare():
I need a script to extract the database details from the wp-config.php file so I could keep the logon details in one location when I was coding something outside the WP framework. I came up with a class that does this, connects to mysql and selects the database. There are three connection options: PDO, mySQLi… Read more »