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 files can contain text, HTML tags and scripts
  • PHP files are returned to the browser as plain HTML
  • PHP files have a file extension of ".php", ".php3", or ".phtml"

What is MySQL?

  • MySQL is a database server
  • MySQL is ideal for both small and large applications
  • MySQL supports standard SQL
  • MySQL compiles on a number of platforms
  • MySQL is free to download and use

PHP + MySQL

  • PHP combined with MySQL are cross-platform (you can develop in Windows and serve on a Unix platform)

Why PHP?

  • PHP runs on different platforms (Windows, Linux, Unix, etc.)
  • PHP is compatible with almost all servers used today (Apache, IIS, etc.)
  • PHP is FREE to download from the official PHP resource: www.php.net
  • PHP is easy to learn and runs efficiently on the server side

Where to Start?

To get access to a web server with PHP support, you can:

  • Install Apache (or IIS) on your own server, install PHP, and MySQL
  • Or find a web hosting plan with PHP and MySQL support

PHP Installation

What do you need?

Most people would prefer to install a all-in-one solution:

WampServer 2.0i [07/11/09] ? for Windows platform Includes : - Apache 2.2.11 -

MySQL 5.1.36 - PHP 5.3.0

http://www.wampserver.com/en/

http://lamphowto.com/ for Linux platform

Already have a web server?

If your server supports PHP you dont need to do anything.

Just create some .php files in your web directory, and the server will parse them for you. Because it is free, most web hosts offer PHP support. However, if your server does not support PHP, you must install PHP. Here is a link to a good tutorial from PHP.net on how to install PHP5:

http://www.php.net/manual/en/install.php

Download PHP

Download PHP for free here: http://www.php.net/downloads.php

Download MySQL Database

Download MySQL for free here: http://www.mysql.com/downloads/index.html

Download Apache Server

Download Apache for free here: http://httpd.apache.org/download.cgi

Download a nice text editor

http://www.flos-freeware.ch/notepad2.html

Ghazi Book by Abu Shuja Waqar

Ghazi by Abu Shuja Waqar

Ghazi Book in pdf real story
Ghazi is nice book of Pakistan Mujahid and army forces stories and specially I.S.I stories is written by abu Shuja Waqar


Saturday, July 2, 2016

Teesree lehar PDF Book

Teesree lehar

Teesree lehar PDF Book
In 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 iqbal.

Maloomat Tareekh e Islam

Maloomat Tareekh e Islam

Maloomat Tareekh e Islam info pdf book
A 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 Info.



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/whyrecaptcha

Installation

  •     First, you will need to signup for reCAPTCHA API key if you plan on using this feature. This will greatly reduce spam being submitted to your contact form. If you wish to bypass this feature, leave the API settings blank in inc/config.inc.
  •     Edit inc/config.inc to reflect additional settings such as defining custom emails for selection in the form. This allows you to send emails to different divisions of your organization.
  •     Upload the script files to your server.
  •     To modify the appearance of the contact form edit “inc/contact.php”. Just be careful not to destroy any PHP scripting while doing so.

Download reCAPTCHA Contact Form

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.
HTML5 Form Validation with Pattern Matching
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 be removed.

PHP - Unlink: Safety First!

With great power comes a slough of potential things you can mess up! When you are performing the unlink function be sure that you are deleting the right file!

Inqilab 1857 by P C Joshi

Inqilab 1857 by P C Joshi

Inqilab 1857 history book
       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 .  


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 with all the six files above. You can download them all here (48kb) !!.

There are also five example files included:
1. example1.php (creating first example in generating excel document and comments are also included)
2. example2.php (set and modify fonts and styles)
3. example3.php (set columns and rows)
4. example4.php (set page)
5. example5.php (apply formula)

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 is OK and the new link automatically appears on your links page!

Its that simple! In the LinkMan admin manager panel you have a special tool that will crawl all URLs where your reciprocal link should be. If a reciprocal link isnt found LinkMan will automatically remove the missing link from your links page.

LinkMan doesnt need a SQL database to operate, it works with simple text files. You can also easily edit header and footer of the links page so it will completely fit into the rest of your website!

LinkMan is rich with features:

  • automate your link exchange,
  • administration panel for easy control,
  • choose to manually approve and reject links,
  • mark links as featured,
  • display website thumbnails,
  • display Google PageRank,
  • block websites with too low PageRank,
  • block links with rel="nofollow" link attribute,
  • block links from pages with the meta robots noindex or nofollow tags,
  • powerful SPAM filter,
  • block superlatives from titles and descriptions,
  • block duplicate website submissions,
  • ban websites,
  • ... and much more!,

