By Sam on December 2, 2011
Another instructional blog post as I try to figure out something. Configuring a website with Rackspace.com is much different than setting one up with a shared hosting service such as Dreamhost or GoDaddy. I could write more about this, but it’s not really productive. Anyways, here are the steps I went through: 1. Buy a domain. I [...]
Posted in Blog | Tagged databases, Debian, dependencies, Linux, php, Rackspace |
By Sam on June 22, 2011
Impossible? No! Just add some AJAX to your <head> section: <script type=”text/javascript”> function request(query){ if (window.XMLHttpRequest){xmlhttp=new XMLHttpRequest();} else{xmlhttp=new ActiveXObject(“Microsoft.XMLHTTP”);} xmlhttp.open(“GET”,”query.php?q=”+query,true); xmlhttp.send(); } </script> and create the new page query.php with the following content, replacing the default values where necessary: <?php $dbhost = ‘#REPLACE THIS#’; $dbuser = ‘#REPLACE THIS#’; $dbpass = ‘#REPLACE THIS#’; $conn = mysql_connect($dbhost, [...]
Posted in Blog | Tagged AJAX, don't try this unsupervised, javascript, php, sql |