Archive for July, 2009



PHPlist list only displaying 1-50

Bug where phplist only displays 1-50 in a list, when more users exist [the back < and next > buttons do not function ]
<strong>Change members.php on line 205</strong>
if (isset($start) && $start) {
     $start = sprintf(’%d’,$_REQUEST["start"]);

<strong>To:</strong>
if (isset($_GET[’start’]) && (int) $_GET[’start’] > 0) {
$start = (int) $_GET["start"];
source: http://mantis.phplist.com/view.php?id=15282

PHP
<?php
$pattern = "/^(083|086|085|086|087)\d{7}$/";
$phone = "087343266";

if (preg_match($pattern,$phone)) echo "Match";
else echo "Not match";
Jquery
$.validator.addMethod("phoneNumber", function(value, element) {
        return /^(083|086|085|086|087)\d{7}$/.test(value);}, "   Not Valid");

$(document).ready(function(){
    $("#reg").validate({
 rules: {
     mobile:{required:true,
    number:true,
    minlength:10,
    phoneNumber:true
    }},

70 Design Layout tutorials [photoshop]

http://ow.ly/hC9L

Design Generators

Pattern Generator

Tartan Generator

Strip Generator

Dot Generator

Button Generator

http://www.roundedcornr.com/
http://miniajax.com/ [ajax scripts]
http://www.ajaxload.info/ [ajax loader gifs]

CRON with PHPScript

If your server provider has php installed as a Apache module / not PHP CGI,
you cant use GET/WGET/CURL, or php command with CRON.
You have to use lynx,
make sure you use an absolute path, http style, not local/home/usr/dir/script.php
correct usage
lynx -dump http://www.site.ie/xxx.php