Latest recipes by Jonathan Fenech http://code.activestate.com/recipes/users/4169413/new/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> Basic Text Editor (Tcl) 2011-03-21T23:10:10-07:00Jonathan Fenechhttp://code.activestate.com/recipes/users/4169413/http://code.activestate.com/recipes/577617-basic-text-editor/ <p style="color: grey"> Tcl recipe 577617 by <a href="/recipes/users/4169413/">Jonathan Fenech</a> (<a href="/recipes/tags/basic/">basic</a>, <a href="/recipes/tags/editor/">editor</a>, <a href="/recipes/tags/text/">text</a>). </p> <p>Text editor with copy,cut and paste functions.</p> Basic Linux Menu (Bash) 2010-10-23T05:40:18-07:00Jonathan Fenechhttp://code.activestate.com/recipes/users/4169413/http://code.activestate.com/recipes/577437-basic-linux-menu/ <p style="color: grey"> Bash recipe 577437 by <a href="/recipes/users/4169413/">Jonathan Fenech</a> (<a href="/recipes/tags/bash/">bash</a>, <a href="/recipes/tags/basic/">basic</a>, <a href="/recipes/tags/linux/">linux</a>, <a href="/recipes/tags/menu/">menu</a>). </p> <p>A basic Linux menu which can do the following: </p> <ul> <li>Display Files and Directory's</li> <li>Remove Files Displayed</li> <li>Copy Files Displayed</li> <li>Make Directory</li> </ul> Validating Emails (PHP) 2011-06-13T15:10:47-07:00Jonathan Fenechhttp://code.activestate.com/recipes/users/4169413/http://code.activestate.com/recipes/577198-validating-emails/ <p style="color: grey"> PHP recipe 577198 by <a href="/recipes/users/4169413/">Jonathan Fenech</a> (<a href="/recipes/tags/emails/">emails</a>, <a href="/recipes/tags/validating/">validating</a>). Revision 2. </p> <p>a small script that can be used for Validating Emails on </p> <ul> <li>Login pages</li> <li>forums </li> </ul> <p>changed to preg_match from eregi function. now scripted validates everything typed in input boxes </p> <p>Old Code = </p> <pre class="prettyprint"><code> foreach($Email as $Emails) { // checks Emails - .net , .com , .au &amp; etc if(eregi("[a-zA-Z0-9]@+[a-z].{1,}com$",trim($Emails))|| eregi( "[a-zA-Z0-9]@+[a-z].{1,}net$",trim($Emails))) </code></pre> <p>New Code = </p> <pre class="prettyprint"><code> foreach($Email as $Emails) { // checks Emails - .net , .com , .au &amp; etc if(!preg_match("/^[_\.0-9a-zA-Z-]+@([0-9a-zA-Z] [0-9a-zA-Z-]+\.)+[a-zA-Z]{2,6}$/i", $Emails)) </code></pre> <p>i changed from eregi function to preg_match function because eregi was taking out of PHP version 5.3.0 and 5.3.5.</p> PHP Login page (PHP) 2010-04-17T13:31:03-07:00Jonathan Fenechhttp://code.activestate.com/recipes/users/4169413/http://code.activestate.com/recipes/576680-php-login-page/ <p style="color: grey"> PHP recipe 576680 by <a href="/recipes/users/4169413/">Jonathan Fenech</a> (<a href="/recipes/tags/login/">login</a>, <a href="/recipes/tags/page/">page</a>). Revision 2. </p> <p>this is a small php login script.</p> PHP - Background Colour Changer (PHP) 2009-03-05T05:22:31-08:00Jonathan Fenechhttp://code.activestate.com/recipes/users/4169413/http://code.activestate.com/recipes/576679-php-background-colour-changer/ <p style="color: grey"> PHP recipe 576679 by <a href="/recipes/users/4169413/">Jonathan Fenech</a> (<a href="/recipes/tags/background/">background</a>, <a href="/recipes/tags/changer/">changer</a>, <a href="/recipes/tags/colour/">colour</a>). Revision 2. </p> <p>this is a script that changes the colour of the background to the day of the week, the code uses if and elseif...</p>