Showing posts with label a. Show all posts
Showing posts with label a. Show all posts

Thursday, June 30, 2016

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

Tuesday, June 28, 2016

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

Monday, June 27, 2016

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

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

Saturday, June 25, 2016

Hazrat Adam A S History Free Download in Urdu

Hazrat Adam A.S History books
Hy Friends Once again I am Posting a nice Urdu PDF book For you. Title of  Book is HAzrat Adam A.s Written by Aslam Rahi. Before this I already Posted Prophets life books E.g  Hazrat Ibrahim as History in Urdu same thing is  Hazrat Sulaiman Aur Deegar Anbiya Kay Qissay

Download

PHP Login Script A Simple Free PHP Login Script

A simple home made PHP/MySQL login script to protect your web page content from spam and bot registrations so that only registered users can view the content of your site.. It is free of charge and you can use it on any commercial or personal projects!


Features
  • Quickly Integrate to any Website.
  • User Registration Form with reCaptcha feature.
  • Login with remember me feature.
  • Easy to customize for your needs.
  • Login protect your web pages
  • Login by either username or email.
  • Javascript validation of fields.
  • MyAccount area for users.
  • Username checkup and registration
  • Email confirmation code and activation of account
  • Admin area to manage users with Ban user option
  • Forgot password option (resetting password for users)
  • Change Password option for users
  • Neatly formatted error Messages
Requirements
  • MySQL Database 3+ 
  • Linux server Apache Web server 
  • PHP scripting language
  • reCaptcha Keys + php library (register for free) 
  • JQuery for javascript validation.
How it works

Registration:

User registers with their chosen username, email and password. The script checks for existing username or email, if exists, it denies them registering an account. The username is restricted to only alphabets, numbers and underscore. No special characters allowed.


And of course, they have to verify their captcha image.

The password is stored in md5 format during registration and we send an 4 digit random activation code to their email address.

Login:

The script determines whether username or email is entered and it checks for existing account. When the user enters his password, the script converts the password to md5 string and then compares this to the md5 of the password stored in the database. We never want to know or store the real password of users. That is why we are using md5.

Once logged in we are registering a session and a Cookie with remember me feature.

Admin area:

You can manage the users like activating accounts of pending users, create user and ban them. I have kept it so simple and nothing fancy in the admin area. You have to set admin login and password in the script to login. Most the admin functions are made to work with javascript.

Error Messages:

The error messages are neatly formatted for the users.


Integrate to your Website

I have left spaces for header, footer, left menu and right menu in table layout so that you can easily insert your logo, header and footers depending on your website.


Installation Instructions

Here is how you install the script in your website.

1. MySQL database setup

(i) Create database table


Download and unzip the php login script and you can import the whole dbsql.sql or open the file in notepad and copy the lines and paste into the SQL of database. It will create users table and your admin login.

If you have cpanel you can access phpmyadmin directly this way - point your browser to http://domain.com:2082/3rdparty/phpMyAdmin/

(ii) Database settings

Open dbc.php and set values inside the quotes for your mysql settings.

  •  database name
  •  database user
  •  database password

you will get these information from your hosting provider. Make sure you give full access rights to the database user. If you have cpanel, just login and create database and database user.

example:
define ("DB_HOST", "xxxxx"); // set database host
define ("DB_USER", "xxxx"); // set database user
define ("DB_PASS","xxxx"); // set database password
define ("DB_NAME","xxxx"); // set database name

3. Setting up reCaptcha for your Script

