Toinen tekstikentta

<?php
   echo "Hello<br>"
?>
#import javax.io;

public class random{
   public void randomMethod(){
      Sout("what is this");
   }
}

Above pre thing was made to test how a java code snippet would look like in one of these, so the code is not even supposed to be right.

Adding a nice rectangle around your code was easy. You just add pre tag. In my case you’d also have to edit style.css file on wordpress. But that was really use. Just search for pre in the file and make few changes there. The file can be found when you go to Appearance > Editor > style.css.

It’s weekend, why are you here?.
3

PHP is a very interesting field to get in to. I got my own standalone system up and running now. I’m using MAMP to get server up and running and then I decided to use netbeans to write some software. I think this combination works fine, even if you everyone does not agree on what’s the best combination for this. I have used netbeans to write code before this, so I do think it’s the best alternative here.
If you have other opinions about MAMP or Netbeans, please let me know. I almost forgot, but one of the best sites I used to help me on this was this and this screencast was by jdfwarrior and big thanks to him for this.

?>
ananas or pineapple that’s the question (You might be wondering why I have this here. The thing is that other pineapple on this is modified from the finnish word meaning it. This change is actually done by a plugin I programmed )
Executed version here.
It’s weekend and you should not be looking at this

<?php
$day = date("D");
if($day == "Mon")
echo "It's Monday and the week is just starting";
if($day == 'Tue')
echo "It's Tuesday and the week is just starting";
if($day == 'Wed')
echo "It's Wednesday and the week is just at the middle";
if($day == "Thu")
echo "It's Thursday and the week is about to end";
if($day == "Fri")
echo "It's Friday and you should party hard.";
if($day == "Sat" || $day == "Sun" )
echo "It's weekend and you should not be looking at this";
?>

Above we have a short example of how you can fetch dates with PHP. The source code is just above and the actual code is executed above this one. As you can tell this is not easy to read or too fun to look for that matter. WordPress does not have too good tools for meddling with PHP.

D6 with PHP.
3

<?php
$random = mktime();
$dice = $random % 6 + 1;
echo "".$dice;
?>

Here we have the code used for this dice. It’s really straight forward, but I put the source here just to boast with the use of <pre> tags. You’ll get a new value for this dice each time you refresh the page.