Zainals ver 2 sneak peek preview !

27 02 2007

May not be clear but cant bother resize em in then link them today .

The past week been my depression week for no reason and i just wish to know what is happening with moi =\ .
Anyway , give me your feedback !

zainals2

zainals2

zainals2

zainals2

zainals2

zainals2

Advertisements




New breed of tutorials , tutorialvid.com.

22 02 2007

Here is how the web is advancing …

you dont need to seek written tutorials anymore , why would you do that when you are able to watch a video of your selected tutorial(s) ?

Tutorial Vid 

Long live Web 2.0 !





Experiment: Yahoo Flash Search API …

12 02 2007

YahooAPI in Action

As you can see in the example above i was able to build my own search service using Yahoo API .
Many other things can be achieved using Yahoo’s API including :

  • Build a Flickr Application.
  • Create a Yahoo! Messenger Plug-in.
  • Create a Trip Planner Search Application.
  • Perform a Yahoo! Search with ActionScript 2 and ActionScript 3.
  • Use the Yahoo! Maps Flash API.
  • Create a Yahoo! Music Jukebox plugin.
  • Mash up the Upcoming.org API.

More APIs on :

* Flickr API
* Upcoming API
* del.icio.us API
* MyWeb APIs
* Answers API

You can also check the other PL/Techs APIs like PHP , all can be found on Yahoo Developer 





tubetorial , Learn the easy way !!!

12 02 2007

We all know how the internet is now affecting everything …
Its advancing in a crazy way , News , RSS , Videos , Songs , Listen , Learn , Interact , watch , vidCams , i can go on forever .
its the new way to promote your business and your ideas …

Long story short … TubeTorial.

Free Videos on :

  • google adsense
  • Optimzie wordpress
  • learn HTML
  •  Easy money with google Adsense
  • how to increase commentsand views with 1 Plugin
  • Make money with RSS feeds .
  • and much more of Videos !!

Why not giving it a try , Free Vids , makes everyone happy …





Simply the best Bookmark !!

26 01 2007

Every Developer/Designer should have this on the top of the their bookMarks !

the site includes :

  • Tutorials ( Everything  Flash , php , ajax , css etc )
  • Site reviews ( best sites ever)
  • free useful tools ( fonts , code snippets )
  • and much MORE !

I cant say more that You’ll have to see it  your self !!

http://www.smashingmagazine.com 





Getting WordPress posts into Flash!

25 01 2007

flash worspress flashblog

After reading few documentation about some APIs & classes used with wordpress, i was able to get flash to read the titles and arrange them with their links .

not only that , its now possible to get the post title , post link , post entry(description) etc …
This will be one of the elements that i ‘ll be using in my ZAINALS ver 2 🙂

lovely eyh ?





Sending email attachments in PHP Using phpmailer class !

10 01 2007

A friend of mine asked me for such a script that will attach Jpg Images and send it to a particular email , so i started one from scratch .
The Basic idea is to upload the images to the server and then use phpmailer class to attach the files and send them .
The files can be found @Zainals
PHPMailer Class can be found @ http://phpmailer.sourceforge.net/
To Learn more about file uploads visit Plus2Net

Make sure you have a directory called upload and set its chmod to 777 .

oh well , sharing is caring eyh ?

first of all we need to setup the form that will interface with the users , i have found this multi browse code @ : Plus2Net
<?php
$max_no_img=5; // Maximum number of images value to be set here
echo "<form method=post action=attach.php enctype='multipart/form-data'>";
for($i=1; $i<=$max_no_img; $i++){
echo "<tr><td>Photo $i: </td><td>
<input type=file name='images[]' class='bginput'></td></tr>";
}

?>

And now for the PHP Part , excuse the sloppness :
<?php
require("class.phpmailer.php");
//Variables Declaration
$name = "the Submitter";
$email_subject = "Images Attachment";
$Email_msg ="A visitor submitted the following :\n";
$Email_to = "you@yourSite.com"; // the one that recieves the email
$email_from = "someone@someone.net";
$dir = "uploads/$filename";
chmod("uploads",0777);
$attachments = array();
//
checkType();
//
//------Check TYPE------\\
function checkType() {
while(list($key,$value) = each($_FILES[images][type])){
strtolower($value);
if($value != "image/jpeg" AND $value != "image/pjpeg" AND $value != "") {
exit('Sorry , current format is <b>'.($value).'</b> ,only Jpeg or jpg are allowed.') ;
}
}
//
checkSize();
//
}
//-------END OF Check TYPE--------\\
//
//---CheckSizeFunction ---\\
function checkSize(){
while(list($key,$value) = each($_FILES[images][size]))
{
$maxSize = 5000000;
if(!empty($value)){
if ($value > $maxSize) {
echo"Sorry this is a very big file .. max file size is $maxSize Bytes = 5 MB";
exit();
}
else {
$result = "File size is ok !<br>";
//
}
//
}
//
}
uploadFile();
//
}
//-------END OF Check Size--------\\
//
//==============upload File Function============\\
//
function uploadFile() {
global $attachments;
while(list($key,$value) = each($_FILES[images][name]))
{
//
if(!empty($value))
{
$filename = $value;
//the Array will be used later to attach the files and then remove them from server ! array_push($attachments, $filename);
$dir = "uploads/$filename";
chmod("uploads",0777);
$success = copy($_FILES[images][tmp_name][$key], $dir);
}
//
}
//
if ($success) {
echo " Files Uploaded Successfully<BR>";
SendIt();
//
}else {
exit("Sorry the server was unable to upload the files...");
}
//
}
//
//==== PHP Mailer With Attachment Func ====\\
//
function SendIt() {
//
global $attachments,$name,$Email_to,$Email_msg,$email_subject,$email_from;
//
$mail = new PHPMailer();
$mail->IsSMTP();// send via SMTP
$mail->Host = "localhost"; // SMTP servers
$mail->SMTPAuth = false; // turn on/off SMTP authentication
$mail->From = $email_from;
$mail->FromName = $name;
$mail->AddAddress($Email_to);
$mail->AddReplyTo($email_from);
$mail->WordWrap = 50;// set word wrap
//now Attach all files submitted
foreach($attachments as $key => $value) { //loop the Attachments to be added ...
$mail->AddAttachment("uploads"."/".$value);
}
$mail->Body = $Email_msg."Name : ".$name."\n";
//
$mail->IsHTML(false);// send as HTML
$mail->Subject = $email_subject;
if(!$mail->Send())
{
echo "Message was not sent <p>";
echo "Mailer Error: " . $mail->ErrorInfo;
exit;
}
//
echo "Message has been sent";
// after mail is sent with attachments , delete the images on server ...
foreach($attachments as $key => $value) {//remove the uploaded files ..
unlink("uploads"."/".$value);
}
//
}
//
?>

I know the that its hard to read the script of this blog , The PHP file is available @ Zainals