Notes on a web journey

posted on: 03 July 2009

PHP quick profiler

filed under:php @ 09:54:03

PHP Quick Profiler is a small tool (think Firebug for PHP) to provide profiling and debugging related information to developers without needing them to add a lot of programmatic overhead to their code:

PQP

tags:

posted on: 21 July 2008

IP to Country

filed under:php @ 09:41:02

Creating a database to map an IP address to a country:

How To Make An IP-To-Country Tool With PHP and MySQL

tags:

posted on: 10 February 2008

MySQL backup, storing IP and text limit

filed under:php @ 10:38:21

Via davidbisset.com :

tags:

posted on: 16 October 2007

Forms in php

filed under:php @ 19:02:31

An article on Digital Web Magazine about building forms using php:

Building a Bulletproof Contact Form with PHP

Nothing new but accurate and simple, good to have a link to for reference.

tags:

posted on: 30 April 2007

Php array_diff_assoc

filed under:php @ 19:21:02

On Content with Style :

array_diff_assoc and the order of parameters

tags:

posted on: 28 January 2007

IP address image

filed under:php @ 19:08:41

Just added a preliminary 9-block IP identification feature to Daily, my blog server to enhance commenter identity beyond name and website. Basically, what I am doing is using a privacy protecting derivative of each commenter's IP address to build a 9-block image and displaying it next the commenter's name.

Visual Security: 9-block IP Identification

And the PHP version of it:

Visiglyphs for IP visualisation

tags:

posted on: 21 August 2006

Tags cloud

filed under:php @ 14:08:23

I'm writing the code, using PHP, to create a “cloud” based on the tags I decided to add to each post.

Right now I organize the log with categories but sometimes I find it not precise enough and I don't think that adding a lot of new categories is the best way to go. Hence my decision to add tags at the bottom of each post, to specify better what the post is about and to enhance the findability of topics. I eventually will end up having:

  • a search feature (using FULLTEXT)
  • categories
  • tags on each post
  • a tag cloud to show all the tags I use

Now, when I want to find something, I just use the search posts feature, but, for a user that wants to have a comprehensive look at my posts, that's a bit too specific. Categories, on the other hand, seem to me to be too general. The code for the tag cloud is not finished yet and it's also turning out to be more difficult to write that I would have thought sometimes I think I've gone blind..didn't see the function I was looking for in the PHP manual.

tags:

posted on: 15 August 2006

MySQL sorting and PHP sessions

filed under:php @ 19:04:23

Some MySQL sorting tips:
sort MySQL results ignoring definite and indefinite articles (the, a, an)
which points to this post
originally meant to answer this thread

And an interesting article on PHP sessions:
the truth about sessions

tags:

posted on: 11 August 2006

Charsets, UTF 8 and security attacks

filed under:php @ 21:03:20

Phpwact.org:

tags:

posted on: 12 July 2006

Automatic magazine layout

filed under:php @ 18:42:03

On A List Apart: automatic magazine layout

Auto-resized images are a common feature on the web now. Automating the process of resizing images saves a lot of time - it's certainly quicker than manually resizing images in Photoshop - and is a good way to manage images on a site.

Once you have ten or so images, you are better off using an AJAX based image gallery, but this script will fill the gap nicely up until that point.

tags:

posted on: 08 June 2006

Using XML-RPC

filed under:php @ 10:31:26

On PHPBuilder: using XML-RPC

tags:

posted on: 06 May 2006

PHP and DHTML

filed under:php @ 10:55:29

DHTML is HTML that includes JavaScript code that changes the content or layout of the page in the browser without going back to the server. When you write an HTML page, you're actually writing an object tree. All the tags become objects in the JavaScript space. Using JavaScript, you can change their content, Cascading Style Sheets (CSS) styling, and location - all without ever going back to the server. DHTML is the intersection of HTML, CSS, and JavaScript:
PHP and DHTML, Part 1

tags:

posted on: 18 March 2006

PHP reading list

filed under:php @ 14:20:52

Compiled from a variety of online sources by Web application developers in IBM's Global Production Services organization:

tags:

posted on: 14 January 2006

Php functions lookup

filed under:php @ 14:19:43

From splasho :

Php functions lookup and its source

" I put together this AJAX (actually AJAH) tool that allows you to quickly view the important details (argument list especially) of PHP functions. You just type in the beginning of the function you want and you are presented with a list, click one on the list and the details are filled in. "

tags:

posted on: 25 December 2005

Php, CSS,Javascript and attributes

filed under:php @ 12:25:18

A post an Simon Willison's web site:

Google base

I'm not particularly interested in Goole base itself, more in what Simon says about structuring data using attributes that allow to query it and make it interchangeable. I think that XFN and Microformats are products of the same general orientation. Seems to me that that's all the web is about, connecting people and data in the easiest possible way.

tags:

posted on: 16 August 2005

