New Seo Analysis Tool

SEO Analyzer Tool is to help you analyze and measure the ranking potential of your web pages.

SEO Analyzer Tool Features:
• Quality thumbnail of web page
• Site Diagnostics - detailed information for homepage (HTML Size, Title, Description, Keywords, ...)
• W3C Validation - Checking for valid HTML, CSS2 and CSS3
• Geolocation Information - IP, Country, State, Local Server Time
• Geolocation Map with Google Maps
• Realtime Server Information
• Ranking of the selected web page - Google PageRang & Alexa Traffic Rank
• Indexed pages - report showing how many pages of your website has been indexed by the search engines so far
• Backlinks - incoming links to a website from search engines
• Links from the social bookmark web sites

Preventing SQL Injection with MySQL and PHP

Most new web developers have heard of SQL injection attacks, but not very many know that it is fairly easy to prevent an attacker from gaining access to your data by filtering out the vulnerabilities using MySQL extensions found in PHP. An SQL injection attack occurs when a hacker or cracker (a malicious hacker) attempts to dump the data in a database table in a database-driven web site. In an unprotected and vulnerable site, this is pretty easy to do.

In order for an SQL injection attack to work, the site must use an unprotected SQL query that utilizes data submitted by a user to lookup something in a database table. The data could be from a search box, a login form or any type of query used to look up data using data input by user. It also means that querystring data used to query a database can create vulnerabilities.

Easy Way to Create Unique Hits Counter With PHP

Open Notepad or your favorite text editor and create a blank dobument called hits.txt. Now upload it to you website directory, make sure to put it in the same folder as the php page containing the hits code.
You must CHMOD this file to 777 - This simply means that it doesn't need specific permissions for the file to execute.

Add the following code to a blank file and call it counter.php:
<?php
$filename = "hits.txt";

$file = file($filename);
$file = array_unique($file);
$hits = count($file);
echo $hits;

File Creator/Editor

Create a form that makes and/or adds data to files on your server. Could be useful in creating a simple guestbook and free for all links flat file database.

With this code, you can make a form that writes to a file. You can create files of just about any type, because you can define the file name. You need to be sure that you are in a Linux server and have CHMODed the directory to 777. This tutorial is broken into two parts, one for the form, and one for the action for the form. The form part is easy enough. On an HTML page, copy paste the following form. Save it in the same directory as you will want to create your page. The form has input fields, such as the file name and body of the file you are creating and the submit button:

<form method="post" action="action.php">
<input type="text" name="filename" value="File name"> <br>
<textarea name="theText" cols="35" rows="15">Some text</textarea> <br>
<input type="submit" value="Post Data">
</form>

PHP - String Capitalization Functions

If you've ever wanted to manipulate the capitalization of your PHP strings, then this lesson will be quite helpful to you. PHP has three primary capitalization related functions: strtoupper, strtolower and ucwords. The function names are pretty self-explanatory, but why they are useful in programming might be new to you.

Converting a String to Upper Case - strtoupper

The strtoupper function takes one argument, the string you want converted to upper case and returns the converted string. Only letters of the alphabet are changed, numbers will remain the same.

CODE:
$originalString = "String Capitalization 1234";
$upperCase = strtoupper($originalString);
echo "Old string - $originalString";
echo "New String - $upperCase";