My PHP Script Site

I have been developing in PHP for around 5 years now and have been selling scripts for about that long too. The website is EdgePHP.com. These last couple of years I got very involved in helping others develop and maintain sites and sort of put Edge PHP on the back burner.

But lately I have been putting a lot of effort into it and it shows. The site’s pagerank is back up to 3 and the Alexa rank, whick is steadily falling fast, is at 238,683.

A I recall, the highest pagerank ever for the site was a pr4 with an Alexa rank of somewhere around 78,000. That is around the time I shifted into neutral and started coasting.

I have developed several [...]

Continue reading My PHP Script Site

EZFetch Web Fetching PHP Script

EZFetch is a new,  simple web fetching script that allows you to grab content from other sites and include on yours. Here’s a good real example of how to use EZFetch.

EZFetch Demo

So, if you are itching to scrape some content because there’s no other way to get your hands on it (and you know you are) give this script a try.

PHP Movie Listings Script

MyMovies is a great script for adding movie listings to a website. However, I must say first that MyMovies is not meant to be a big time global service for use by people coast to coast and I hope you are not thinking you have a shot at that anyway.

But if you have a small community website that could benefit from movie listings you shoud give MyMovies a look. One of the cool things you can do is have the main page open to a particular zip code so people in your community would not even have to search Another cool thing is that the main search page sets a cookie that rememb the user’s last search.

How does MyMovies work. [...]

Continue reading PHP Movie Listings Script

Unlimited Domain Web Hosting

Why get a single domain hosting plan when you could host multiple or even unlimited domains without paying too much more. Sometimes plans like this are called “reseller” plans. But that does not mean they must be resold at all, altghough you can do that. Many plans now are simply labeled “Unlmited Domain”. With any unlimited domains account, you can just add domains at will without paying more or asking permission.

Unlimited domain hosting is the way to go even if you have only one domain now. In most cases it won’t cost you much more and will offer the flexibility to quickly add domains whenever you feel like it.

I have researched all the hosts below and they all offer good [...]

Continue reading Unlimited Domain Web Hosting

Blogs Were a Game Changer

As recently as a few years ago (eons in web time) many of the web’s most prolific gurus were recommending huge amounts of dynamic content as the way to create traffic. Flypaper, as it was called. And mostly duplicate content. I did a lot of that business and business was good. After all, you pretty much needed a programmer for any of that.

Content management systems always help some promise but who could have known it would be like this. Now, some of the most popular sites on the web scarcely need a webmaster or even be professionally hosted for that matter. Just upload Wordpress and  you are good to go.

Now those who churn out word rule the day. And those [...]

Continue reading Blogs Were a Game Changer

Text File Based Polling System - No Database Required

Here is a quick and dirty polling system that requires no database.

Create a text file named “polldata.txt” with a question and answers in the following format.

What is your favorite color?
red:0
green:0
blue:0
yellow:0
orange:0
black:0
white:0

Then create a PHP page with the following code.

<?php

$pollQuestion = ”;
$answers = ”;

function readData(){
global $pollQuestion,$answers;
// Read configuration
$rawdata = file(’polldata.txt’);
// Get the question for polling
$pollQuestion = $rawdata[0];

// Get number of answers – The foirs row is the question
$numberOfAnswers = sizeof($rawdata)-1;
$count = 0;
for ($i=1; $i <= $numberOfAnswers; $i++){
$answerData = explode(’:’,$rawdata[$i]);
// If tha actual row is not empty than add to the answers array
if (strlen(trim($answerData[0]))>0){
$answers[$count]['text']  = $answerData[0];
$answers[$count]['count'] = $answerData[1];
++$count;
}
}
}

function writeData(){
global $pollQuestion,$answers;
$file = fopen(’polldata.txt’,’w’);
fwrite($file,$pollQuestion.”\r\n”,strlen($pollQuestion));
foreach ($answers as $value) {
$row = $value['text'].’:’.$value['count'].”\r\n”;
fwrite($file,$row,strlen($row));
}
fclose($file);
}

readData();
?>

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “DTD/xhtml1-transitional.dtd”>
<html>
<head>
<title>Micro Polling System</title>
<link href=”style/style.css” rel=”stylesheet” type=”text/css” />
</head>
<body>
<div id=”main”>
<?php if [...]

Continue reading Text File Based Polling System – No Database Required

Modern Telecommuter

Modern Telecommuter is a site I’ve been developing for a while. The whole idea for the site came about as I was surfing Craigslist for telecommuting jobs. I considered it a bit frustrating that I had to search each separate locale.

Telecommuting jobs, for the most part, do not require living in any particular area. Therefore, it should be an improvement to have them all in one place, sorted only by category.

So, each night, the RSS feed for telecommuting jobs is downloaded and parsed into MySQL. Sitemaps are automatically generated for each category and the new listings posted to the site’s Twitter page.

Of course, to contact the original job poster requires a trip directly to Craigslist, and each listing contains the [...]

Continue reading Modern Telecommuter

Many Features of Google Apps Calendar API Require Premium Subscription

I think Google Apps compares pretty well to just about anything else out there and the price for the standard version, free, is obviously great. Keep in mind though, that if you want do manipulate calendar data from your own domain, you will need to subscribe to premium.

Data API Developer’s Guide: JavaScript

Compare Standard and Premium

If you can do without that kind of integration, standard should do just fine But here’s just one example where premium is required.

Say, you have a calandar application in use on your website with extra fields that don’t exist in Google Calendar. Before you can start thinking about combining the two, you will need a premium subscription.

PHP Code For Including Remote Content

If you ever need to include content from another domain in your web page, this code will come in handy  because it offers two options. First, the script checks to see if curl is available and then falls back on file_get_contents. Between the two, you should be able to get the content.

$page = ‘http://www.domain.com’;

if (function_exists(’curl_init’)) {
$ch = curl_init($page);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
@curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
curl_setopt($ch, CURLOPT_REFERER, ”);
$code=curl_exec($ch);
curl_close($ch);
} else {
$code = file_get_contents($page);
}

echo $code;

PHProxy Is Your Own Proxy Server

PHProxy is a cool open source web application that’s a breeze to use and even easier to install. Just upload and use.  If you want it all to yourself just password protect with .htaccess.

PHProxy is available at http://sourceforge.net/projects/poxy/.

PHProxy

Visitors Online