Security (php,MySQL and more)

filed under:php @ 09:15:58

PHP Security Consortium :

" Founded in January 2005, the PHP Security Consortium (PHPSC) is an international group of PHP experts dedicated to promoting secure programming practices within the PHP community. Members of the PHPSC seek to educate PHP developers about security through a variety of resources, including documentation, tools, and standards. In addition to their educational efforts, the PHPSC engages in exploratory and experimental research in order to develop and promote standards of best practice for PHP application development "

Tech Tips is "a collection of tips on a very wide-ranging list of topics", digitalparadox is about all kinds of security problems, securityfocus is "the most comprehensive and trusted source of security information on the Internet", hackerscenter "group is aimed at researching into web applications security field".

tags:

posted on: 09 August 2005

Site navigation menu

filed under:php @ 18:06:58

After six months I noticed that the nav menu wasn't behaving as supposed..

The links were meant to appear as plain text and red when on their target page but an error in the code was preventing it. I have fixed the error and updated the script in the studies page.

tags:

posted on: 10 February 2005

Links page using PHP

filed under:php @ 11:46:12

The new links page is up and running. Now links can be added by a user, (sevencolors admin reserves the right of deleting offensive or out of place links) or by myself, no need to access the site through an FTP. It still needs some fine tuning but basically it`s done. My original idea was to enable better interaction for the user (and consequently myself), since when I travel I cannot make changes which often ends up in some nice opportunities missed.

The next step will be to create an image gallery and a form to upload images.

Update: due to spam, I created a secure page and I now add links and pictures from there.

tags:

posted on: 07 February 2005

Php forms

filed under:php @ 15:27:46

I'm re-doing the links page with php so that links can be added by the user. To do so, I coded a page that presents the user with a form to add a link. Now I`m learning how to check the form to make sure the data entered is correct. I'm still looking around for the best solution.

Php so far has been very kind to me, my previous study of Javascript is very useful as far as syntax is concerned although php seems to be more straightforward and &8220;easier&8221;..

tags:

posted on: 27 January 2005

PHP studies page

filed under:php @ 14:04:58

The studies have been moved to a database (MySQL) and are now accessible through a PHP page. Some studies have a “working example page” and a link to go there. The advantage is that I only have to add the study to the database and it will be automatically added to the “Studies” page and I can do it from any computer. I will do the same for the links and photos pages then I'll write the all thing down and publish a page that explains what I did.

tags:

posted on: 21 January 2005

PHP and MySQL

filed under:php @ 10:26:44

I think I will soon have my own CMS up and running. I will probably keep Wordpress for the log and organize everything else using a few PHP scripts I'm writing. I will then explain in detail what I have done and how it works.

tags:

posted on: 12 January 2005

New layout

filed under:php @ 05:28:30

This is the beginning of the new layout. On this log I will post about learning PHP and MySQL, basically recording the process of re-doing the site and creating a Content Management System for it.

tags:

posted on: 11 January 2005

Setting up

filed under:php @ 19:34:22

I'm setting up the new layout for sevencolors.org. I need a Content Management System and I want to write it myself, which means that I have to learn PHP and MySQL. I already know JavaScript, CSS and XHTML, understanding PHP and its syntax is not so difficult but understanding how the files interact with each other and where they are supposed to be on the server is proving a bit more difficult. I know how to link a JavaScript file to the page I want to call functions from but it doesn't seem to be the same for PHP. The tutorials that I have found so far are about PHP sytax, connecting to MySQL and also CMS always without really explaining the relations between the single files..

tags:

posted on: 06 January 2005

Easy PHP

filed under:php @ 17:59:37

I installed Easy PHP and everything works fine. I have now to start learning PHP syntax and MySQL, which seems a lenghty process..

tags:

CSS,Javascript and Php studies

Anti spam email
A solution to writing an anti spam email contact link
filed under: Javascript
Background image
A background image randomizer that I used in the second version of this site.
filed under: Javascript/CSS
Javascript menu
A menu that uses Javascript and session cookies.
filed under: Javascript/CSS
MiniSite
Experimenting with CSS and Javascript.A simple but, in my opinion, nice navigation “system”. The MiniSite is a one page site.
filed under: Javascript/CSS
Photo display
Protect copyrighted photos: a simple but effective solution.
filed under: Javascript/CSS
Photo gallery
A photo gallery made for a friend
filed under: Javascript
PHP menu
A PHP menu that can be updated without having to re-publish all the pages is on.
filed under: PHP
Pop-up menu
A very simple pop up menu powered by Javascript. It works also if Javascript is disabled.
filed under: Javascript/CSS
RSS feed
How to write and use an RSS feed
filed under: rss-xml
Tag replacer
The Tag replacer explained and a link to it.
filed under: PHP
Tags search
A search form build and powered using Javascript and the DOM
filed under: Javascript