Fun PHP Script to Mass Text Message People
** Legal Disclaimer – I’m sure this is illegal to some extent and as such I do not endorse it, I share the code purely for educational purposes and am in no way responsible for anything bad that happens to you by using the code, especially being beat up by your siblings or ex’s. **
( For a “prettier” code example please see my developer blog that has proper code highlighting: http://dev.blog.peterolds.es/2012/02/fun-php-script-to-mass-text-message/ )
#!/usr/bin/php -q
load($feedToLoad);
$output = $xmlDoc->saveXML();
$xml = new SimpleXMLElement($output);
$message = $xml->channel->title . ": ";
$message .= $xml->channel->item[ rand( 0, ( COUNT( $xml->channel->item ) - 1 ) ) ]->title;
echo $message;
$npa = AREA_CODE;
$exchange = FIRST_THREE;
$number = LAST_FOUR;
$email = rand( 10000, 99999 );
for ($i = 3; $i < count($argv); $i++){
$message .= $argv[$i] . " ";
}
$message = trim($message);
$messageLimit = 145;
if (strlen($message) > $messageLimit) {
$message = substr($message, 0, strrpos(substr($message, 0, ($messageLimit - 3)), ' ')) . '...';
}
$messageArr = array (
"npa" => $npa,
"exchange" => $exchange,
"number" => $number,
"email" => $email,
"body" => $message,
"submitted" => "1"
);
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, "http://www.txtdrop.com/vista_send.php");
curl_setopt($curl, CURLOPT_HEADER, 0);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_ENCODING, "gzip,deflate");
curl_setopt($curl, CURLOPT_POST, 1);
curl_setopt($curl, CURLOPT_POSTFIELDS, $messageArr);
curl_setopt($curl, CURLOPT_NOPROGRESS, 1);
$content = curl_exec($curl);
curl_close($curl);
echo "\n" . $content;
?>
Duxter’s first competition!
Quote: http://duxter.com/beta/blog/1/entry-16-new-weekly-prize-week-1-modern-warfare-3/
————————
We obviously aren’t in expansion mode yet, we are still diligently developing new features, and refining old ones. That being said, we recognize that the community is more fun for all of you, when your friends (and potential friends) are on Duxter. In order to help you get some of those people on board, we are starting a new weekly incentive prize. We are going to start this out by giving away 1 copy of MW3, if this turns out to be successful, we will create bigger, better, and MORE prizes. Hopefully this works out, we’d be happy to give away XBOXs, PS3s, games, and SWAG galore. Lets get this started off right.
Each week Duxter will be giving an award to the member who brings the most new members on.
Rules:
In order to gain credit for a new member, the member must join through your unique member link. These can be found in the “beta invites” logo in the site header. Whether you share the link, share on facebook, or email the link to a new user, you will get credit. The only time you won’t get credit, is if someone joins by word of mouth (as we cant track this)
Only individuals are eligible (no teams, groups, companies etc… We will be creating different incentive plans for you)
One registration per person. We track IP addresses, if you or one of your fiends attempt to register multiple accounts from the same computer, those additional accounts will NOT count toward your total
Prize:
The user who brings in the most new members will be entitled to 1 FREE copy of Call of Duty: Modern Warfare 3. Winner will be judged at 11:59 PST on Monday November 7th. If you have already pre-ordered this game, we WILL allow you exchange this copy of MW3 for another game of equal or lesser value. Game copy will be on ANY system you choose.
*Note you will receive more beta invites if you use all 20 of yours
————————
Now… I’m not trying to promote myself by any means (I’m a Duxter developer) but I strongly suggest you join Duxter so you too can earn cool prizes like this! Simply click on this link to register: http://duxter.com/3/1301521434
Spinning Image
A small Silverlight applet I wrote.
New Blog!
So I’ve decided to split my blog up into two parts. One which is this will be my personal random stuff blog and the new one (http://dev.blog.peterolds.es) will be mainly for my programming documentation that one might find. Hope you enjoy the less confusion!
Twitch.TV now supported on GamingSynergies
We’ve had a few requests to allow the embedding of Twitch.TV media streams on the site. And well.. I’m proud to say you can now input your Twitch Channel name and an embed window will be generated for you. To input your channel name simply edit your profile and at the bottom you should see something called Twitch Stream.
Strangely Enough a really fun song.
Ok as crazy as this sounds and as crazy as this song is, it’s really quite catchy. Enjoy.
Re: Is my computer all-knowing?
So a few days ago I was watching “The Tourist” using DivX and noticed that my computer was using 14.3 Gigs of RAM!… I suppose my computer cached the entire movie to my RAM.
Quote of the Day – September 22
Don't strive to make your presence noticed, but to make your absence felt.
In regards to the new FaceBook changes
- Friendly Facebook User- Facebook does Dr.Seuss -
Do you like your new profile?
Would you use it for a while?
Would you like it in your house?
Would you click it with your mouse?
Doesn't matter if you don't,
We just don't care if you won't.
Send your feedback here or there...
We won't read it anywhere!
We fix things that are not broke
'Cause we think it's quite a joke!
We're in charge of this whole scene.
Next we'll turn your profile green!!
Facebook changes are great.
Is my computer all-knowing?
So I just recently upgraded the RAM in my computer from 8 GB to 16 GB and was stoked at the possibilities I’d have – The main reason I upgraded is because my Ram was slowly starting to reach my 8 GB, with a few tasks open I was easily hitting 6 Gigs of Ram and there happened to be a sale on Newegg for Ram so I thought I’d upgrade… I guess it’s a good thing I did as now that I’m on 16 Gigs my computer seems to think it can be less efficient with it’s RAM. Currently I’m using 7,751 MB of Ram which would be seriously pushing my 8 GB lol..