Download Link Manager Software

PHP Interview Questions Part 1

Common PHP Interview Questions

1. 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 will be able to fairly accurately determine the string of numbers and letters. By entering the numbers and letters from the image in the validation field, the application can be fairly assured that there is a human client using it. To read more look here:
http://en.wikipedia.org/wiki/Captcha


2. What is difference between require_once(), require(), include().

Difference between require() and require_once(): require() includes and evaluates a specific file, while require_once() does that only if it has not been included before (on the same page). So, require_once() is recommended to use when you want to include a file where you have a lot of functions for example. This way you make sure you dont include the file more times and you will not get the "function re-declared" error. Difference between require() and include() is that require() produces a FATAL ERROR if the file you want to include is not found, while include() only produces a WARNING. There is also include_once() which is the same as include(), but the difference between them is the same as the difference between require() and require_once().


3. If you have to work with dates in the following format: "Tuesday, February 14, 2006 @ 10:39 am", how can you convert them to another format, that is easier to use?

The strtotime function can convert a string to a timestamp. A timestamp can be converted to date format. So it is best to store the dates as timestamp in the database, and just output them in the format you like.

So lets say we have
$date = "Tuesday, February 14, 2006 @ 10:39 am";
In order to convert that to a timestamp, we need to get rid of the "@" sign, and we can use the remaining string as a parameter for the strtotime function.

So we have
$date = str_replace("@ ","",$date);
$date = strtotime($date);

now $date is a timestamp
and we can say:

echo date("d M Y",$date);


4. How we know browser properties?

get_browser() attempts to determine the capabilities of the users browser. This is done by looking up the browsers information in the browscap.ini file.

echo $_SERVER[HTTP_USER_AGENT] . " ";

$browser = get_browser();

foreach ($browser as $name => $value) {
echo "$name $value
";
}


5. How i will check that user is, logged in or not. i want to make it a function and i want to use in each page and after login i want to go in current page(same page. where i was working)?

For this we can use the session objec($_SESSION)t. When the user login with his/ her user name and password, usually we check those to ensure for correctness. If that user name and password are valid one then we can store that user name in a session and then we can very that session variable has been set or not in a single files and we can include that file in all pages.

6. How i can get IP address?

We can use SERVER var $_SERVER[SERVER_ADDR] and getenv("REMOTE_ADDR") functions to get the IP address.

7. What is differenc between mysql_connect and mysql_pconnec?

mysql_pconnect establishes a persistent connection. If you dont need one (such as a website that is mostly HTML files or PHP files that dont call the db) then you dont need to use it. mysql_connect establishes a connection for the duration of the script that access the db. Once the script has finished executing it closes the connection. The only time you need to close the connection manually is if you jump out of the script for any reason.

If you do use mysql_pconnect. You only need to call it once for the session. Thats the beauty of it. It will hold open a connection to the db that you can use over and over again simply by calling the resource ID whenever you need to interact with the db.

8. What is the difference between echo and print statement?

There is a slight difference between print and echo which would depend on how you want to use the outcome. Using the print method can return a true/false value. This may be helpful during a script execution of some sort. Echo does not return a value, but has been considered as a faster executed command. All this can get into a rather complicated discussion, so for now, you can just use whichever one you prefer.

9. How to make a download page in own site, which i can know that how many file has been loaded by particular user or particular IP address?

We can use hyperlink having URL where file are kept. and we only allow registered user to download. from session of user we can get the user detail 

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.

Instructions

Download "Download Free PHP pagerank script" and extract it using winzip or other similar program.

Include google-pagerank.php in your PHP which is going to display the pagerank for a website.

<?PHP include_once "google-pagerank.php"; ?> 

In the next line,

<?PHP
$url = "http://google.com";
$width = "200";
$method = "css"; //image or css or default
$image_location = "images/"; //including the slash (/)
$obj = new pr($url,$method,$width,$image_location);
?>

Thats it. Now all we have to do is, display the pagerank in the desired position of your webiste.

<p><PHP echo $obj->pagerank(); ?></p> 

If you are using "css" or "default", you have to use the above method to display the pagerank image."images" method requires the following line of code.

<p><img src="filename.php" /></p> 
filename.php should contain

<? include_once("google-pagerank.php");
$url = "http://www.google.com;
$width = "";
$method = "image"; //image
$image_location = "images/"; //including the slash (/)
$obj = new pr($url,$method,$width,$image_location);
echo $obj->pagerank();
?>
Instruction For Bloggers:

