Quality Scripts are available in all languages Like PHP, JavaScript,Ajax,ASP.NET etc..
| Home | My Account | Directories |
Ebook - Web 2.0 and Social Networking for the Enterprise
Published on 2009-10-21 06:03:00
Download
URL To PDF -PHP
Published on 2009-10-02 03:00:00
function fnURL2PDF($varURL, $varFileName = "pdf.pdf", $varSavePath = "") { $varSocket = fsockopen("www.easysw.com", 80, $errno, $errstr, 1000); if (!$varSocket) die("$errstr ($errno)n"); fwrite($varSocket, "GET /htmldoc/pdf-o-matic.php?URL=" . $varURL . "&FORMAT=.pdf HTTP/1.0rn"); fwrite($varSocket, "Host: www.easysw.comrn"); fwrite($varSocket, "Referer: http://www.easysw.com/htmldoc/
Random Password Generator - PHP
Published on 2009-10-02 03:00:00
function fnRandomPasswordGenerator($length = 6) { $pass = ''; $new = ''; // all the chars we want to use $all = explode(" ", "a b c d e f g h i j k l m n o p q r s t u v w x y z " ."A B C D E F G H I J K L M N O P Q R S T U V W X Y Z " ."0 1 2 3 4 5 6 7 8 9"); for($i=0; $i < $length; $i++) { srand((double)microtime()*1000000); $pass .= $all[rand(0,61)]; $arr[] = $all[rand(
Validate Email -PHP
Published on 2009-10-02 02:59:00
function fnValidateEmail($varEmail) { if(eregi("^[_a-z0-9-]+(.[_a-z0-9-]+)*@[a-z0-9-]+(.[a-z0-9-]+)*(.[a-z]{2,3})$", $varEmail)) return(true); else return(false); }Disclaimer: Any code or advice given is for instructional purposes only. We will not be responsible for any loss or damage caused by using this script
Read From File - PHP
Published on 2009-10-02 02:58:00
function fnReadFromFile($sFileName) { $sReturn = ''; $fHandle = fopen($sFileName, "r"); while (!feof($fHandle)) $sReturn .= fread($fHandle, 4096); fclose($fHandle); return($sReturn); } Disclaimer: Any code or advice given is for instructional purposes only. We will not be responsible for any loss or damage caused by using this script
Common Validations - Javascript
Published on 2009-10-02 02:53:00
//function CheckRadio_2() { if(document.getElementById("checkbox_email_backup").checked) { successmail = CheckEmail(); if(successmail) { if(document.getElementById("mail_hosts").value == "") { alert("Invalid Mail Server"); document.getElementById("mail_hosts").focus(); return false; } else return successmail; } else return successmail; } if(
Validation (Select ,selectedCount,checkpassword) - Javascript
Published on 2009-10-02 02:42:00
//function setSelectOptions(the_form, the_select, do_check){ var selectObject = document.forms[the_form].elements[the_select]; var selectCount = selectObject.length; for (var i = 0; i < selectCount; i++) { selectObject.options[i].selected = do_check; } // end for return true;}function selectedCount(the_form, the_select){ var count = 0; var selectObject = document.forms[the_form
fopen — Opens file or URL - PHP
Published on 2009-05-22 23:22:00
<?php$handle = fopen("/home/rasmus/file.txt", "r");$handle = fopen("/home/rasmus/file.gif", "wb");$handle = fopen("http://www.example.com/", "r");$handle = fopen("ftp://user:password@example.com/somefile.txt", "w");?>Disclaimer: Any code or advice given is for instructional purposes only. We will not be responsible for any loss or damage caused by using this script.
Curl - PHP5
Published on 2009-05-22 23:20:00
<?php class mycurl { protected $_useragent = 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1'; protected $_url; protected $_followlocation; protected $_timeout; protected $_maxRedirects; protected $_cookieFileLocation = './cookie.txt'; protected $_post; protected $_postFields; protected $_referer ="http://www.google.com"; protected $_session;
US States Listing - PHP
Published on 2009-05-13 00:55:00
function fnUSStatesOptionsList($varSelected = "al") { $varStatesList = array( "--" => " ", "al" => "Alabama", "ak" => "Alaska", "ar" => "Arkansas", "az" => "Arizona", "ca" => "California", "co" => "Colorado", "ct" => "Connecticut", "de" => "Delaware", "fl" =>