Code valid in both PHP and SSI

Filed under: Php tips — vincent @ 00:04

In a project that I’m working on, web pages are generated, and sent by FTP to a remote server. Some of those pages are simple HTML pages, others SHTML (i.e.: use server side include, or SSI, to include some blocks of information), and some others are PHP pages.

I’ve been in a case where a given block of code would have to be used both by SHTML and by PHP page. I can generated any code that I’d like, but the same code must be used for the PHP and SHTML blocks. In addition, it would be nice if this block, when seen directly as HTML (no PHP neither SSI parsing), would display correctly.
(more…)


CSS post-processing in PHP

Filed under: Php tips — vincent @ 13:08

While implementing the layout of this site in PHP, I found the tutorial on A List Apart, and wished to implement it here. However, I wanted to be able to change the column widths without having to recalculate manually the different dimensions.
(more…)


XMLRPC and Lyceum

Filed under: Php tips — vincent @ 14:42

Lyceum is a blog farm written in PHP and based on Word Press. I’ve had to interat with it from Java. I won’t copy here the workarounds needed to Lyceum to be usable through XML RPC, since I’ve already added some at the Lyceum Wiki page. Thanks to the other contributors of that page, they helped me a lot.