php (24)

Davide Airaghi

PHP - file encryption/decryption

To have some sort of privacy while sending/receiving messages (or files) using encryption is the first choice. Below you can find a very simple PHP web application that allows you to encrypt/decrypt a file using your web browser (and a web server hosting the page).

Continue reading...
Davide Airaghi

PHP - Tool per crittografia file online

Per permettere un certo livello di riservatezza nelle comunicazioni si deve ricorrere a sistemi che vadano a cifrare i dati in transito, facendo in modo che solo il diretto interessato sia in grado di risalire al messaggio reale inviato; questo tipo di comunicazione deve essere…

Continue reading...
Davide Airaghi

Connettore PhalconPHP 3.0.x - SQL Server

Con il passaggio di PhalconPHP alla versione 3.0.x il vecchio connettore per SQL Server che avevo realizzato ha smesso di funzionare. Per ovviare al problema ho riadattato le classi in modo da ridare compatibilità al tutto. E' possibile scaricare al tutto qui , cercando i file Mssql3.php

Continue reading...
Davide Airaghi

SimpleORM: PHP ORM classes and tools

SimpleOrm is a set of PHP classes to let you interact with tables and views in a database using an object oriented syntax (as the name implies it's a simple PHP ORM). Key features are: 1- Database abstraction 2- Query builder 3- Table-Model mapping 4- Fully iterable Resultsets Continue reading...
Davide Airaghi

SimpleORM: un semplice e leggero ORM per PHP

SimpleOrm  è  un insieme di classi PHP che permettono di interagire con tabelle e viste di un database sfruttando la programmazione ad oggetti (come il nome lascia presagire siamo di fronte ad un ORM piuttosto semplice).

I punti di forza sono: 1- Astrazione dal database sottostante 2- Tool di generazione delle query 3- Relazione stretta tra tabelle e modelli 4- Risultati delle query iterabili

Continue reading...
Davide Airaghi

PHP: container for values and objects

Using the class \Airaghi\Tools\Container it's possibile to share between your scripts (inside a single execution flow) values and objects reference without having to use global variables. The class has methods for: - saving and getting values - saving and getting objects references - deleting of values…

Continue reading...
Davide Airaghi

PHP: contenitore per valori e oggetti

Tramite la classe PHP \Airaghi\Tools\Container è possibile condividere tra più parti dello stesso codice oggetti e semplici variabili; questo permette di ridurre/eliminare l'uso di variabili globali. La classe realizzata mette a disposizione: - salvataggio e recupero valori - salvataggio e recupero riferimenti a oggetti/variabili semplici - eliminazione valori…

Continue reading...
Davide Airaghi

PhalconPHP: alternative way to use Oracle11g

Develpoing a new website based on PhalconPHP i tried to use Oracle11g as database, but in the process i had some problem. Searching the web for solutions i read about some problem with the native Oracle PDO driver, so i tried "pdo-via-oci8" by Arjay Angeles . As done for MSSQL i tried to…

Continue reading...
Davide Airaghi

PHP Date

This PHP class let you manage dates, time intervals, timezone conversions and format conversions. Format supported are 3: – “db” : yyyy-mm-dd – “ita” : gg-mm-yyyy – “iso” : yyyy-mm-ddThh:MM:ss.000 This class contains also methods to use when your PHP installation is using 32bit integers and…

Continue reading...
Davide Airaghi

PhalconPHP: SQL Server Connector

During the developing of a PhalconPHP based web application i had the necessity (it was a project constraint) to use MS SQL Server as database. I started looking around the web and i jumped into this project, but using it i had some problem with pdo_sqlsrv driver and i…

Continue reading...
Davide Airaghi

Utilities PHP

Questa classe PHP rende disponibili una serie di funzionalità relative a: - manipolazione stringhe- visualizzazione messaggi di debug - rimozione elementi "non attivi" da un array - rimozione elementi "non attivi" da un oggetto - conversione da array a oggetto - invio di uno stream…

Continue reading...
Davide Airaghi

PHP Date

La classe PHP Date permette di gestire intervalli di date, conversioni tra timezone differenti e semplici date (sia come data semplice che come data+ora). I formati di data supportati sono 3: - "db" : aaaa-mm-gg - "ita" : aa-mm-aaaa - "iso" : aaaa-mm-ggThh:mm:ss.000 La classe…

Continue reading...