Internet Marketing, Web Development and Programming Stuff

Posts in the ‘HOWTO’ Category

thumbnail

Simulate Neural Networks with PHP

Modern usage of the term, “neural networks” refers to artificial neural networks, which, in short are, interconnected artificial neurons or programming constructs that simulate the properties of biological neurons. Neural Mesh has developed a PHP-based neural network framework for simulating and administrating artificial neural networks. Still there? In other words, they have created a system …

thumbnail

Remove WordPress Post Revisions for Database Optimization

Ever since WordPress introduced autosaving and revision control features, larger blogs have seen a significant increase in the size of their databases. If your WordPress installation has slowed dramatically or you are simply looking to optimize your database by removing countless records you’ll never end up actually needing, run the following query on your WordPress …

thumbnail

Find Out if an SEO is Lying in Five Steps

I’ve had my fair share of run-ins with unethical car repair shops but a recent experience made me realize that there’s an analogy to be drawn between shady SEO salesmen and shady auto mechanics. To test this I simply copied an article from eHow titled, “How to Tell if a Mechanic is Lying” and made …

thumbnail

Chunk Data for Easier Scraping

Before you spend an hour writing some elaborate regular expression, try chunking the data and matching several expressions to make for a much simpler (and faster) scrape. So, assuming you’re using PHP, after you’ve pulled the data (e.g. with file_get_contents()), use preg_replace with the following regex to chunk the data into a much easier “soup” …

thumbnail

Force Google to Show “Latest results for…”

If you’ve read the article at Vizion Interactive about how to force Google into showing the “Latest results for…” (also referred to as, “Real-time results”) in the search results and felt like it left you, well, wanting more, then here’s how it’s done. Simply append, “&tbs=rltm:1″ to Google’s url for their search results. For example: …

thumbnail

Fake Your Google PageRank

Every SEO has seen the Dark SEO PR 10 page (which is banned and probably has been for a long time now) and regardless of whether they’ll admit it, have always wanted to give it a shot. Here’s the code: <?php $agent = strtolower($_SERVER['HTTP_USER_AGENT']); if(strpos($agent, “google”) != “”) { header(“HTTP/1.1 301 Moved Permanently”); header(“Location: http://www.w3.org/”); …

thumbnail

Use PHP Scripts in 3 Steps

Here’s a simple three-step process for using/running PHP scripts on a Windows machine. Download/Install WampServer. Place script.php into the www directory of your wamp install. If you did everything default it should be located at c:\wamp\www Run the script by pointing your browser at: http://localhost/script.php. In other words consider the “http://localhost/” to be your domain …