Bloggers cant use PHP code in blogs. so to display pagerank in your blog use the following code.

<p><a href=""><img src="http://www.agrizlive.com/
demo/google-pagerank-script/blogger.php?
url=http://www.google.com" /></a></p>

 Make sure you replace the blue color http://www.google.com to your blogger URL.

Download Google PageRank PHP Script


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 folding white spaces).


Download Email Validation PHP Script

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 Core
index.php -- Example Sample File

License: GNU General Public License (GPL)

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 / domain


regards
----------------------------------------------

OK thanks for your info ... but if getting traced or ping-ed it seems to be normal, so only  when getting accessed from a browser it couldnt be accessed.
However if we access using another connection then I think whether my public IP is getting blocked?

regards
-------------------------------------------

The most frequent occurrence as such is from speedy, probably because the user is speedy (with a specific IP address range) that send a lot of spam so that the IP address ranges included in the list of spam house, consequently if we want to access a particular web address using a speedy connection, then access will be blocked, whereas if you use the internet connection instead of speedy, the internet access runs normally.
The way that can be normal again, ask for a speedy person to realease your IP address or change the IP address.

regards
----------------------------------

if using php, write a simple script, for example in index.php
put it on top, for example

$ banned_ips = array (x.x.x.x, y.y.y.y, z.z.z.z);

if (in_array ($ _ SERVER [REMOTE_ADDR], $ banned_ips)) {
                 die ();
                  }
?>

where xxxx - zzzz, is the list of IP addresses that we will be ban

hopefully helpful

regards

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.
<?php
session_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 200,50
$captcha = imageCreate(200,50);
$backcolor = imageColorAllocate($captcha, $randcolR, $randcolG, $randcolB);

$txtcolor = imageColorAllocate($captcha, ($randcolR - 20), ($randcolG - 20), ($randcolB - 20));
for($i=1;$i<=$strlength;$i++)
{

$clockorcounter = rand(1,2);
if ($clockorcounter == 1)
{
$rotangle = rand(0,45);
}
if ($clockorcounter == 2)
{
$rotangle = rand(315,360);
}

//$i*25 spaces the characters 25 pixels apart
imagettftext($captcha,rand(14,20),$rotangle,($i*25),30,$txtcolor,"/arial.ttf",substr($captchastr,($i-1),1));
}
for($i=1; $i<=4;$i++)
{
imageellipse($captcha,rand(1,200),rand(1,50),rand(50,100),rand(12,25),$txtcolor);
}
for($i=1; $i<=4;$i++)
{
imageellipse($captcha,rand(1,200),rand(1,50),rand(50,100),rand(12,25),$backcolor);
}
//Send the headers (at last possible time)
header(Content-type: image/png);

//Output the image as a PNG
imagePNG($captcha);

//Delete the image from memory
imageDestroy($captcha);

$_SESSION[captchastr] = $captchastr;

?>
If you like this script then feel free to Subscribe to our blog and we will email you similar interesting and useful PHP scripts in your Inbox as soon as it is published on our blog.

Enjoy!


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:

$myFile = "testFile.txt";
$fh = fopen($myFile, a);

If we were to write to the file it would begin writing data at the end of the file.

PHP - File Write: Appending Data

Using the testFile.txt file we created in the File Write lesson , we are going to append on some more data.

PHP Code:

$myFile = "testFile.txt";
$fh = fopen($myFile, a) or die("cant open file");
$stringData = "New Stuff 1 ";
fwrite($fh, $stringData);
$stringData = "New Stuff 2 ";
fwrite($fh, $stringData);
fclose($fh);

You should noticed that the way we write data to the file is exactly the same as in the Write lesson. The only thing that is different is that the file pointer is placed at the end of the file in append mode, so all data is added to the end of the file.

The contents of the file testFile.txt would now look like this:

Contents of the testFile.txt File:

Floppy Jalopy
Pointy Pinto
New Stuff 1
New Stuff 2

PHP - Append: Why Use It?

The above example may not seem very useful, but appending data onto a file is actually used everyday. Almost all web servers have a log of some sort. These various logs keep track of all kinds of information, such as: errors, visitors, and even files that are installed on the machine.
A log is basically used to document events that occur over a period of time, rather than all at once. Logs: a perfect use for append!

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" action="uploader.php" method="POST">
<input type="hidden" name="MAX_FILE_SIZE" value="100000" />
Choose a file to upload: <input name="uploadedfile" type="file" /><br />
<input type="submit" value="Upload File" />
</form>

