Sunday, July 3, 2016

Pre requisites to learning PHP and MySQL

Pre-requisites Before you continue you should have a basic understanding of the following: HTML/XHTML JavaScript What is PHP? PHP stands for PHP: Hypertext Preprocessor PHP is a server-side scripting language, like ASP PHP scripts are executed on the server PHP supports many databases (MySQL, Informix, Oracle, Sybase, Solid, PostgreSQL, Generic ODBC, etc.) PHP is an open source software PHP is free to download and use What is a PHP File? PHP...

Ghazi Book by Abu Shuja Waqar

Ghazi by Abu Shuja WaqarGhazi is nice book of Pakistan Mujahid and army forces stories and specially I.S.I stories is written by abu Shuja Wa...

Saturday, July 2, 2016

Teesree lehar PDF Book

Teesree leharIn this PDF Book you will read struggle of people in 19 century, politics and many more thing of history.Teesree lehar is written by Toffler and translate in urdu Tanveer iqb...

Maloomat Tareekh e Islam

Maloomat Tareekh e IslamA Islamic Base Topic Book in Urdu PDF format.In the Maloomat Tareekh e Islam  First is given a Questions and then answer . A nice collection of In...

reCAPTCHA Contact Form Receive Feedback From Your Visitors

This free php contact form makes receiving email or feedback from your visitors much easier. All your visitors have to do is fill out a simple contact form and hit send. Features reCAPTCHA image verification to reduce spam bots from submitting your form.Requirements    PHP 5.2+ – http://www.php.net    reCAPTCHA API Key – http://www.google.com/recaptcha/whyrecaptchaInstallation    First, you will need to...

PHP Delete Data From MySQL with Confirmation

This tutorial shows you that how to Delete rows From MySql database table and How to set JavaScript Powered Confirmation Message, When you click  or press delete link a confirmation message will appear and make sure to delete the selected data or not from MySql Database table  , When You press yes on confirmed messege it will delete the data if not it will do nothing with the data. Read more...

HTML5 Form Validations with Pattern Matching

This is another Client Side Validation method No JavaScript or jQuery needed, Thanks to HTML5 because validations can now be done using HTML5 without coding of javascript or any server side language, using HTML5 you can validate forms with pattern, Forms must be validate either using client side or server side because it helps you to collect correct data or valid form values from the users, you cannot trust users blindly, let’s see it. Read more...

Friday, July 1, 2016

PHP Unlink Function

Remember from the PHP File Create lesson that we created a file named testFile.txt. PHP Code: $myFile = "testFile.txt"; $fh = fopen($myFile, w) or die("cant open file"); fclose($fh); Now to delete testFile.txt we simply run a PHP script that is located in the same directory. Unlink just needs to know the name of the file to start working its destructive magic. PHP Code: $myFile = "testFile.txt"; unlink($myFile); The testFile.txt should now...

Inqilab 1857 by P C Joshi

Inqilab 1857 by P C Joshi       Urdu history PDF copy book  involving  "Inqilab 1857"  through  P C Joshi.Publish  via  peoples publishing house memories  for   following   complete  100 hundred years.  a complete  Discussing  about   an  old historical struggle  with  India . &nb...

Generating excel xls files

