Sponsored Tweets Challenge – Help Me Win and You Get Paid!

Sponsored Tweets has started a challenge to existing members to help bring in new members. The existing member that brings in the most referrals will win $1000. If I win, I will share it with the people that helped me get it! This will be going on for only a few weeks so I don’t have much time.

If I win the $1000, I’ll give $900 of it away! $300 will go to 3 random people that tweet out the link that is posted below and signs up with Sponsored Tweets. The link below will redirect to Twitter with the status that others need to retweet. There will be two links in the status update. The first goes to Sponsored Tweets to sign up and the second goes to this article to describe this competition. Feel free to change the status update anyway you like as long as you keep both links and the @dlbrown06 in it so I get notified that you tweeted it.

I’m pretty sure Sponsored Tweets is a fairly new service, but I have already made some money from it. Let me be clear that I didn’t have to spam the hell out of my followers to make money. The most Sponsored Tweets I have sent out in a day have been 2 and I don’t plan to ever go over that. I don’t want the people I follow to spam me so I certainly don’t want to spam my followers.

I’m confident that if you guys enjoy tweeting, you’ll like this service. Shoemoney showed that he made over $15,000 in ONE month using this. People would pay him a lot of money per tweet for his huge cult following.

So if you enjoy tweeting and there are a lot of people that enjoy reading your tweets, you don’t have anything to lose by trying this out. I’ll keep you guy posted on the results of this and if/when we win! If I do win the contest, that will begin my own contest to give out my prize winnings to the people that helped me get it.

IMPORTANT: Make sure you sign up to Sponsored Tweets with the same Twitter username that you used when you Retweeted the link. If you don’t I won’t know you did both!

MY ST PLUG: If you would like me to tweet about your business, just click, Tweet About Me!


Twitter Lists – Oh the Possbilities!

I have been using Twitter for a little while now and I think most of you can agree that the more time you put into it, the more you get out of it. Without Twitter I would have never connected with so many like minded people. After using the service for awhile I have started following a large number of many interesting people. Now that Twitter Lists has been added to Twitter, I can finally organize this following into groups.

Twitter made creating a new Twitter list so easy that anyone can take advantage of it. In the right sidebar of your profile, simply click the “New list” link. After this, a dialog box will pop up allowing you to name the list and choose whether your would like it to be public or private. Selecting a private list will only give you access to the list and no one else.

I immediately started four different groups that summarize my current four different interests. The lists that I have created I’ll be adding to and maintaining as time goes on. My four lists are:

  • PHP Tweeters: This list includes a majority of the most influential PHP developers and evangelists.
  • SEO Tweeters: Like the PHP list, the SEO lists includes some very noteworthy SEO specialists.
  • iPhone Tweeters: I have this list just because I have an iPhone and I’m interested in the apps, bug fixes and news.
  • Fun Tweeters: Right now, this list only has in the hosts to the 404 podcast. I’ll be adding other interesting tweeters to this list that don’t really relate to any specific category.

So feel free to follow these lists and if you feel like I am leaving some important Tweeters out of a Twitter List just leave a comment or contact me through the blog. Also please comment your lists that you think would be interesting for other people to follow.


Should I Move BrownPHP to my Own Server?

Boy oh boy has it been a long time since I last posted. I don’t have any excuses other than saying that I have been busy… My wife and I recently purchased a new home closer to my day job and painting/decorating has been time consuming to say the least.

Enough excuses.

If you own your own website, do you host it yourself? Does a third party host it for you? If your reading this, I think I can assume that you understand the advantages and disadvantages of the two options. I have made a few websites that run on a local networks, and I have setup the servers to handle this. I have created and maintained many external websites visible to Google and have hired many web hosting companies to serve these sites. However, I have never made an external website that is hosted from my own server.

Brownphp.com is currently being hosted with web hosting company, Dreamhost. I haven’t had a problem with them at all, but I have just had this desire to host my sites from my own home computer. I soon will be building a new server for the home, which will have more than enough horsepower to handle the sites. I also have a healthy supply of bandwidth through Comcast so I don’t believe that would be a potential bottle neck.

My only concerns are that I have no experience hosting a website from my home machine rather than a third party. Having no experience with this leaves me feeling a little unprepared in regards to what I am getting myself into.

One of my main questions is pointing Brownphp.com at my home computer. I already have my router set up to allow my home web server to be accessed remotely via punching in the home IP address. I just don’t know how to map the url to my home IP. Another potential problem is that I don’t have a static IP address. Are there any services that would help me get around this?

Why am I doing this when everything is already running fine? Because I want to learn how to do it. I am very experienced with PHP, MySQL and many other web languages/databases, but I don’t know how to host an external website from my own server. I could read every book in the world explaining how to do it, but if I don’t go down the rocky path and setup my own web server, I’ll never retain any of that information.

I was hoping that if any of you have had experience doing this, your knowledge would be greatly appreciated. Please comment with informative links, advice, warnings, etc. I would also like to continually update this post on my progress to help other programmers/tinkerers understand how to do this to eventually be a guide for others.


Oracle-Sun Acquistion Mean Death to MySQL?