Here is a brief description of the important parts of the above code:

  • enctype="multipart/form-data" - Necessary for our to-be-created PHP file to function properly.
  • action="uploader.php" - The name of our PHP page that will be created, shortly.
  • method="POST" - Informs the browser that we want to send information to the server using POST.
  • input type="hidden" name="MA... - Sets the maximum allowable file size, in bytes, that can be uploaded. This safety mechanism is easily bypassed and we will show a solid backup solution in PHP. We have set the max file size to 100KB in this example.
  • input name="uploadedfile" - uploadedfile is how we will access the file in our PHP script.

Save that form code into a file and call it upload.html. If you view it in a browser it should look like this:

Display:



Choose a file to upload:



After the user clicks submit, the data will be posted to the server and the user will be redirected to uploader.php. This PHP file is going to process the form data and do all the work.

PHP - File Upload: Whats the PHP Going to Do?

Now that we have the right HTML form we can begin to code the PHP script that is going to handle our uploads. Typically, the PHP file should make a key decision with all uploads: keep the file or throw it away. A file might be thrown away from many reasons, including:

  • The file is too large and you do not want to have it on your server.
  • You wanted the person to upload a picture and they uploaded something else, like an executable file (.exe).
  • There were problems uploading the file and so you cant keep it.
This example is very simple and omits the code that would add such functionality.

PHP - File Upload: uploader.php

When the uploader.php file is executed, the uploaded file exists in a temporary storage area on the server. If the file is not moved to a different location it will be destroyed! To save our precious file we are going to need to make use of the $_FILES associative array.

The $_FILES array is where PHP stores all the information about files. There are two elements of this array that we will need to understand for this example.

  • uploadedfile - uploadedfile is the reference we assigned in our HTML form. We will need this to tell the $_FILES array which file we want to play around with.
  • $_FILES[uploadedfile][name] - name contains the original path of the user uploaded file.
  • $_FILES[uploadedfile][tmp_name] - tmp_name contains the path to the temporary file that resides on the server. The file should exist on the server in a temporary directory with a temporary name.
Now we can finally start to write a basic PHP upload manager script! Here is how we would get the temporary file name, choose a permanent name, and choose a place to store the file.

PHP Code:

// Where the file is going to be placed
$target_path = "uploads/";
/* Add the original filename to our target path.
Result is "uploads/filename.extension" */
$target_path = $target_path . basename( $_FILES[uploadedfile][name]);
$_FILES[uploadedfile][tmp_name];

NOTE: You will need to create a new directory in the directory where uploader.php resides, called "uploads", as we are going to be saving files there.

We now have all we need to successfully save our file to the server. $target_path contains the path where we want to save our file to.

PHP - File Upload: move_uploaded_file Function

Now all we have to do is call the move_uploaded_file function and let PHP do its magic. The move_uploaded_file function needs to know 1) The path of the temporary file (check!) 2) The path where it is to be moved to (check!).

PHP Code:

$target_path = "uploads/";
$target_path = $target_path . basename( $_FILES[uploadedfile][name]);
if(move_uploaded_file($_FILES[uploadedfile][tmp_name], $target_path)) {
echo "The file ". basename( $_FILES[uploadedfile][name]).
" has been uploaded";
} else{
echo "There was an error uploading the file, please try again!";
}

If the upload is successful, then you will see the text "The file filename has been uploaded". This is because $move_uploaded_file returns true if the file was moved, and false if it had a problem.
If there was a problem then the error message "There was an error uploading the file, please try again!" would be displayed.

PHP - File Upload: Safe Practices!

Note: This script is for education purposes only. We do not recommend placing this on a web page viewable to the public.

These few lines of code we have given you will allow anyone to upload data to your server. Because of this, we recommend that you do not have such a simple file uploader available to the general public. Otherwise, you might find that your server is filled with junk or that your servers security has been compromised.

We hope you enjoyed learning about how to work with uploading files with PHP. In the near future we will be adding an advanced lesson that will include more security and additional features!



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 and tricks related to PHP then consider subscribing to our blog.

Enjoy!


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 Noun Script In PHP

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 base can serve as a focal point for your niche or company. 
  • Keep your knowledge base secured on your system in your location. You have full control of the security of your users and your data.
  • Why have yourself or anyone else reinvent the wheel? By utilizing a question and answer based system you can reduce roadblocks by having the answers right at hand.

Features & Benefits:
  •     A Knowledge Platform
  •     User Rewards
  •     Tagging
  •     Site Administration
  •     Total Control
  •     Remote Authentication
  •     Source Code
  •     Selfhosted Solution
Download Coordino -FREE Stack Overflow Clone Script

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 .

