Archive

Archive for the ‘PHP’ Category

Finally : a new Crudder-release!

November 28th, 2009
Crudder in action

Crudder in action

It took a while.. a long while actually.. but I finally made a new release of Crudder. This new release 0.50 has a lot of new features and bugfixes, to name a few;

  • New Field-type: HTML-editor
  • New Field-type: File-upload
  • New Field-type: Enum
  • Export to CSV
  • Adding records from the many-2-many-editor
  • Bugfixes; language-support works better, datefield has been fixed, the many-2-many-editor should work better

Check out the DEMO or read more

buTTon CMS, CRUD, Javascript, OOP, PHP , , , , , , ,

Launched a new WPS-Demo website

October 17th, 2009

For the dutchies , english folks check this page;

Op http://wps.i-v-o.nl/ staat sinds vandaag een vernieuwde demo-website van WPS.  Met deze demo-website kan je lezen over wat WPS is, wat het kan, hoe het werkt en je kan spelen met het systeem.

Wat is WPS

WPS staat voor Web Publishing System. Geen spannende afkorting, maar het dekt de lading wel goed. WPS is namelijk geen klassiek Content Management Systeem (CMS) maar veel meer. Een klassiek CMS zorgt er eigenlijk alleen maar voor dat je de inhoud van je website kunt bewerken, dat doe je dan eigenlijk altijd op een aparte website (ook wel backend genoemd). Zo’n CMS is harstikke mooi, maar er moet ook een ‘voorkant’, je website, geprogrammeerd worden, en dat kan best een tijdrovende klus worden. WPS is een publicatiesysteem en zorgt dus niet alleen voor de CMS functie, maar ook voor het publiceren; de voorkant van je website.

Read more…

buTTon CMS, Content Publishing, OOP, PHP, WPS , , , , , ,

Dev-Tip: Check your website from slow connections

September 17th, 2009

Have you ever tried one of your websites from a slow connection? Is load-time acceptable? Does the site work at all? If you use a lot of scripting and ajax-calls you might end up with a website that doesn’t work because scripts are timing out or wait for other scripts to finish (which even could crash browsers). How do you test from a slow connection? Check out mod_cband; bandwidth throttling for Apache.

Installation is quite easy; there’s a perfect howto available on Howtoforge.

buTTon Apache, PHP

Putting the Singleton-pattern to good use

May 3rd, 2009

I like the Singleton-pattern, it saves a lot of trouble on creating objects that you need throughout your code and need to keep their state. Though it’s very tempting, do not use the singleton too much; see here why.

There are some pretty good uses for a Singleton though; a registry and the database-connection;

Read more…

buTTon OOP, PHP , , , ,

Creating your own RPC-interface in PHP

April 17th, 2009

Last week I got a request to create some kind of RPC-server-client in PHP. The assignment was to create a flexible solution to allow remote updating several properties in a database. I’ve created interfaces like this before, but specifically for AJAX-calls to PHP-objects, not really for server-to-server-calls. This particular assignment also involved a PHP-client-object for other developers to implement in their website. The RPC-interface actually doesn’t really care if it’s used for real server-to-server calls or AJAX-calls. However; in this article I’ll focus on server-to-server communication, if designed well it shouldn’t take too much effort to make it AJAX-compatible.

Read more…

buTTon OOP, PHP , , , , ,

Securing PHP’s exec() on Windows

March 24th, 2009

Using php’s exec() function on Windows has a nasty side-effect; you’ll need to give execution-rights to IUSR on cmd.exe, this is pretty much a leak, and something you do not want to do.

I had a problem running executables (like identify.exe and convert.exe from ImageMagick) from php under windows using the exec() funciton. The solution provided by others was kind off stupid… Give full permisions on cmd.exe to IURS… Like you wanna do that…..
I wrote a exec() replacement function using the bypass_shell option proc_open has. It works great for me

Check out this article on bokko.nl to bypass using exec() on Windows

buTTon PHP , ,

AJP : Authenticated JSON Proxy

March 20th, 2009

Authenticated what?

The first hurdle most developers have to take when introduced to AJAX is S.O.P.
S.O.P stands for Same Origin Policy and basically means that you can only do AJAX-requests to the (sub)-domain the client is currently on. First thing I thought when I read about AJAX couple of years ago; ‘wow! cool! I can strip content from other sites and incorporate them in my websites’ .. and immediately I started hammering away on a RSS-reader which was supposed to grab news from a RSS-feed directly. My efforts failed. The RSS-feed was on another domain and S.O.P kicked in spoiling all the fun.
Read more…

buTTon Javascript, OOP, PHP, WPS , , , , , ,


Onze tip:SCDB.info – de meest actuele flitspalen in Europa voor uw GPS!