July 3rd, 2009
by Danny
.........................................................
¶
Heres a very basic php tutorial.
To start out we’ll just echo something.
<?php
echo “Hia world!!”;
?>
That’ll just show up as “Hia world!!”
Notice all php starts with <?php and ends with ?>
Also its similar to javascript. Text and other stuff goes in quotes and most lines end with a semicolon.
Heres something more advance. This’ll send an email.
<?php
$to = “test@me.com”;
$subject = “Hi”;
$message = “amg dewd, i sent the message from liek php!!!!!!!!!!”;
mail($to, $subject, $message);
echo “Sent a message”;
?>
Notice: You must have some type of mail server installed. Most macs will, most webhosting servers will. I have no clue about winblows
Now lets get into functions. We’ll make a simple function that’ll echo a message and add a line break.
<?php
function myEcho($message)
{
echo $message;
echo “\n”;
}
myEcho(“Hi dewd”);
?>
This is helpful if your writing some php application and you need it to add line breaks without adding another echo “\n”; every time
Thats the end of it for today. This goes through a lot and a little. May help if this isn’t your first php tutorial
Continue Reading
July 3rd, 2009
by Danny
.........................................................
¶
Css 3 is very amazing in my mind. You can do simple gradients, and advance gradients. Here I’ll show you how to do rounded borders without images.
First things first, lets show you an example.
Yay Some text here.
Css 3 isn’t supposed by all browsers yet so I would call it “beta” but you can bypass it. Note, this will ONLY work in Safari and FireFox (3.5+)
Continue Reading
July 2nd, 2009
by Danny
.........................................................
¶
In this video (No music) we’re going to be creating a simple photoshop logo that looks nice and it is very easy. Heres what the logo is gonna look like

Continue Reading
June 30th, 2009
by Danny
.........................................................
¶
Easily create a torrent file in OS X using Transmission.
Click Continue to see the video
Continue Reading
June 29th, 2009
by Danny
.........................................................
¶
Welcome to Mac-Fun. Please enjoy the site. Video tutorials for macs and other various things coming soon!!
Continue Reading