Showing posts with label script. Show all posts
Showing posts with label script. Show all posts

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

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!


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

Monday, June 27, 2016

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

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

Script Hit Counter In PHP

PHPGcount is a PHP graphical hit counter. It uses flat-text database so no SQL databases are necessary. It comes with many styles to choose from and you can add your own styles easily! It can count hits for multiple pages of your website or even websites on other servers. With the help of cookies it can count unique visits only.

The count is displayed on the page using a simple Javascript code.

Unlike other graphical hit counter scripts PHPGCount will work even on servers that dont have GD library enabled (this library is usually required by other scripts).


Download PHP Hit Counter


Saturday, June 25, 2016

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

PASTE Pastebin Clone Script In PHP

Paste is an open source pastebin forked from the original pastebin.com script complete with a brand new design and features such as password protected pastes, archives and custom templates. An admin panel, installer and much more is still to come.

Download PASTE- Pastebin Clone Script In PHP

Friday, June 24, 2016

Anti spam Image Generator PHP Script Protect Your Blog From Spammers And Bots

Anti-spam Image Generator php script will render PNG image with code to protect your blog/comments/feedback section from spammers and bots (known as CAPTCHA).

Requirements:
  • PHP 4.0.6
  • GD 2.0.1 or later
  • TTF font to use for rendering code. By default it uses arial.ttf. You can find it online.

Features:
  • You can define characters set to use (by default 0123456789)
  • Customizable code length (default is 6)
  • Easy to use / light server load, not overloaded with features

Sample usage:
  • Add this html code where you want to place antispam image: <img src="http://www.website.com/path/to/antispam.php">
  • Add field to the html form to enter code, name it anti_spam_code: <input name="anti_spam_code">
  • Add following check in the php code to check if user entered CAPTCHA correctly:
@session_start(); // start session if not started yet
if ($_SESSION[AntiSpamImage] != $_REQUEST[anti_spam_code]) {
// set antispam string to something random, in order to avoid reusing it once again
$_SESSION[AntiSpamImage] = rand(1,9999999);

// here you add code to let user know incorrect code entered
...
}
else {
// set antispam string to something random, in order to avoid reusing it once again
$_SESSION[AntiSpamImage] = rand(1,9999999);

// everything is fine, proceed with processing feedback/comment/etc.

...
}

Download Anti-spam Image Generator PHP Script

Web Directory PHP Script

NinjaLinks is a web directory script designed to help you organise lists of links in categories and sub-categories. It utilises PHP, and MySQL. NinjaLinks is easy to edit, full-featured and secure.

  • complete category management
  • link management including pending links
  • allows optional link buttons with submitted links
  • allows optional link description
  • tree like system allows viewing by category
  • optional notification emails for link owners
  • pagination of links in admin panel and public directory
  • secure button uploads
  • spam protection and data validation to prevent malicious input
  • contact form
  • optional nofollow attribute for links
  • hits out counter
  • update form for users to manage own links

Download Web Directory PHP Script

Thursday, June 23, 2016

Social Dating Website PHP Script Start Your Own Social Dating Site for Free

The pH7 Dating CMS is a PHP CMS with an architecture MVC (Model-View-Controller).
It is designed with the KISS principle in mind, and the entire source code can be read and understood in minutes, PDO (PHP Data Objects) abstraction allows choice of databases and is a principle of CMS developement DRY (Dont Repeat Yourself) aims at reducing repetition of information of all kinds (Not duplicate code).

It also wants to fast, low resource-intensive, extremely powerful and very secure.

pH7 Social Dating Softwares Features

  •     Easy, fast and intelligent
  •     Our software is very fast, intelligent, secure, and it has a spam detect system.
  •     Very Fun
  •     Our software is very fun for you and yours visitor!
  •     Dating Service & Community Website
  •     pH7 Social Dating is perfect for the dating site and social community portal.
  •     Multi Theme and many personalizable
  •     Build a unique theme and record time with the architecture of our CMS. 
Download pH7 Social Dating PHP Script

DRBPoll PHP Poll Script

DRBPoll is a free and simple PHP poll script that doesnt require a database. It allows you to put a poll form on virtually any page on your web site. The results page displays a colored bar graph of the votes. The look-and-feel of the poll form and results page can be customized using a standard CSS file. Data is stored in flat files, therefore no database is required.

Features

  • Quick and easy to install.
  • The poll data is stored in flat files, so no database is required.
  • Prevents the same IP address from voting on a poll more than once.
  • XHTML syntax compliant, and compatible with both IE and Firefox.
  • Colors and fonts are defined in an ordinary, customizable CSS file.
  • The script is highly configurable and customizable.
  • Multiple polls on the your site can utilize the same instance of the script.
  • Poll options can be rendered as either radio buttons or a combobox.
  • Includes an example page demonstrating how to add a poll to virtually any PHP page on your website.

 Download PHP Poll Script

Wednesday, June 22, 2016

cPanel Subdomain Deletion Script Delete cPanel Subdomains In PHP

Designed to delete cPanel subdomains on cPanel hosting.

Input:

  • cPanel account username
  • cPanel account password
  • cPanel skin
  • list of subdomains to be deleted in the plain text file (for bunch subdomains delete)

Update program header with above settings and php script is ready to use.  

Usage: (you can use this script in either way)

  • Open script in browser and fill the form data
  • Pass all information via URL (form will not appear in this case)
    Example: subdel.php?cpaneluser=USER&cpanelpass=PASSWORD&domain=DOMAIN&subdomain=SUBDOMAIN
  • List all subdomains to be deleted in the plain text file
Note: If script cannot find file with subdomains and no parameters passed via URL then it will show input form.

Download Delete cPanel Subdomain PHP Script

Tuesday, June 21, 2016

MP3 Search Engine PHP Script

BeeMP3 Clone MP3 Search Engine Script is a Free MP3 search script. The script is written in PHP and can be installed on any server. No bandwidth is used. Script fetches MP3 Content from other music sharing


Download MP3 Search Engine PHP Script

Monday, June 20, 2016

Pop Under PHP Script

This class can be used to display interstitial advertising. It generates HTML and JavaScript that makes an advertising page appear on the current page and then automatically disappears if the user clicks on the skip link or does not click on the advertising after a few seconds. The advertising display time is configurable. The same user may also not be exposed to the same advert for until a given period. The class may invoke a given callback function when the user clicks on the advert or in the skip links.

Download Pop Under PHP Scripts

Free Hosting Manager Free Cpanel WHM Account Creator PHP Script

Free Hosting Manager is an open source CPanel/WHM Account Creator designed for free hosting companies. It is coded with PHP and MySQL. Our aim is to make free hosting management as easy, simple and hassle-free as possible.

Description

Free Hosting Manager V2.0 php script features a new client CP and a forced ads module!
Updated: 13th February 2009
New Features for V2.0

  •     Client Control Panel
  •     Forced Ads Module (More info)
  •     Admin CP - Client Management
  •     Support Tickets
  •     Manual Install Feature
  •     Language Files
  •     Template Files
  •     Accounting file included
  •     Several Bugs Fixed from V2.0 

Planned Features for V2.1

  • Download System
  • Knowledge Base Addon
  • SALT encrypted MD5 passwords
  • Updated Captcha Image
  • More features to signup keys
  • Link newsletter addon with clients
  • Fix possible email bug
 
 Download Free Hosting Manager -  A Web Hosting Tool Script