Risultati della ricerca

Symfony 1.0 ed Ajax

inserito in ajax, php, webdev da fullo @ 01-03-2007 15:03

E’ finalmente stata rilasciata la prima versione stabile di Symfony 1.0. Noto application framework per PHP 5 di cui ho già discusso più volte e che ho iniziato ad usare attivamente nell’ultimo mese e mezzo grazie ad un lavoro con Ciccio (mio guru sull’argomento).

Tra le magie di questa versione, perchè alcune cose ancora non me le spiego, ieri mi sono imbattuto nella gestione degli script con ajax. Symfony integra al suo interno Prototype (più o meno come fa anche Ruby) dando allo sviluppatore alcuni helper per attivarne le funzionalità.

La cosa stupenda è che il sistema sa se il metodo che è invocato è ajax o meno e gestisce di conseguenza il relativo templating. Cosa utilissima per non dover riscrivere due volte lo stesso codice e soprattutto per permetterne un certo livello di degradazione.

Leggi il resto »

php 5.2 e windows

inserito in php da fullo @ 28-07-2006 13:41

Finalmente PHP 5.2 avrà un installer degno di tal nome. Infatti con la prossima release 5.2 si potrà utilizzare su Windows un installer grafico che permetterà di scegliere quali estensioni, moduli e classi PEAR installare con pochi semplici click. Un’anteprima dell’installer è sul blog di Edin.

ciuaz

Usare PEAR con Zend Studio 5.2

inserito in lifehack, php, sysadmin da fullo @ 05-07-2006 18:42

Un problema abbastanza noto dello Zend Studio 5 è che l'inclusione di librerie dinamiche (usando il server interno) non funziona un granchè bene.

Quindi se ad esempio vogliamo usare classi PEAR senza usare il path completo delle stesse ma limitandoci a quelli relativi (molto comodi se poi l'applicazione verrà migrata su un server configurato allo stesso modo della macchina di sviluppo) e delegando quindi PHP a cercare negli include_path predefiniti ci troveremmo a ricevere dallo Zend Studio una marea di errori e warning.

Per risolvere basta aggiungere una riga di configurazione al php.ini utilizzato dallo Zend Studio per il debug degli script.

aprite quindi il file relativo alla versione di php su cui sviluppate (ad esempio io uso php5)

CODE:
  1. root@tartar# vi /usr/local/Zend/ZendStudio-5.2.0/bin/php5/php.ini

ed aggiungete come ultima riga il path nel quale avete installato le librerie PEAR

CODE:
  1. include_path =/usr/share/pear

A questo punto provate a far ripartire il debug del codice et voillà! tutto funziona perfettamente ;)

ciuaz

Veronica Mars e Lost

inserito in di tutto un po' da fullo @ 24-06-2006 10:48

Lo sapevo! Non me l'ero inventato!!! Nella puntata di ieri (2.11 Donut Runs) di Veronica Mars sono comparsi i numeri di Lost!!!!

Ecco uno screenshot ed un articolo a riguardo!

ps
nella puntata compare anche la mitica Lucy Lawless... per gli amici Xena! :)

ciuaz

Fedora 5 e VPN Windows con PPTP

inserito in linux, sysadmin da fullo @ 11-04-2006 17:51

