Perl Arrays

Watch out! This tutorial is over 7 years old. Please keep this in mind as some code snippets provided may no longer work or need modification to work on current systems.

Variables whose names begin with @ are arrays. If @sue is an array, it is different variable from $sue. However, members of @sue are selected by $sue[$i].

Continue reading

Make WordPress Remember A Login Forever

Watch out! This tutorial is over 7 years old. Please keep this in mind as some code snippets provided may no longer work or need modification to work on current systems.

To keep track of who you are, WordPress uses cookies to store important information needed for it to work. Once you are logged into your WordPress account, information is stored to that little file which lets the system know the exact time when you got there and so it can identify you later on.

Continue reading

Hello World in Node.js

Watch out! This tutorial is over 7 years old. Please keep this in mind as some code snippets provided may no longer work or need modification to work on current systems.

This is how you would script “Hello World” in Node.js

// requiring the HTTP interfaces in node 
var http = require('http'); 

// create an http server to handle requests and response 
http.createServer(function (req, res) 
{ 

  // sending a response header of 200 OK 
  res.writeHead(200, {'Content-Type': 'text/plain'}); 

  // print out Hello World 
  res.end('Hello World\n'); 

// use port 8080
}).listen(8080); 

console.log('Server running on port 8080.');

PHP Functions

Watch out! This tutorial is over 7 years old. Please keep this in mind as some code snippets provided may no longer work or need modification to work on current systems.

PHP functions are similar to other programming languages. A function is a piece of code which takes one more input in the form of parameter and does some processing and returns a value.

Continue reading