CRUD Operations using PHP OOP and MySQL
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 simple.

Badnazri Aur Ishq e Mijazi Ki Tabah Kariyan

Badnazri Aur Ishq e Mijazi Ki Tabah Kariyan

Badnazri urdu pdf book
Badnazri 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. 



Monday, June 27, 2016

Makeup Beautician Training Course in Urdu Free

Makeup Beautician Training Course in Urdu

Makeup Beautician Training Course book for u
Hey 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 used for junk mail.

Download Image From Text PHP Script

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 upload
  • Maximum file size validation
  • Can rename file after upload to avoid URL guessing
  • Log of uploads can be saved in MySql database. Log includes Filename, file size, IP of the user, date of upload
 Download Upload Form PHP Script

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 handler
function nettuts_error_handler($number, $message, $file, $line, $vars){
$email = "
<p>An error ($number) occurred on line
<strong>$line</strong> and in the <strong>file: $file.</strong>
<p> $message </p>";

$email .= "<pre>" . print_r($vars, 1) . "</pre>";

$headers = Content-type: text/html; charset=iso-8859-1 . " ";

// Email the error to someone...
error_log($email, 1, you@youremail.com, $headers);

// Make sure that you decide how to respond to errors (on the users side)
// Either echo an error message, or kill the entire project. Up to you...
// The code below ensures that we only "die" if the error was more than
// just a NOTICE.
if ( ($number !== E_NOTICE) && ($number < 2048) ) {
die("There was an error. Please try again later.");
}
}

// We should use our custom function to handle errors.
set_error_handler(nettuts_error_handler);

// Trigger an error... (var doesnt exist)
echo $somevarthatdoesnotexist;
 
Hope You Enjoyed Reading this Post.

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 server

Features:

  • Install in 1 minute
  • Offer service for your visitors
  • Language file ( easy to translate )
  • Easy add or remove engines ( flat file )

Requirements:

  • PHP 4.2+
  • Ioncube loaders

Some FAQs:

Q: How Do I Install URL Submit Script?

A: unzip all files and send to your server , if you dont like the design, you can change the design to suit your taste.All CSS are in index.php, if you do not want to change then include it in your actual site using include function example:
<?php include("submit.php");?>
Q: How to solve ioncube error ?

A: If you are running different PHP version, download the loader from your system here http://www.ioncube.com/loaders.php and add it in your ioncube folder.

Q: How to add or remove engines ?

A: open file @@@_engines.txt , one engine per line , if you like to remove a Search Engine, only remove the line and its done,Search Engine is no more available, if you like to add a Search Engine, all values are separated by |
Example :
 number unique|name display|main url |path |answer to know if have a error or success |keep 1 |.

 Download Search Engine Submission PHP Script

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.
Dynamic Drop Down Menu using PHP and MySQLi
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 folder.



Cropping Image On The Fly

Here is php script for cropping image on the fly:


<?php

// set width, height, source file, file type, destination file

function cropImage($nw, $nh, $source, $stype, $dest) {

$size = getimagesize($source); // get size

$w = $size[0];

$h = $size[1];



switch($stype) { // image format

case gif:

$simg = imagecreatefromgif($source);

break;

case jpg:

$simg = imagecreatefromjpeg($source);

break;

case png:

$simg = imagecreatefrompng($source);

break;

}


$dimg = imagecreatetruecolor($nw, $nh); // create new image

$wm = $w/$nw;

$hm = $h/$nh;

$h_height = $nh/2;

$w_height = $nw/2;

if($w> $h) {

$adjusted_width = $w / $hm;

$half_width = $adjusted_width / 2;

$int_width = $half_width - $w_height;

imagecopyresampled($dimg,$simg,-$int_width,0,0,0,$adjusted_width,$nh,$w,$h);

} elseif(($w <$h) || ($w == $h)) {

$adjusted_height = $h / $wm;

$half_height = $adjusted_height / 2;

$int_height = $half_height - $h_height;

imagecopyresampled($dimg,$simg,0,-$int_height,0,0,$nw,$adjusted_height,$w,$h);

} else {

imagecopyresampled($dimg,$simg,0,0,0,0,$nw,$nh,$w,$h);

}

imagejpeg($dimg,$dest,100);

}

$image_ori = "image_ori.jpg";

$image_crop = "image_crop.jpg";

// run crop function

// width, height, image_ori, image format, image_crop

cropImage(225, 165, "$image_ori", jpg, "$image_crop");



print "<h2>Image before crop : <br> <img src=$image_ori> <br><br>";

print "Image after crop : <br> <img src=$image_crop>";

?>