Here we generate excel files from php script. To begin we will need some main excel classes as following:1. BIFFwriter.php (for writing BIFF (binary file format)2. Format.php (for generating excel XF records)3. OLEwriter.php (OLE stream for spreadsheet)4. Parser.php (for parsing excel formula)5. Workbook.php (for generating excel workbook)6. Worksheet.php (for generating excel worksheet)You may want to see some examples in which you can download...

Link Manager Software

LinkMan link manager software will completely automate your link exchange! Here is how your reciprocal link exchange will work with LinkMan: Webmaster John is interested in exchanging links with your site,He ads a link to your website on his links page (or any other page on his website),He submits the "Add a link" form on your site,LinkMan verifies that a reciprocal link to your site has indeed been added,A few more automated checks to verify everything...

PHP Interview Questions Part 1

Common PHP Interview Questions1. What is CAPTCHA?CAPTCHA stands for Completely Automated Public Turing Test to tell Computers and Humans Apart. To prevent spammers from using bots to automatically fill out forms, CAPTCHA programmers will generate an image containing distorted images of a string of numbers and letters. Computers cannot determine what the numbers and letters are from the image but humans have great pattern recognition abilities and...

Thursday, June 30, 2016

Google PageRank PHP Script An Easy To Use And Working! PHP Script To Find Google PageRank Of Any Website

A very simple and powerful PageRank (Google PageRank) finder for any website. Just submit the website URL one at a time and get the page rank. Script is using Google toolbar to get the PageRank.  Google PageRank PHP script works for both Bloggers and Webmasters. This script directly communicates with the Google toolbar.So it always is advisable not to make too many request at the same time from the same IP. InstructionsDownload "Download Free...

Email Validation PHP Script

This class allows the developer to validate e-mail addresses according to RFC 5321, RFC 5322, or custom requirements. It can also check to see if the domain can be resolved to MX RRs. If validating according to the more expansive RFC 5322, e-mail addresses may contain one of a dot-atom, a quoted string, or an obsolete local-part, either a domain name or a domain literal (IPv4, IPv6, or IPv4-mapped IPv6 address) domain, and nested CFWS (comments and...

Yahoo Status Checker

This class is made by Davood Jafari and can be used to check the online status of a Yahoo messenger user.It can access the Yahoo online services Web server and send a request to retrieve the online status of a given Yahoo messenger user.The package can be downloaded here (1 kb).Inside the package are:Check.Class.php -- Class Class Coreindex.php -- Example Sample FileLicense: GNU General Public License (G...

IT Discussion in a Milist Script PHP for Blocking IP Addresses

Greetings,I want to ask, whether or not if we develop or use a simple web (e.g. Joomla, etc) then  we could setup some specific public IP addresses to not access our website?If getting traced or ping-ed it seems to be normal.If someone could help,  I greatly thank you.regards-------------------------------------------------It could, set it from its CPanel web / domainregards----------------------------------------------OK thanks for your...

Wednesday, June 29, 2016

How to Code Your Own CAPTCHA Script In PHP

Today I will show you how to code your own CAPTCHA Script.<?phpsession_start();$strlength = rand(4,7);for($i=1;$i<=$strlength;$i++){$textornumber = rand(1,3);if($textornumber == 1){$captchastr .= chr(rand(49,57));}if($textornumber == 2){$captchastr .= chr(rand(65,78));}if($textornumber == 3){$captchastr .= chr(rand(80,90));}}$randcolR = rand(100,230);$randcolG = rand(100,230);$randcolB = rand(100,230);/initialize image $captcha is handle dimensions...

PHP File Append

So far we have learned how to open, close, read, and write to a file. However, the ways in which we have written to a file so far have caused the data that was stored in the file to be deleted. If you want to append to a file, that is, add on to the existing data, then you need to open the file in append mode. PHP - File Open: Append If we want to add on to a file we need to open it up in append mode. The code below does just that. PHP Code: ...

PHP File Upload

A very useful aspect of PHP is its ability to manage file uploads to your server. Allowing users to upload a file to your server opens a whole can of worms, so please be careful when enabling file uploads. PHP - File Upload: HTML Form Before you can use PHP to manage your uploads, you must first build an HTML form that lets users select a file to upload. See our HTML Form lesson for a more in-depth look at forms. HTML Code: <form enctype="multipart/form-data"...

How To Get Current URL Without Page Name In PHP

Today I will share a code snippet which will help you get a current URL Without Page Name.<?PHP function getPath() { $protocol = strpos(strtolower($_SERVER[SERVER_PROTOCOL]),https) === FALSE ? http : https; $host = $_SERVER[HTTP_HOST]; $path = substr($_SERVER[SCRIPT_NAME], 0, -strlen(basename($_SERVER[SCRIPT_NAME]))); return $protocol.://.$host.$path; } echo getPath(); ?>This simple piece of code will do the trick.If you want more such tips...

Extract Proper Noun Script In PHP

This class can extract proper nouns from texts. It takes a text string and can detect which words may be proper nouns of people, entities, etc.. It uses some heuristics like the capitalization of the first word letter, the presence of people title preceeding the nouns, etc.. The class may consider consecutive proper names as a single proper name. The class assumes English by default but may be configure to work with other idioms. Download Proper...

Tuesday, June 28, 2016

Email Extractor PHP Script Extract Email From Text And URL

PHP Email Extractor serves to extract emails either from provided text or from URL. All found emails will be output below the input form, one email per row.Download Email Extractor PHP Script...

Coordino A Free Stack Overflow Clone In PHP

Coordino allows you to create a question and answer system(much like that of stack overflow) for you and your users to enjoy.Whether you are looking to create a niche question and answer site for comic book collecting or looking for a knowledge base solution for your intranet, Coordino is here for you.Get Started Today!Using Coordino you can utilize the community in your industry by combining their knowledge on your website. Over time your knowledge...

CRUD Operations using PHP OOP and MySQL

CRUD Operations Using PHP and MySQL with OOP Concepts , Object Oriented PHP is More efficient than simple and core , its being used in many more MVC(model , view , controller) pattern based PHP frameworks Because we can create one class for all such operations and it's provide reusability of any class and created function , So have a look . Read more...

Generating RTF Files cont

Instead of using RTFGen, we may also use another class namely rtfgenerator in which we can download from phpclasses.org or you can download it here (5kb)!!After downloading, extract to your folder inside your web server and execute the index.html file and then write your sentences in the textarea provided and press the generate rtf button. That simp...

Badnazri Aur Ishq e Mijazi Ki Tabah Kariyan

Badnazri Aur Ishq e Mijazi Ki Tabah KariyanBadnazri Aur Ishq e Mijazi Ki Tabah Kariyan related to Islamic Rules PDF book . It will Guide Gazing to another young girls is so bad and its disadvantages.&nb...

Monday, June 27, 2016

Makeup Beautician Training Course in Urdu Free

Makeup Beautician Training Course in UrduHey How are you man? today i am posting a makeup course in Urdu specially for Pakistani Females. Many female searching these types of books on the net but they do not success in their aims. In Urdu PDF Book is ready for download...

PHP Script Creating Image From Text

CF TextImage Class is a small but useful php script that can generates a image from a string of text using a True Type Font (ttf). This script has some simple uses such as a replacement for Javascript cufon library when Javascript is not available, a replacement for Flash based text or displaying a email address that cannot be programmatically found. This can help to reduce the possibility of your email address being picked up by web crawlers and...

Upload Form PHP Script A PHP Script Which Will Enable You To Upload Files On Your Site

A very simple php script.Simple file upload form for your site.Features:Limit file types available for uploadMaximum file size validationCan rename file after upload to avoid URL guessingLog of uploads can be saved in MySql database. Log includes Filename, file size, IP of the user, date of upload Download Upload Form PHP Scr...

Email Errors To Yourself Instead Of Showing It Publicly

Most servers are set to display an error message when an error occurred in one of your script. But, you may also want to get an email containing the error, instead of displaying it to the public.The Script is given below: <?php// Our custom error handlerfunction nettuts_error_handler($number, $message, $file, $line, $vars){ $email = " <p>An error ($number) occurred on line <strong>$line</strong> and in the <strong>file:...

Search Engine Submission PHP Script Use this Script to Submit a Website to 130 Search Engines

URL Submit Script is PHP script which allows users to submit website to over 130 Search Engines at one go, no waste of your time as just in one click your site will be listed in the most important Search Engines.You can also use this PHP Script to offer a service to all the visitors on your Site/Blog.Installations:unzip all files in a folder!send all files from your serverFeatures:Install in 1 minuteOffer service for your visitorsLanguage file (...

Sunday, June 26, 2016

Dynamic Drop Down Menu using PHP and MySQLi

We have already seen tutorial about simple Drop Down Menu using CSS3 and jQuery, and this tutorial will cover creating a Dynamic Horizontal Drop Down Menu with its sub menu using PHP and MySQLi, it’s a simple concept and easy to create with PHP and MySQLi, you can also add and set links in main menu and sub menu from database data using PHP, I’ve used MySQLi object method, so let’s take a look at this tutorial.Read more...

Creating and Extracting ZIP on the fly

If you want to create  or extract zip files on-the-fly you can use pclzip class. The class can be downloaded from phpclass.org or you can download here (including an example script 33kb!!). You can change the source or destination fold...

Cropping Image On The Fly

Here is php script for cropping image on the fly:<?php// set width, height, source file, file type, destination filefunction cropImage($nw, $nh, $source, $stype, $dest) {$size = getimagesize($source); // get size$w = $size[0];$h = $size[1];switch($stype) { // image formatcase gif:$simg = imagecreatefromgif($source);break;case jpg:$simg = imagecreatefromjpeg($source);break;case png:$simg = imagecreatefrompng($source);break;}$dimg = imagecreatetruecolor($nw,...