New here? Read Greetings Earthling!

Spoiled Lemur

It's killing me. My aunt has a cat that rolls over when you play with it. Pretty much like this creature here :)

PS: I think she gives him a hardon o.O ...

Create Temporary (Expiring) Links With Amazon S3 & PHP

Building Amazon S3 temporary URLs is quite a cool thing especially if you plan to sell digital downloads you will not feel comfortable sharing from your own server. These links will have an expiry time and won't be usable after that period. It's the perfect way to make a link expire in 5 mintes. Enough time to start the download and stay safe on your side.

I will not explain the process of creation as it's pointless. It's one of those little things you just need to work. It can also be used as a signature building example for those who want to dig deeper in the S3 programmable core.

Have fun:

Zone unavailable to unregistered users.
Registration is FREE, quick, painless and worth its weight in gold.

Use like this:

$url = el_s3_getTemporaryLink(S3AccessKey, S3SecretKey, 'bucket', 'folder/file.ext', 5);

... builds a 5 minutes URL to http://bucket.s3.amazonaws.com/folder/file.ext

A TOP GEAR Taste Of My Country :) | Romania, Transfagarasan

See it on YouTube in full HD. Or Rapidshare.

It's a road crossing our highest section of the Carpathians mountains. Learn more here.

PS: It's not everyday that the TG team ends up saying very nice things about a location. I think we made an impressions far from anything they expected.

Your PHP DB weapon of choice: MySQL or MySQLi?

These past two days I've ported 90% of my PHP library from use of old-school mysql to mysqli. I still have a bit to update.

Wrote a completely new mysqli framework with default connection [link] capability [removal of first mandatory mysqli parameter and allow for a global default one used as last parameter] and I will no longer use mysql_ inside my code.

My question to you is: What do you use: MySQL_ functions of mysqli classes/mysqli_ functions?
PLEASE ANSWER IN THE COMMENT FORM!

PS: I plan to release some scripts that will also need to interact with the database. I want to know if they will need to work with both or if you are 'new-school'... unlike me.

Paypal Day-Dreaming | Hardcoded Profit Sharing

I'm working on a site to sell many of my scripts and I'm writing the affiliate system. And I started day dreaming. It was like Paypal added two new fields inside the HTML payment forms that were named:

partner_share=Number|Percentage & partner_business=paypal_email

And this way Paypal could automatically share profits for my sales and, in case of financial disputes, they could handle the chargebacks too withdrawing amounts from both accounts. I understand this would be a PITA for them but it would be sooooo cool and make life sooooo easy.

PS: If this is possible in Paypal right now do slap me with your knowledge.

PPS: Adaptive payments come close to my dream yet miss it by lack of chargeback handling and multi-target withdrawl on behalf of Paypal.

PPPS: Some more reading on the subject from Tim Nash. Has some pretty drawings :)

Google Image Search | New Edition

Got a comment that the Google Image Search script I published ages ago does not work anymore and I didn't even check it. But, as I wanted to improve it a bit, I rewrote it with a few tricks. It comes with a whole bunch of defines that allow you to set the parameterseasily. You don't need to know them anymore.
Read the rest of this entry »