(i) Download recaptcha php library (https://developers.google.com/recaptcha/docs/php), unzip and copy the single php file recaptchalib.php into login script folder. This is very important, without which the login script will not work

(ii) Go to recaptcha.net, register a free account, and you will get public and private keys. Make a note of that and set it here inside dbc.php
$publickey = "xxxxxxxxxxxxxxxxxxxxxxxxxxx"
$privatekey = "xxxxxxxxxxxxxxxxxxxxxxxxx";

4. Configuration settings

Open dbc.php and you have to configure the php login script.

(i) Automatic or Manual registration
/* Registration Type (Automatic or Manual)
1 -> Automatic Registration (Users will receive activation code and they will be automatically approved after clicking activation link)
0 -> Manual Approval (Users will not receive activation code and you will need to approve every user manually)
*/
$user_registration = 1; // set 0 or 1

(ii) Other Settings (optional only)

These are the other settings in the script if you want you can change it like cookie expiry time, specify admin levels and much more..
define("COOKIE_TIME_OUT", 10); //specify cookie timeout in days (default is 10 days)
define(SALT_LENGTH, 9); // salt for password
5. Integrate to your website

I have left spaces for header,footer inside each of the pages. You can place there logos, footer or whatever you want depending on your website.

6. Thank you page.

Upon registering, the users will be taken to thankyou.php page and you can customize it to whatever that suits your needs.

7. Login protect a new page

Lets say you have a new page page1.php, and you want only the logged in users to access it. To get this done, just add this one line of code and it should be VERY TOP of your page1.php. Any other html code or php code should be below it.
<?php
include dbc.php;
page_protect();
?>
// place html or other php code below this.
If any users who have not registered and accesses this page1.php, they will be redirected to login page.

8. Display MyAccount menu to all logged in users

You want to show the myaccount menu to all those logged in users with links to change password, logout, settings etc... To show the menu place this code anywhere in your page1.php.

Only logged in users will see this menu.
<?
if (isset($_SESSION[user_id])) {?>
<div class="myaccount">
<p><strong>My Account</strong></p>
<a href="myaccount.php">My Account</a><br>
<a href="mysettings.php">Settings</a><br>
<a href="logout.php">Logout </a>
<p>You can add more links here for users</p></div>
<? } ?>
You can add more links you want like submit etc..
Take a look at myaccount.php and see how this menu shows up on the left side.

9. Access Admin area

Just login as administrator with username admin and password admin123 and you will see Admin CP link below your myaccount.

You MUST change the password for admin once logged in.



Download PHP Login Script

Thursday, June 23, 2016

Creating a file based log system

If we have a website we would certainly want to know the impressions of our website visitors. 

In addition to knowing about information of visitors, a log file is also useful to help analyse the security.

I will go directly to explain the log system file in PHP script: 

<?php 
// checking the bowsers type 
$agent = $_SERVER [HTTP_USER_AGENT]; 

// * checking where the script is executed from -- GET (URL) 
$uri = $_SERVER [REQUEST_URI]; 

// * checking visitors IP 
$ip = $_SERVER [REMOTE_ADDR]; 

/ * checking where the script is referred from 
$ref = $_SERVER [HTTP_REFERER]; 

// * checking visitors proxy
$original = $_SERVER [HTTP_X_FORWARDED_FOR]; 

// * checking visitors connection 
$via = $_SERVER [HTTP_VIA]; 

// * variable date 
$dtime = date (r); 

// * note if  visitors use transparent Proxy 
// * Then the $_SERVER [HTTP_X_FORWARDED_FOR] will display the visitors IP 
// * otherwise $_SERVER [ REMOTE_ADDR] will display the Proxy 
// * For clear about Proxy i will explain in another tutorial 

// * This is a description of variable entry_line: 
$entry_line = "Time: $dtime | Original IP: $ip | Browser: $agent | URL: $uri | referrer: $ref | Proxy: $original | Connection: $via 
";   // * <- Attention! This must be a new line or you press enter to create a new line 

/ * "fopen ()" function for opening files, "a" is the most important.!, 
/ * This works if the file "trace.txt" does not exist in the server then PHP will create 
$fp = fopen ( "trace.txt", "a"); 

/ /* "fputs ()" function for writing into the log file 
fputs ($fp, $entry_line); 

// * "fclose ()" function to close the file 
fclose ($fp); 

?> 

This file based log system using php function is pretty useful instead of using mysql connection

Monday, June 20, 2016

Hazrat Baba Fareed Ganj Shakar R A By Khan Asif

Hazrat Baba Fareed Ganj Shakar R A By Khan Asif 

Hazrat Baba Fareed Ganj Shakar urdu
Hazrat Baba Fareed Ganj Shakar R A By Khan Asif  latest book in publication market . Hazrat Baba Fareed Ganj Shakar  is great sofi man . He preached a people to Islam with their sofi Education.
urdu book free download


Saturday, June 18, 2016

Creating a simple poll

We are going to create a simple poll that users may select what programming laguage they prefer (ASP or PHP)

First of all prepare four files as below:

1. asp.txt and then insert the number 0 in it as initial value. 
2. php.txt and then type the number 0 in it as initial value. 
Note:  Do not forget to insert the value 0 in the asp.txt and php.txt. This is very important so that the script works
3. create an image file poll.jpg with size 100x10px. This is to make the percentage of polling. 
This is also important to make our poll eye-catching. 
4. index.php and type in it the script below 

<title> Simple Polling </ title>
<style type="text/css">
<! --
. style1 (font-size: 24px)
. style2 (color: # 0000FF)
->
</style>
<form name="form1" method="post" action="index.php?content=polling">
<p>
Polling <label> <span class="style1"> </span> </label>
</p>
<p>
<label> Which web programming language do you prefer? </label>
</p>
<p>
<label>
<input type="radio" name="vote" value="php">
PHP </label>
<br>
<label>
<input type="radio" name="vote" value="asp">
ASP </label>
</p>
<p>
<label>
<input type="submit" name="Submit" value="Submit">
</label>
<br>
</p>
</form>
<?php
if (@$_GET[content])
{
$vote = $_POST[vote];
if ($vote == "") // if no choice yet
{
echo "You have not <font color=red> fill surveys </font>";
exit;
}
if ($vote == "php") // add 1 for  php
{
$open = fopen("php.txt", "r");
$read = fgets($open, 65535);
fclose ($open);
$open = fopen("php.txt", "w");
$read++;
fwrite ($open, $read);
fclose ($open);
}
if ($vote == "asp") // add 1 for asp
{
$open = fopen ("asp.txt", "r");
$read = fgets ($open, 65535);
fclose($open);
$open = fopen("asp.txt", "w");
$read++;
fwrite($open, $read);
fclose($open);
}
$open_php = fopen("php.txt", "r");
$readphp = fgets($open_php, 65535); // read the value for php
fclose($open_php);
$open_asp = fopen ("asp.txt", "r");
$readasp = fgets($open_asp, 65535); // read the value for asp
fclose($open_asp);
$total_user = $readphp + $readasp; // the number of voters
$persentase_php = ($readphp / $total_user) * 100;
$persentase_asp = ($readasp / $total_user * 100);
echo "Total voters: $total_user <br>";
echo "PHP:"; printf("% 1.0f", "$persentase_php"); echo "% <img src=poll.jpg width =$persentase_php  $height = 10 /> $readphp voters <br> ";
echo "ASP"; printf("% 1.0f", "$persentase_asp"); echo "% <img src = poll.jpg width =$persentase_asp  $height = 10 /> $readasp voters <br> ";
}
?>

Using the static Statement to Remember the Value of a Variable Between Function Calls


If you declare a variable within a function in conjunction with the static statement, the variable remains local to the function, and the function "remembers" the value of the variable from execution to execution





<?php
function numberedHeading($txt) {
static $num_of_calls = 0;
$num_of_calls++;
echo "<h1>".$num_of_calls." ". $txt."</h1>"; }
numberedHeading("Mobile Phones");
echo "<p>We build a fine range of mobile phones.</p>";
numberedHeading("Camera");
echo "<p>Also Digital Cameras..</p>";
?>

The numberedHeading() function has become entirely self-contained. When we declare the $num_of_calls variable on line 3, we assign an initial value to it. This assignment is made when the function is first called on line 7. This initial assignment is ignored when the function is called a second time on line 9. Instead, the code remembers the previous value of $num_of_calls. We can now paste the numberedHeading() function into other scripts without worrying about global variables.

TinyCMS A Content Management System PHP Script

TinyCMS PHP Script is pretty much a page content management system with a fancy front-end page loader.

 Installing TinyCMS

To install TinyCMS php script, upload the files to your server and youre ready to roll. Visit YourSite.com/admin/ and use the default login details. The default username is admin and the default password is pass.

Changes to file locations
Note for existing themes. Weve moved the JS files from yoursite.com/js to yoursite.com/admin/js to clean up the directories. If youre using a theme from our website, ensure the directories are correct or the site may not work correctly.

Download TinyCMS -A Content Management System In PHP

Friday, June 17, 2016

Creating a Simple Pagination Script using PHP PDO with jQuery

hi there, this tutorial will cover creating a simple pagination script using PHP MySQL with jQuery, i have used here "bootpag - jQuery plugin for dynamic pagination" this plugin is easy to use which creates dynamic pagination with jQuery using PHP, when we have number of records in MySQL table, we must paginate them, we already have a pagination tutorial using PHP OOP and PDO without jQuery, now in this tutorial i have used jQuery which makes pagination easy, so before proceed you can see live demo of jQuery pagination or you can download and try it, have a look.
Creating a Simple Pagination Script using PHP PDO with jQuery
Read more »

Sunday, June 12, 2016

PHP Mass A Real Estate PHP Script

The PHPMass php script Framework is actually is the foundation of the rest of the PHPMass Products and is made up of various well organized software libraries as a re-usable design for a software systems.

Because it is loaded with translation tools, the Real Estate Website can be easily translated in any other language than English.

The PHPMass Real Estate is a software package used by real estate companies to promote properties. It is extremely easy to use but full of useful features in sales success..

The Real Estate Software is structured in 2 parts:

  •     The frontend - that includes the properties database, maps with states and cities.
  •     The backend - (administration) gives you tools for managing properties, categories, maps, cities, states and zip codes.

System & Software requirements
  •     Linux OS - and recomanded
  •     Microsoft Windows
  •     A minimum of 15 MB of available space
  •     PHP - version 5 (v4 is also supported via PHP_Compat)
  •     MySQL Database - a minimum of v3.23
  •     Webserver - Apache Webserver is recommanded with mod_rewrite
  •     Cron daemon - Necesary to process the email queue and the search index

Download Real Estate PHP Script

Saturday, June 11, 2016

Jinnat Ka Beta B A Nagi

Son of Jinnat novel urdu
This Nice Novel Book Was Published in family magazine but people facility  Writer of this Story Convert this into PDF Book Shape . Jinnat Ka beta Amazing and Interesting . So download Now

Sunday, June 5, 2016

How To Code A Simple Calculator In PHP

In this php tutorial you will learn how to make a simple PHP calculator
<?php

if($submit)
{
if($operator == *)
{
echo $numa * $numb;
} elseif($operator == /)
{
echo $numa / $numb;
} elseif($operator == +)
{
echo $numa + $numb;
} elseif($operator == -)
{
echo $numa - $numb;
}
} else { ?>
<form method="POST" action="<?php $_SERVER[PHP_SELF]; ?>">
<input type="text" name="numa" size="10">
<select name="operator">
<option value="+">Add</option>
<option value="-">Subtract</option>
<option value="*">Multiply</option>
<option value="/">Divide</option>
</select>
<input type="text" name="numb" size="10">
<input type="submit" value="Calculate" name="submit">
</form>
<?php } ?>
If you have any suggestions regarding the script please feel free to share it with us.Feel free to edit the above script to suit your personal needs.

Subscribe to our blog and we will email you similar interesting php scripts as soon as it is published.

Beside you could also refer to our PHP Interview Questions Series.

Enjoy!

PHP CAPTCHA Script A Simple But Effective Free CAPTCHA Script in PHP

PhpCaptcha php script is a library for generating visual and audio CAPTCHAs (completely automated public Turing test to tell computers and humans apart). You can read more about CAPTCHAs at Wikipedia.

It can help you to prevent/reduce:

  •     Automated sign-ups in registration forms.
  •     Comment spam in blogs and guestbooks.
  •     Brute force attacks on login systems.


A Word of Warning

OK, so this might sounds strange given what follows but please consider whether you really need to use a CAPTCHA before implementing this on your site. Although its legitimate to use CAPTCHAs in some situations you really need to be aware of the inherent accessibility pitfalls before implementing. Id also encourage you to fully investigate the alternatives such as the Akismet spam filtering WordPress plug-in and API before resorting to a CAPTCHA to solve your spam problems.

Right, Ive said my piece - on with the script.

Origins

The library is loosely based on an article I wrote for SitePoint which was published on 9th November 2005 - Toughen Forms Security with an Image.

Supported Features

  •     Multiple random TrueType fonts
  •     Character rotation
  •     Optional chararacter shadow support
  •     Optional site owner display text
  •     Random custom background images
  •     Font size selection
  •     Greyscale or colour lines and characters
  •     Character set selection
  •     Integration of validation function for checking the user entered code with the generated code

Requirements

The library requires PHP 4 compiled with GD 1 or 2 (Image Generation) and FreeType text support. It should work fine with Linux, Mac OS X or Windows based systems although you will need to change the default temporary file storage directory specified when using with Windows. PHP session support is also required. The audio CAPTCHA requires the Flite text to speech synthesis engine - more details on set up below.

License

PhpCaptcha is licensed under the Free BSD license.

Implementation Steps:

Step 1

Unzip and copy the php-captcha.inc.php to a directory within your site.

Step 2

To create a basic visual CAPTCHA with the minimal options create a new file (visual-captcha.php) containing the code shown below.


 <?php
require(php-captcha.inc.php);
$aFonts = array(fonts/VeraBd.ttf, fonts/VeraIt.ttf, fonts/Vera.ttf);
$oVisualCaptcha = new PhpCaptcha($aFonts, 200, 60);
$oVisualCaptcha->Create();
?>

Step 3

To create an audio CAPTCHA create a new file (audio-captcha.php) containing the code shown below. For this to work youll need to ensure that your have a working installation of Flite.
 <?php
require(php-captcha.inc.php);
$oAudioCaptcha = new AudioPhpCaptcha(/usr/bin/flite, /tmp/);
$oAudioCaptcha->Create();
?>

You need to pass the path to the Flite binary and the temporary directory you want to use for storing generated audio CAPTCHAs to the class constructor. Alternatively you can modify the corresponding constants in the library file and then omit the parameters in the constructor.

Step 4

Include the visual and audio CAPTCHAs in your application/form with the following code. The audio CAPTCHA should ideally follow the visual CAPTCHA in the source code. This will ensure the visual CAPTCHA has generated a random code before the audio CAPTCHA is called.


 <p><img src="visual-captcha.php" width="200" height="60" alt="Visual CAPTCHA" /></p>
<p><a href="audio-captcha.php">Cant see the image? Click for audible version</a></p>

Step 5

On form submission you need to check the code the user enters with the one generated by the CAPTCHA. You can do this with the following code assuming that the user entered code was submitted in an HTML POST form field "user_code".


 <?php
require(php-captcha.inc.php);
if (PhpCaptcha::Validate($_POST[user_code])) {
echo Valid code entered;
} else {
echo Invalid code entered;
}
?>

Please note that the Validate method needs to be called statically, i.e you dont create an instance of the class before calling it.

Configuration Options

  1. SetWidth(int iWidth) - set the width of the CAPTCHA image. Defaults to 200px.
  2. SetHeight(int iHeight) - set the height of the CAPTCHA image. Defaults to 50px.
  3. SetNumChars(int iNumChars) - set the number of characters to display. Defaults to 5.
  4. SetNumLines(int iNumLines) - set the number of interference lines to draw. Defaults to 70.
  5. DisplayShadow(bool bShadow) - specify whether or not to display character shadows.
  6. SetOwnerText(sting sOwnerText) - owner text to display at bottom of CAPTCHA image, discourages attempts to break your CAPTCHA through display on porn and other unsavoury sites.
  7. SetCharSet(variant vCharSet) - specify the character set to select characters from. If left blank defaults to A-Z. Can be specified as an array of chracters e.g. array(1, G, 3) or as a string of characters and character ranges e.g. a-z,A-Z,0,3,7.
  8. CaseInsensitive(bool bCaseInsensitive) - specify whether or not to save user code preserving case. If setting to "false" you need to pass "false" as the second parameter to the "Validate" function when checking the user entered code.
  9. SetBackgroundImages(variant vBackgroundImages) - specify one (a string) or more (an array) images to display instead of noise lines. If more than one image is specified the library selects one at random.
  10. SetMinFontSize(int iMinFontSize) - specify the minimum font size to display. Defaults to 16.
  11. SetMaxFontSize(int iMaxFontSize) - specify the maximum font size to display. Defaults to 25.
  12. UseColour(bool bUseColour) - if true displays noise lines and characters in randomly selected colours.
  13. SetFileType(string sFileType) - specify the output format jpeg, gif or png. Defaults to jpeg.
The methods listed below allow you to refine the look and feel as well as the behaviour of the generated CAPTCHA. They should all be called before the "Create" method.

Download Free PHP CAPTCHA Script

Saturday, June 4, 2016

Optimize All Tables In A MySQL Database

If you have a database driven site and you want to optimize MySQL tables then this is perfect. It goes through all the tables in a MySQL database and does table optimization on each one using the MySQL Optimize Table syntax.

<?php 
dbConnect() 
$alltables = mysql_query("SHOW TABLES"); 
while ($table = mysql_fetch_assoc($alltables)) 
   foreach ($table as $db => $tablename) 
   { 
       mysql_query("OPTIMIZE TABLE ".$tablename."") 
           or die(mysql_error()); 
   }     
?>



Aardvark Topsites PHP Create A Digg Like Voting Site With This PHP Script

A topsites list ranks a group of related sites by popularity. Webmasters join the topsites list and are given a button to put on their site and link back to the topsites list. Aardvark Topsites PHP is a free topsites script built on PHP and MySQL. It is licensed under the GNU General Public License so it will always remain completely free. Its functionality compares favorably with other free and commercial scripts, including these key features:

Stats

  •     Counts pageviews, hits in, and hits out
  •     Stats for individual members and overall stats for the entire list are easily accessible

Security
  •     Robust anti-cheating protection
  •     A security question, CAPTCHA, and other layers of protection thwart spambots

Easy to use and customize
  •     Simple 4-step installation process
  •     Control every aspect of the script from the secure admin area
  •     100% customizable skins using only HTML and CSS (no PHP knowledge is required)
  •     Members easily access their account and view statistics in an integrated control panel
  •     Works on nearly all commercial web hosting plans
  •     Having trouble? Try the detailed manual or the active support forum

Cool, innovative features
  •     Members ranks can be shown on their buttons, along with any other stat
  •     SEO-friendly links make your topsites list rank higher in Google and other search engines

Download Aardvark Topsites PHP Script

Friday, June 3, 2016

Sunhery Aqwal Hazrat Ali A S Quotes Urdu Pdf Download

Sunhery Aqwal Hazrat Ali A.S


aqwal zareen of Hazrat Ali A.s For you
This book is contain a lot of quotes of Imam Ali A.S . Many people want a quotes books  in urdu so i  posted this book for my dear user. I hope you will enjoy this book as Hazrat Ali (RA) Kay Hundred 100 Qissay.



Commentics A Free PHP Comment Script

Commentics is a free, advanced PHP comment script with many features. Professionally written and with open source code, its main aims are to be integrable, customizable and secure. It is designed to be integrated into your existing pages.

Why use it?

Fresh and relevant content not only helps in retaining visitors but also in keeping search engines interested. For the reasons below, Commentics is an ideal choice for this. Use it on your articles or even as a standalone comments page.

Installation

Before beginning the installation, make sure that you have the following:
  • A text editor to edit the files. Notepad is okay or you can use a source code editor like Notepad ++.
  • An FTP application to upload the files. FileZilla (client) is a good choice.
In the steps below, remember to replace domain.com with your actual domain name.

Step 1: Download

Download Commentics to your computer and unzip the folder. 7-Zip is a good, free application to unzip with.

Step 2: Create Database

Next you will need to create a database for Commentics to use. You can do this in your website control panel such as cPanel. It may also be possible in phpMyAdmin. Please consult your control panels documentation for instructions, or contact your host for support. You will need to supply a name for the database. This can be anything you like but commentics or comments are suitable examples. Make a note of the name as you will need it next. You should give at least the following privileges to your MySQL user: SELECT, INSERT, UPDATE, DELETE, CREATE, ALTER, INDEX and DROP.

Step 3: Database Details

Open the folder that you downloaded and unzipped and navigate to the following file: comments/includes/db/details.php. You should see a section titled Enter Database Information Here. In this section will be several settings:
  • $cmtx_mysql_database This is where you enter the name of the database you created, e.g. $cmtx_mysql_database = commentics;
  • $cmtx_mysql_username This is the username your host gave you for accessing your database.
  • $cmtx_mysql_password This is the password your host gave you for accessing your database.
  • $cmtx_mysql_host This is usually localhost. Sometimes it may be an IP Address.
  • $cmtx_mysql_port Normally you can leave this blank, unless your host instructed you to specify a port number.
  • $cmtx_mysql_table_prefix Normally you can leave this blank. If for some reason you could not create a new separate database for Commentics, you can use an existing database and enter a prefix for its tables so that they dont conflict with the existing databases tables.
Once you are finished entering these settings, please save and close the file.

Step 4: Upload

Now that you have the script ready, you can start to upload it to your website. To do this, open your FTP application and connect to your website. You should see two windows; one showing the files on your computer, and another showing the files on your website. In the window showing your computers files, navigate to where you have the /comments/ folder located (note that this folder is inside the /commentics/ folder so dont upload the /commentics/ folder). In the window showing your website, navigate to your root (home) directory. Once you have the two windows prepared, simply drag across the /comments/ folder over to your website. The upload process may take several minutes. Once complete, you should see the /comments/ folder amongst your website files/folders. It is important not to rename the /comments/ folder.

Step 5: Permissions

The next step is to give the database file the correct permissions. Using your FTP application, navigate to the following file on your website:
http://www.domain.com/comments/includes/db/details.php
Right-click on the file where an option such as File permissions should be available. If you are able to enter a numeric value, please type in 444. This should work for the majority of servers. If you can not enter a numeric value, make sure that no Write or Execute permissions are set, only read. Instead of using FTP, you may need to do this in your websites control panel, e.g. cPanel. There should be a feature such as File Manager. If on a local server, you can simply right-click on the file, click properties and select read-only.

Step 6: Rename Admin

For added security you should now rename your admin folder:
http://www.domain.com/comments/admin/
This will keep it hidden from people who may want to try to access it. You can rename the folder using your FTP application. Please dont rename it to admin2 or myadmin as this defeats the purpose. Rename it to something difficult to guess but something that you will remember.

Step 7: Installer

The final part of the installation process is to run the Installer. This will add all of the necessary tables into the database that you created. To run the Installer, open up your web browser (e.g. Internet Explorer) and go to the following address:
http://www.domain.com/comments/installer/


Download Commentics PHP Script