Posted on January 26, 2006
Filed Under Tech, Web development | 1 Comment
..to impress your friends. Some interesting web developer thingies.
Posted on January 17, 2006
Filed Under Tech, Web development | Leave a Comment
Well, that was easy. I was looking for a way to fetch HTTP request headers in PHP, for the implementation of Conditional GET in an RSS module. PHP has this function, apache_request_headers(), which returns an array containing all the headers you could possibly need. Problem solved!
But; when the software you’re working on (in my case a content management system) has to work on both Linux/Apache and Windows/IIS servers, there’s a bit of a problem: Apache-functions won’t work if there’s no Apache to work with. Fortunately, you don’t need functions to fetch specific headers: PHP has already gathered them for you.
When a client requests a PHP-driven page on your web server, you can check for request headers in the $_SERVER array. For instance, the If-Modified-Since header is stored in $_SERVER['HTTP_IF_MODIFIED_SINCE']. This will work for every header you can think of: PHP just converts them all to the right variable. A header This-One-Doesnt-Exist becomes $_SERVER['THIS_ONE_DOESNT_EXIST'] in PHP code. Just like that!
Posted on January 13, 2006
Filed Under Tech, Web development | Leave a Comment
A good programmer has knowlegde of several languages. Need to learn Python? It takes 10 minutes to do it.
Posted on January 13, 2006
Filed Under Tech, Web development | Leave a Comment
When you’re a web developer, as I am, you might think this one is useful.
Posted on November 29, 2005
Filed Under Tech, Web development | Leave a Comment
moo.fx is a superlightweight, ultratiny, megasmall javascript effects library, written with prototype.js. Very useful, I might say.
Posted on November 26, 2005
Filed Under Tech, Web development | Leave a Comment
I’m a web developer, and every now and then I have to create the HTML for a site that, in its design, uses multiple columns. It’s at those moments when I think: “I know tables are bad, I know I shouldn’t be using them for this, but please, may I?” It’s a real drag to get a columns-based layout using just divs and CSS.
The W3C understands this, apparently, according to this A List Apart article. With the multi-column mode in CSS3, you can divide the text within a div into multiple columns. That’s nice. A real good beginning in solving the “I cannot use tables, so what should I do”-problem.
But, we’re not there yet. A columns-based layout isn’t about text in multiple columns, it’s about the entire site in multiple columns, just like this blog currently has two: one with the text in it, and one with the navigation. It’s no problem if those columns can both do their own thing. One column has text, the other has links, and every column has its own length. Fine. But: if both columns are supposed to have the same length, it gets more difficult. What if one column becomes longer? How will the other one know it’s supposed to scale accordingly?
It won’t. There’s no way for a div to make it size itself based on another div’s size. That is, if you don’t use hacks. Will there be a solution to that some day?
« go back