Browsing Posts in Php

Here it is, the new version with a lot of new features like default exportation action configurable…

Have a look

Due to Wordpress recent changes the previous 0.3 version of the plugin doesn’t work correctly with WP 2.2.
The problem seems to be solved now, so please downaload it again and let me know if you experience problems.

A causa di recenti cambiamenti nel codice di wordpress la vecchia versione 0.3 non funziona correttamente, il problema sembra risolto, vi prego quindi di scaricare la nuova versione del plugin e farmi sapere se riscontrate degli errori.

Version 0.3 of post2pdf is finally out…

You can find in the new version some usefull addons as:

  • Export tag included to place the export button wherever you want in the post body, like this
  • Configuration file added to change the html code and the default export and exclude tags

I hope you will like it… read more about it

Validazione email – Email validation:
^[_a-zA-Z0-9-]+(.[_a-zA-Z0-9-]+)*@[_a-zA-Z0-9-]+(.[_a-zA-Z0-9-]+)*(.[a-z]{2,3})$

Parsing file di log di Apache – Apache log parsing:
(\d+\.\d+\.\d+\.\d+) (-|\w*) (-|\w*) \[(\d+\/\w+\/\d+):(\d+:\d+:\d+) -(\d\d\d\d)\] "([^"]*)" (\d+) (-|\d+) "([^"]*)" "(.*)"\s*\Z

se utilizzate python è estremamente utile compilare l’espressione regolare che ho appena scritto in questo modo:
myregex = re.compile('(?P\d+\.\d+\.\d+\.\d+) (?P-|\w*) (?P-|\w*) \[(?P\d+\/\w+\/\d+):(?P

in questo modo utilizzando questo codice:

log = self.regex.match(row)
log_line = log.groupdict()

nella variabile log_line otterrete un dizionario contenente come chiavi i valori che avete inserito nella fase di compilazione come ?P e come valore la relativa sottostringa, ad esempio log_line['ip'] = valore ip .

Great news, version 0.2 of post2pdf is finally out…

You can find in the new version some usefull addons as:

  • Visual editor button to insert exclusion tag
  • Html table support
  • Image support improved with a best effort techinque
  • Category exportation

I hope you will like it… read more about it