php


Curse of Dragon

A while back I decided to create a MMORPG (Massive Multiplayer Online Role Playing Game). It was created in PHP with MySQL databinding. The idea was to create something that would run in any browser without need of any extra plugins/addons. Today I have decided to release it to the public AS IT IS, I [...]

PHP to ASP.NET [CSharp]

After working with C# all summer, I have been having thoughts about moving from PHP to ASP.NET (mainly C#). All summer I have been wondering why it was that I never tried C# before, with the improvements in C# 3.0+ like Windows Connection Foundation [WPF], Windows Presentation Foundation [WPF], Linq, etc. it is hard to [...]

CSharp vs Java

In a sense Java and C# are quite similar, but when you get a bit under the tip you will notice some of the difference between both languages. For some reason C# felt a bit more easier the Java to me, and a bit (a lot) more powerful. There are things like defining getter and [...]

Unique ID

There are times when you need some sort of unique identifier for some reason, and it can be hard to find a system that will have a very low collision risk. After working on the problem for a while, I could find some ways to generate unique identifier. Use UNIX timestamp in milliseconds Use DateTime.Now.ToBinary() [...]

Browser specific CSS

A month ago I wrote about how to write IE specific CSS code, it is all fine, but what should be done if you have to pass W3c Validation (IE hack is not specified in any CSS standard). After looking around a bit I found out, that it is batter to make one CSS file [...]

Sitemap and RSS

After reading a bit on SEO, I decided that I needed a sitemap to get a better ranking on search engines. After searching a while on CMSimple Wiki I found a script that could generate RSS from content.htm file, but I needed a sitemap. With a little coding i have been able to hack together [...]

BBClone – Web Counter

I have used BBClone Web Counter for over 5 years, and sop far i havn’t found any replacement for it. As for now I am using CMSimple i decided to use bbclone again. I found out it would take some time to get bbclone streamlined CMSimple. First i tried to make a plugin for CMSimple [...]

Function overloading in PHP

A while back i wrote somewhere: After doing some Java, i do miss “overloading” a function. I hope they will implement it in PHP6… Overloading is creating two functions with same name, but have different amount off arguments passed to them… I did find a trick to go around, using a combination of func_num_args and [...]

SEO Paths

When you are not running Apache, it is a bit hard to get SEO optimized paths. So, here is a simple way to implement SEO paths without Apache. Example: http://test.jain.se/path.php/a/b/c/d/e/f/g/h/i/j/k/l/lm/n/o/p/q/r/s/t/u/v/w/x/y/z/?test=a&b=c&d=e&f=g Source: PHP