Category Archive: Programming

Subcategories: Bash  C#  Javascript  Php 

PHP Soap Server, Part 1: Introduction to WSDL

In this multi-part blog im going to talk through how to set up a php soap (Simple Object Access Protocol) server that can be added as a web-reference through visual studio. Im mainly doing this because it took me along time to figure out the finer details of wsdl and soap, and i’d like to try and save other people the same hassle.

The example soap service that i will build for demonstration purposes will be a simple schedule service, that can be queried to find out what meeting is next and todays meeting schedule.

All the code/wsdl/xml is available here
And the demo client and server

PHP Soap Server, Part 2: PHP Server and Client (more…)

C# Console Framework

This is a small side project that i did in my first year of university, I’ve since updated it as it was a bit hacky and built for .net v1 (now v2).
It can :

  • Read text, integer and float values from the console, while validating them within the given limits
  • Show simple menus
  • Show Titles (see below)

And all with a cool border/scrolling effect! (more…)

Converting text files into a navigable collection with php

Say you have a collection of text files that you want to be accessible over the internet, but dont want to convert each one, add navigation etc…
This is where txt2dir comes in, this is a small php script I made that can take that collection of text files and convert them to html on demand including navigation and an index! (more…)

Programming and Debugging C on Linux

This “how-to” covers programming and debugging on linux without the use of an IDE and mainly using the console.

Writing programs on Linux can seem daunting at first, especially if your just using a simple editor like nano and manually compiling files (like how i started off doing).
But there are many things that can help and make things far more productive. (more…)

PHP and SQL injection

Ok, being someone who likes php, i get annoyed at the many sites trying to teach people the language who have example login scripts that use something like:

$result=mysql_query("select * from users where Username=$username and Password=$password");
if (mysql_num_rows($result) < 1)
    blah blah blah

Whats wrong with that you ask? Well imagine what would happen if someone were to use the username '' or 1=1 # (more…)


Blueprint is a php web application I made for the online game Eve-Online, a while back i was building and selling ships and i wanted to know how much materials would cost and to be able to find out what my profit was going to be, and this was the result. (more…)