Archive for category PHP

How PHP works

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.

No Comments

Building a Simple Twitter PHP Class

preview

PHP is a very versatile scripting language. In this tutorial I will be explaining how to create a PHP class that will help you post and get information from a twitter account using the client URL library (cURL).

Read the rest of this entry »

2 Comments

Simple factorial function

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

Tags: , ,

6 Comments

Basic of $_GET variables (PHP)

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.
Read the rest of this entry »

Tags: , ,

10 Comments

MWPS’s GChart

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,
Read the rest of this entry »

No Comments