Popular PHP recipes tagged "web"http://code.activestate.com/recipes/langs/php/tags/web/2011-06-15T03:54:02-07:00ActiveState Code RecipesWeb based Query Browser (PHP) 2011-06-15T03:54:02-07:00Jonathan Fenechhttp://code.activestate.com/recipes/users/4169413/http://code.activestate.com/recipes/577753-web-based-query-browser/ <p style="color: grey"> PHP recipe 577753 by <a href="/recipes/users/4169413/">Jonathan Fenech</a> (<a href="/recipes/tags/based/">based</a>, <a href="/recipes/tags/browser/">browser</a>, <a href="/recipes/tags/php/">php</a>, <a href="/recipes/tags/query/">query</a>, <a href="/recipes/tags/web/">web</a>). </p> <p>Query browser works </p> <p>add password to this part of the code if you require a password for mysql</p> <p>Code =</p> <p>// Connect to the database $conn = mysql_connect('localhost', 'root' 'PASSWORD GOES HERE");</p> a more reliable DOCUMENT_ROOT (PHP) 2008-12-25T18:55:33-08:00Gui Rhttp://code.activestate.com/recipes/users/4166241/http://code.activestate.com/recipes/576595-a-more-reliable-document_root/ <p style="color: grey"> PHP recipe 576595 by <a href="/recipes/users/4166241/">Gui R</a> (<a href="/recipes/tags/web/">web</a>). </p> <p>$_SERVER['DOCUMENT_ROOT'] has been known to be broken on some servers. This is a bit of logic to retrieve the document root more reliably.</p>