Non so se avete notato ma è da qualche tempo che mi sto dedicando molto al portatile con Fedora 5, questo rinnovato interesse (che ha contagiato anche qualcun'altro), è dovuto essenzialmente al fatto che sto sempre più in giro per lavoro e che Fedora 5 sia decisamente un passo avanti a Ubuntu Dapper per quel che riguarda le ultime novità quali Beagle, DeskBar e soprattutto NetworkManager.

Il problema che ho dovuto affrontare oggi è stato quello di connettere il mio pc alla rete aziendale di un mio cliente che usa PPTP di Windows per la gestione della VPN.

Leggi il resto »

eZ Components RC1

inserito in php da fullo @ 17-01-2006 15:18

E' stata rilasciata oggi la prima release candidate di eZ Components.

L'installazione del pacchetto è molto semplice basta infatti fare un comodo aggiornamento tramite pear (dopo aver aggiunto il repository di eZ) oppure potete scaricare direttamente gli archivi compressi.

Il 30 gennaio dovrebbe vedere la luce la release finale.

ciuaz

php 5.1.1 rilasciato

inserito in php da fullo @ 29-11-2005 16:06

Non sono passati neanche 4 giorni che php 5.1.1 viene rilasciato per coprire alcuni grossi problemi di compatibilità aperti dalla versione 5.1.

* Native date class is withdrawn to prevent namespace conflict with PEAR's date package.
* Fixed fatal parse error when the last line of the script is a PHP comment.
* eval() hangs when the code being evaluated ends with a comment.
* Usage of \{$var} in PHP 5.1.0 resulted in the output of {$var} instead of the $var variable's value enclosed in {}.
* Fixed inconsistency in the format of PHP_AUTH_DIGEST between Apache 1 and 2 sapis.
* Improved safe_mode/open_basedir checks inside the cURL extension.

Maggiori informazioni sul ChangeLog ufficiale.

ciuaz

Sviluppare applicazioni windows con php

inserito in open source, php da fullo @ 29-11-2005 13:06

Che php-gtk non ha riscosso un gran successo a causa della macchinosa gestione del pacchetto e dell'installazione non è un mistero.

Consci del fatto gli sviluppatori di WinBinder hanno creato uno strumento per sviluppare applicazioni client-side sfruttando le proprie librerie ma anche le pear, o i moduli pecl e compilando il tutto per la piattaforma microsoft (purtroppo è l'unico limite del programma) .

In pratica WinBinder per funzionare aggiunge all'interprete php un layer che si occupa della gestione delle chiamate al sistema operativo e della creazione (e gestione) delle finestre. Gli esempi presenti sul sito fanno vedere come sia possibile trasformare uno script in un'applicazione windows con pochi semplici passaggi.. decisamente interessante come progettino...

Ne parlo anche su ossblog.it

ciauz

php 5.1

inserito in php da fullo @ 26-11-2005 02:03

Rilasciato php 5.1, tra le novità più importanti l'inclusione di default della libreria PDO, alcune patch di sicurezza e altro...

* A complete rewrite of date handling code, with improved timezone support.
* Significant performance improvements compared to PHP 5.0.X.
* PDO extension is now enabled by default.
* Over 30 new functions in various extensions and built-in functionality.
* Bundled libraries, PCRE and SQLite upgraded to latest versions.
* Over 400 various bug fixes.
* PEAR upgraded to version 1.4.5

ciauz

Seagull Day a Padova

inserito in php, tecnologia da fullo @ 06-10-2005 17:49

Da oggi fino al 9 di Ottobre a Padova si terrà la conferenza chiamata Seagull Days. Per chi non lo sapesse Seagull è un framework/cms in php che sfrutta PEAR per moltissime delle sue funzioni.

Peccato non aver saputo prima dell'iniziativa o avrei organizzato in maniera differente il weekend...

ciuaz

Gestire DB con i DataObject

inserito in php da fullo @ 03-10-2005 17:34

Interessante questo articolo su phpRiot su come utilizzare una classe dataobject generica (e non quella di PEAR) per la gestione dei propri db.

Nell'articolo vengono evidenziate passo passo tutte le possibili casistiche di utilizzo e ne viene realizzato il codice.

ciuaz

php|architect settembre

inserito in php da fullo @ 22-09-2005 09:52

Nel nuovo numero di settembre di php|architect:

An Introduction to PDO
A common complaint of the anti-PHP “expert” is the lack of a bundled, uniform database access component. With the advent of an improved object model, in PHP 5.0, a few of PHP’s core developers decided that the time has come to fill this hole with PHP Data Objects (PDO). The package, itself, has been in PECL for quite a while, now, but with the upcoming release PHP 5.1, PDO will be bundled in the main PHP distribution. What does it do? How does it work? One of PDO’s main developers, Ilia Alshanetsky, explains.

Roll Your Own Data Abstraction Module
You may already use database abstraction in your applications, perhaps through one of the available data-base abstraction layers, such as PEAR::DB, or PDO (see the PDO article in this issue), but what about various idiosyncrasies in the actual SQL? Perhaps you’ve never even considered this problem. This article will help you the data abstraction beast.

Implementing Your Own Trackbacks
If you’ve been around the internet for any length of time, chances are you’ve seen a weblog. Chances are, if you’ve seen a weblog, then you’ve seen a trackback. You might not have known it at the time or even understood what it was, but more and more of the blogging tools out there are using them. So, what are these elusive trackbacks and why do they even exist? Author Chris Cornutt explains.

End-To-End Testing With PHP and Internet Explorer
Automated testing can greatly improve the quality of your product. In this article, Oz presents a framework for creating automated tests that can simulate end-user activity. By leveraging the full faculty of Internet Ex-plorer, these tests can do just about anything that your users can do.

Security Corner: PHP Security Audits
Peer reviews are one of the most useful and underutilized development techniques. Although professional security audits tend to be quite expensive, peer reviews can offer a great deal of value at a decreased cost. With a moderate understanding of how to audit PHP code, you can be a valuable asset to any PHP development team, and columnist Chris Shiflett shows you how.

Test Pattern: State of Confusion
Bug-free code is code you can understand completely. Unfortunately, it doesn't take much to cause us uncertainty. Even a small amount of complexity will place demands on our memory, and our memory is extremely limited. If we tax our brains, we will get bugs. Marcus Baker examines how the number of bugs in a piece of code can be correlated to its readability.

Tips & Tricks: Input Filtering, Part 3
This month’s installment of Tips & Tricks concludes the series on filtering input, providing practical examples and helpful tips to filter input using regular expressions, test for the length of data, and ensure acceptable values.

ciuaz

pear 1.4.0

inserito in php da fullo @ 21-09-2005 10:07

C'è fermento nel mondo del php, è stato infatti rilasciata la versione 1.4.0 di Pear . Il maggior cambiamento è la nuova gestione dei pacchetti e delle dipendenze che permettono di utilizzare dei canali (o repository) contenenti classi da scaricare automaticamente più o meno come avviene per i pacchetti rpm con yum con redhat/fedora o deb per debian/ubuntu.

il comunicato ufficiale lo trovate qui.

ciuaz

Pearadise

inserito in php da fullo @ 09-09-2005 09:35

Nasce Pearadise:

pearadise.net is a portal website which provides access to the data of PEAR channel servers in combination with services around it. Every owner of a PEAR channel may plant his channel into pearadise.net to make it become a part of it. The channel harvester will then aggregate the channel data on a regular basis and the visitors of pearadise.net will be able to browse and search the data through its interface.

ciuaz

php|architect agosto

inserito in php da fullo @ 24-08-2005 21:46

In questo numero di php|architect

An introduction to AJAX and JPSpan
In February, AJAX burst onto the internet leaving hundreds of experimental projects in its wake, talk of web 2.0, and truck loads of hype. Don’t let the hype scare you away, AJAX offers lots of benefits. Let Joshua Eichorn introduce you to AJAX and then get to work building a scrolling table using JPSpan, to get a practical introduction to the new technology.

May I see Your License Please?
Last year, the Business Software Alliance reported that 35% of all software installed was pirated. In a world where code-theft is commonplace, and crackers are waiting with itchy palms to make your script accessible to the masses for zilch, author Alasdair Stewart will show you how to keep the doors of script piracy locked, bolted and chained shut, and for less than you might think.

Release Your Next Project as a PEAR 1.4.0 Package
With the release of a stable PEAR 1.4.0 installer on the horizon, now is a good time to get familiar with the new features provided by PEAR 1.4.0 that can make distribution of your open source and proprietary libraries and applications easier than ever before. Returning author Clay Loveless gives you a practical example in this piece.

PHP at Home
Do you have "dumb" appliances at home that you wish were a little smarter? Have you ever wished you could control the lighting in the next room from your terminal? Author Ron Goff has done just this, and all with our favorite language--in this article, he shows you how.

Security Corner
Are you stuck in a shared hosting environment? Perhaps your server hosts many PHP sites, and you wonder about its benefits and limitations? Columnist Chris Shiflett gives you the scoop a long-time PHP feature: safe_mode.

Tips & Tricks
You've heard a lot of buzz about security in PHP, lately, but you're still confused about this "input filtering" thing? Ben Ramsey lends a helping hand in part 2 of his mini-series on this technique.

Other Peoples' Code
We shouldn’t be writing code anymore. By now everything should already have been written and we should just be stitching together libraries and prewritten components. We should be, but we often don’t. Are we blindly following a “not invented here” philosophy and needlessly reinventing wheels? Or are we right to be nervous? Read on for Marcus Baker's insight

ciauz


phpday 2009