I hope not! I think we can safely assume that so many other web developers out there are thinking the same thing. Let’s be honest. A free database solution does not fit into Oracle’s business model very well. So would Oracle have the wear-with-all to shut down MySQL if they did buy Sun?

I’ve been hearing speculation about this happening and I had to post about it. My educated prediction? No. Why would they? Sure they could shut down one of their main competitors, but could they handle the negative press and community backlash of such a power play? Bill Gate’s and Steve Job’s together couldn’t. I’m not sure of the statistics, but I would say over 80% (There is a 67% chance that the previously mentioned percentage is incorrect, and the latter for that matter.) of all the websites you see on the net today have a MySQL backend.

So why would Oracle want to alienate all of those users? To make them upgrade to Oracle? Hah! They would only protest against the overlord that burned down their MySQL home. Oracle would only push them to competitors. What do I think is going to happen?

Simple. Use MySQL to enhance their own business model. Brand MySQL as the personal site / small business owner’s database. Slowly evolve MySQL over time so that it would be very low overhead for someone to upgrade to Oracle. By overhead, I’m talking about the learning curve/resource upgrading. Think about it.

Let’s say you own your own online business. Your business takes off and you find out that you need a more robust database to handle tracking, etc. You could look at M$ SQL or since you knew MySQL so well, upgrading to Oracle is a no brainer because there is no difference to you as the developer.

I just see that as being a much more viable alternative than shutting it down. Using MySQL as a gateway to Oracle would online enrich their business model while making the MySQL community happy and dare I say, much more willing to upgrade to MySQL’s “Big Brother”.

On a side note, I just wanted to say thank you to all my readers who helped make my Twitter Cloud Service (Twitter Tag Cloud Service) so popular. I have notice how so many of you have added it to your blogs or have used the code to do your own Cloud. I just wanted to say thanks.


Jabber with PHP – Part I (XMPPHP)

The XMPP-Protocol (which is the official name of the “Jabber”-Protocol) is released under open source, Jabber itself has many advantages in comparison to other instant messaging protocols:

  • It’s open source
  • It’s based on plain-text, xml-style data
  • Everyone can set up a own Jabber-Server
  • It’s decentralized: There are now “central” servers

There are some implementation of this protocol for PHP:

  • XMPPHP (successor to class.jabber.php/CJB)
  • PHP Jabber Client

All these classes are using different approaches – so have a short look. In this article I want to talk about XMPPHP, the PHP Jabber Client will be discussed in the next one.

XMPPHP

Projectpage/Download: Google Code

This class uses CJB as base, it’s easier to use than CJB itself. Similar to CJB it uses the send-wait-read-model; your script will send a message to the connected Jabber-server, wait for a reply and read the reply from the server. This model is easy to use, you can use linear programming, no event-handling is required – but this model can be slow down your script if you will use Jabber extensive.

XMPPHP supports joining chat-rooms and TLS encryption – without much effort. (The sample on the project page is wrong – the parameters are not in a valid order!)

First a simple code example:

<?php
include("xmpp.php");

//username = user without domain, "user" and not "user@server" - home is the resource
$conn = new XMPPHP_XMPP('my.server', 5222, 'username', 'password', 'home');
// Enables TLS - enabled by default, call before connect()!
$conn->useEncryption(true);
$conn->connect();
$conn->processUntil('session_start');
$conn->message('someguy@someserver.net', 'This is a test message!');
$conn->disconnect();
?>

This script will do:

  1. Connect to the talk.google.com-Jabber-Server
  2. Wait until the connection is successful established
  3. Send a message to someguy@someserver.net
  4. Close the connection to the Jabber-Server

Sending a message to a single account is easy – but this call won’t work with a chatroom. For this you have to do this:

...
$conn->connect();
$conn->processUntil('session_start');
// Enter the chatroom
$conn->presence(NULL, "available", "chatroom@server/NickName");
// Send message to chatroom - "groupchat" is required!
$conn->message("chatroom@server", "Test!, "groupchat");
// Leave the chatroom
$conn->presence(NULL, "unavailable", "chatroom@server/NickName");
$conn->disconnect();
...

Finally: How to read messages sent from other users to the used account or within a group-chat? This is event-based, you have to wait for the message-event:

...
$events = $conn->processUntil('message');
foreach($events as $current)
{
  $data = $current[1]; // [0] contains the event type, here "message"
  echo "Message - From: ".$data["from"].", Text: ".$data["body"];
}
...

You can also listen for more than one event (just use an array of strings, so you can wait for “message” and “presence” for example). When joining a chat-room you have to mention you will get also some “older” messages, not only new ones. Additional processUntil() accepts a timeout in seconds as second parameter.

Tobias is a guest writer – visit his blog http://www.mashempires.com, he will launch his start up KnowYourEfforts (a time tracking web application) within few months. Follow Elchie on http://www.twitter.com


  • BrownPHP Tag Cloud

  • Copyright © 1996-2010 Brown PHP. All rights reserved.
    iDream theme by Templates Next | Powered by WordPress

    Powered by Yahoo! Answers