Take your photo online for free
Oct 11th, 2005 by Neo
If you followed my blog long enough (haha, how many years already?), you will know that I have a Nokia 3230. Recently after some help from the Nokia engineers, we have found a way to allow us to take a photo of you on this very website itself. We are still testing this system, so it may not be perfect - the photo may come out a bit blur (Nokia 3230 only 1.2 megapixel mah).

The best is, for a limited time only, this service is completely free. You can download and print your photo later. Or send it to your girlfriend(s).
<?php
echo "<form method=\"post\" action=\"".get_permalink()."\">";
if(isset($_POST[’your_name’]))
echo "Your Name: <input type=\"text\" name=\"your_name\" value=\"".$_POST[’your_name’]."\"><br /><br />";
else
echo "Your Name: <input type=\"text\" name=\"your_name\"/><br /><br />";
echo "<input type=submit value=\" Take a photo now \"/>";
echo "</form>";
?>
<?php
if(isset($_POST[’your_name’])) {
if($_POST[’your_name’] != "") {
echo "<strong>This is your photo we just snap for you</strong>.<br><br>";
echo "<img src=\"http://www.hot-screensaver.com/wp-myimages/take-photo/take-photo.php?your_name=".$_POST[’your_name’]."\">";
}else {
echo "<strong>No photo is taken because you have not supply Your Name. Put Your Name in the box and we will take a photo of you for free.</strong>.<br><br>";
}
}else {
echo "<strong>No photo is taken because you have not supply Your Name. Put Your Name in the box and we will take a photo of you for free.</strong>.<br><br>";
}
//get last 5 photos
$counter_file = ‘/home/teamsibu/public_html/wp-myimages/take-photo/counter.txt’;
if(file_exists($counter_file)) {
clearstatcache();
ignore_user_abort(true); ## prevent refresh from aborting file operations and hosing file
$fh = fopen($counter_file, ‘r’);
$buffer = chop(fread($fh, filesize($counter_file)));
echo "<br><strong>Latest five photos snapped:</strong><br>";
$count5 = 0;
while($buffer>0 && $count5<5) {
echo "<a href=\"/wp-myimages/take-photo/photo".$buffer.".jpg\" target=\"_pop\">Photo $buffer</a><br>";
$buffer–;
$count5++;
}
}
?>


Site feed



OMG, I become a chic liao. Die lor die lor…
[…] Haha… you may have tried to submit comments to my post Take your photo online for free and saw a message that says “Sorry, no post matched your criteria”. You saw the same message if you tried to snap your photo in the single post itself. […]
that’s not even look anything like me!
Haha… This guy doesn’t intend to let a male’s name to have a male picture… Of course you and me are chick lol!
Haha, thanks for the laugh!
I ended up being some pretty girl.
Take care!
haha..hehe..huhu…
that funny man…hehe.. i like it..
em…i have one request…hehe
can i blog this??? ;p
note:i WILL blog this…hehe…thanks man..
haha….cool
i’m pretty
ai yo…..since when i become Face Off???
WTF