Top

Count repeats of words/letters in a paragraph

September 30, 2007

This snippet counts how many words or letters there are in a paragraph/line of text.

<?php

$string = "Hello world!"; // Set the source of string, could be $_GET, $_POST etc as well.
$splitby = "chars"; // Set to "words" or to "chars"

$string = stripslashes($string);
$string = strtolower($string); // Makes H and h the same.

if($splitby == "words") {

$array = preg_split("/ /",$string);

} else {

$array = preg_split("//",$string);

}

foreach($array as $a => $k) {

$arr[$k] = $arr[$k] + 1;

}

foreach($arr as $a => $k) {

if($a == " ") { $a = "[space]"; }
if($a == "") { unset($a,$k); }

if($a != "" && $k != "") {

$a = htmlentities($a);
$k = htmlentities($k);

echo "$a - $k
\n"
;

}

}

?>

Demo at http://danltn.com/test/split.php - It’s doing Hello World and splitting per character. :)

Fantastic Real-Time Bulk Lookup Script for Domains

September 29, 2007

This is not the everyday script you’ve been seeing on the forums, this is much, much more advanced and UNIQUE

 

Demo at http://4t2.net

Example at http://4t2.net?examplelist

 

What features does this have?

- Option selection, allows you to choose what you search for, increases search times.

All scripts are provided ‘as is’. No warranty, or even implied warranty is given on any grounds (although it’s worked for everyone so far, free support is given, and if you can’t get it to work, I can install it free. If even then you have problems, Full refund.

- REAL TIME lookup: Sick of waiting till the [b]entire list[/b] is done so you can get your results. No more! The script outputs as fast as it receives the information. Don’t wait around! Get the stats as soon as you can!

- Logging to .TXT - Already done the search once? Don’t want to have to type in the URLs again? Good news! All results are logged to the /saves/ folder, (CHMOD 777 it.) - This means you can show the results to your friends etc, and if an option isn’t selected. It isn’t logged either.

- Logging to .CSV - Done the list? But you don’t want to show you friends so you don’t need .TXT - But you do what to manipulate the output in a spreadsheet program like GoogleApps, Excel or OpenOffice - Then it logs to a .csv with the same filename as a .TXT - Allowing easy access and manipulation of output data.

- Right to remove the Copyright - You MAY remove the Copyright OR change it however you like. :)

Please note, I can’t guarantee infinite, because not all servers are set up in the same way. Infinite is a very big number, it should however be able to cope with 100 easily.

- Column Sorting: Click the row headers to automatically order the results by anything you like, want the domains to be in alphabetical order? Order of lowest to highest PR? Highest to lowest Alexa Rank? It will be done smoothly and instantly, allowing easier viewing of data. Even better, it smoothly degrades in Javascript disabled browsers!

- Row and Cell highlighting - Sick of not knowing which row your looking up? Now it highlights the entire row with a subtle tone, allowing you to easily see what your looking up.

- Example List - At the click of a button, the text area can be instantly populated with the top 20 sites in the world, allowing users to view not only the status of the world’s greatest sites, but also allow them to use your script when their is no list. This means even someone who stumbles upon your site by accident can use it, without even a list to check. (This list is also good for demo uses)

- Help Guide - At the click of the button, a help guide (which I’m still writing, but you can change) will popup, allowing the user to see detailed instructions on how to use the powerful script. Even the most ignorant person can use this simple point and click script.

- Huge list of lookups - Not only can this script lookup:

- IP Address of server hosting the domain
- Alexa Rank
- Google PageRank
- D.MOZ listed
- Google Backlinks (How many sites does Google find that link to your URL)
- Yahoo! Backlinks
- AltaVista Backlinks
- AllTheWeb Backlinks
- Age of Domain
- Link to WHOIS Details
- Thumbnail which is activated on Rollover
Unique: Number of links on the page

- Link Browsing Feature: A new feature recently added, which I have dubbed the Link Browsing feature, this allows the user to find all the links on the page, and all the links on the pages linked to from that page, etc. Just click on the number of returned links to start this feature. Even better, this opens in a new window, so their results are not lost.

Finally…

This script isn’t just for sale with normal rights, I am also selling Resell and Master Resell copies.

Full refund if the script doesn’t work, and you allow me to try and install it, and even then it doesn’t work. If I can’t figure out how to make it work too, that’s when I’ll send it back.

Price list below: (PayPal accepted - I pay fees!)

Private copy: $9.95

Resale Copy: $29.95 - You can sell copies to others
Master Resale: $59.95 - You can sell this script, and sell it with RESALE rights, VERY POPULAR FOR MAKING MONEY ON OTHER FORUMS,

Any questions, please email me at: daniel @ neville.tk

 

==

 

Ready to buy?

 

Email me at.

daniel @ neville . tk

for instructions on how to buy!

Remove all duplicate words

September 19, 2007

Hi there, my latest script allows the user to remove all duplicate words entered into a text box.

A demo is here: http://danltn.com/test/uniqueexplode.php

Source is here: http://danltn.com/test/uniqueexplode.phps

Here is a test string you can use to test it:

This string can be used to test the script, this string is very effective at doing its job, as it has repeated words such as “the at as”.

Bonuses of this are it doesn’t allow server side usage, and it also keeps all punctuation in the sentence.

Next Page »

Bottom