<Martian Wabbit Productions>

How PHP works

February 22nd, 2010 by Seich

Okay, this won’t be of much help to everyone but those following my new screencast series about PHP.  I’ll be going over the basics and I thought that this would be the best place to start on. “How PHP works” shows in about a minute the basic functionality of PHP. I’ll be going over setting PHP up in your PC afterwards and then I’ll start showing the basics of PHP. Hopefully this screencast series will give me a reason to be more active on my blog.

Simple factorial function

June 8th, 2009 by Seich

Well, today my sister was working doing her homework and, she kind of got stressed with it, so she called me and, I ended up making it for her… I learned what a factorial is and, made this nice little function that finds the factorial of any number you pass to it. It was supposed to be written in labview, but I don’t really know what that is… so I used php xD It worked like a charm in labview according to my sister. so you can also use it in labview I guess :O

1
2
3
4
5
6
7
8
9
<?php
function factorial($input){
  $output = 1;
  for($x = $input; $x >= 1; $x--){
    $output *= $x;
  }
  return($output);
}
?>

I made an example of this function’s usage using JavaScript, check it out here

Basic of $_GET variables (PHP)

June 6th, 2009 by Seich

Hello everyone, today I am posting a tutorial on the basic usage of the $_GET super variable in php. This tutorial was originally posted at the MWPS community forums, which almost never is read so I figured that this would be a better place for it to be. It goes through the basics of the $_GET variable and some basic usage examples.
(more…)

MWPS’s GChart

December 31st, 2008 by Seich

I was rather bored the other day when i found out about google’s chart api, which allows you to create a chart by linking to a url with some things in it..  you can find more about it in here.

Well, I became bored somedays later, and started creating a class to work with it. This class would create and add all the information needed to the base url, After reading and adding a lot of things into the class, I made a rather decent php chart for he creation of charts using google’s api. After googling “php google charts api” I found out there are many other similar classes, which make mine look … plain… i wil exapand it a little and then present the final one, currantly it only supports a limited number of google’s settings. I will add all settings, and eventually have a complete class. Also, i found out, that my class has something in favor.. it’s really simple to use :P .

Download here:


For instructions,
(more…)

  • Archive

  • Tags

    COmposing factorial Feed Feedburner font function Hello loop Music Noctorious PHP Script Tutorial type Updates
  • Downloads

  • Random Ads