Blog

Blog has moved to http://arnorhs.com/category/shortphp/

The ShortPHP blog has moved to Arnor's personal blog: http://arnorhs.com/category/shortphp/. It will probably become more active there.
Posted: 21:04 2010-12-19 | Comments (3)

Removed spam, improved spam protection

I had a small huge problem with spam in the comments. So I emptied the comments table. I don't think there were any comments except me and maybe a friend or two posting something useless. So, no harm done.

Posted: 03:29 2010-04-24 | Comments (1)

Version 1.1.1 released

I've made small improvements to the code. The changes are:

  • Objects are instantiated from the sitefiles' classes - and therefore the methods are called on the object. This has some benefits, mainly that now you can have a constructor named as the object is, which would do stuff you need to do every time and this also solves the issue of E_STRICT warnings being generated if you don't use the static keyword before a function declaration
  • You can specify a start up sitefile in the shared.php file, using: define('S_DEFAULT_SITEFILE','yourownsitefileorclassname');This was needed

Check out the download section.

Posted: 18:19 2009-04-25 | Comments (2)

Version 1.1.0 released

I've put together version 1.1.0 and it is available immediately. Head over to the download section or view the change log here:


*** Version 1.1.0 ***
[ADD] Added whitespace + comments to all the code
[MOD] Rewrote some of the URI parsing functions and more....
[ADD] Added f() - get the full file path to the website - document root
[ADD] Added p() - get the full HTTP file path to the current website.
[ADD] Added uri() - to retrieve a part of the URI easily.

I'm still looking for the right license for the project so if you have any comments or ideas on that, please let me know.

Posted: 03:03 2009-03-10 | Comments (0)

Rethinking the code

I got some really helpful feedback from @matzie on twitter about the shortness of the code. I had set my heart so much into trying to make the code as few bytes as possible - even though that's arbitrary - so started thinking I should rewrite some of the variable names etc so the codes becomes more readable, maybe put in some comments as well.

It's never going to fit in a tweet anyways, so why bother having such arcane code? I've never written code like this before, why start now?

But keeping the code small and with as few statements as possible, as few variables etc, is still very vital... or else I'll just be making another CakePHP, CodeIgniter etc..

So my next step is probably to take the notes from the roadmap and build on that and make the code more readable.

Posted: 00:59 2009-03-10 | Comments (0)

Version 1.0.1 released - testers needed

Ok, so now version 1.0.1 is out, so I'm in a deep need of people to test out the framework and do some domo projects using ShortPHP.

If you have any questions, please e-mail me.

Posted: 19:02 2009-03-08 | Comments (0)

The making of a framework

The framework is pretty much ready for use. It started out as a 10-min experiment and (as usually) ends up as a little bit bigger project. At least now I have some codebase to build upon.

Day one went into creating the base code and trying out a few things.
Day two went into making this website based on the code. That includes making the blog platform w/comment forms, writing the poor documentation, etc.

There are still a lot of loose ends, will fix soon.

Posted: 23:33 2009-03-07 | Comments (0)

First entry

Just testing... does this work?

Posted: 23:27 2009-03-07 | Comments (1)