We implement your business idea

Main menu

Monthly Archives: January 2010

This is the map made by google analytics on this blog.
It’s rather foreseeable to see which are the countries more interested in a technical blog.
I’m only surprised to see no visits from China and Norway, as well as same number of visitors from Spain and Ukraine and Romania.

PHP is a technology damned cool for web application but the language doesn’t provide an advanced syntax as Python in itself. However, by writing readable and maintenable code (for instance by smartly separating features in function and classes), PHP is satisfying also to make file managing / system scripts, IMHO of course 🙂

ExampleHere is a simple script I’m using to copy the latest mp3 files from a directory to another one (ipod shuffle) skipping the already existing files. Basically it’s a kind of one-way-sync script for files filtered by mask and creation date. (To run it from the command line, launch it from the destination directory. e.g.: “php -f script.php” in the root of the ipod, or any USB MP3 player)

I’ve recently built a very simple web site. The only dynamic requirement was having some parts of the front end editable (WYSIWYG) by an administration area (user and password). Basically, a very simple basic CMS for one user.

SolutionA MySQL database is not needed, saving to files is much more appropriate for these requirements. Also SQLite is not necessary, as we just want to do only basic operations.To do it, I’ve used one of my scripts that meets all of those requirements using only one file (the script, to place in any position, better a separate “admin” folder) + a config file (basic options: array with the list of the frontend component and their relative paths, user and password to login) + FCK editor files.

The script (protected with a simple session control + form to login) basically lists the components and allows to click on them and change the text inside using FCK editor (free WYSIWYG html editor). Also a simple backup system is provided, by keeping/restoring the previous version saved.

It’s quite easy to implement a script like that.To whom may be interested in my version (<200 LOC, made long time ago, so PHP4 compliant), let me know.

90 tech questions, some of them answerable only by reading some books, some others by knowing the exact behaviour and arguments of PHP5 functions and settings (quite a lot of stuff to remember considering also XML, PDO, STD lib,streams and filters), some other only with work experience, some of them with a code/algorithm comprehension ability and deep OOP skills.