Enviate copias de seguridad de tu base de datos a tu email | aNieto2K
Backup2Mail
Se trata de un pequeño PHP que se encarga de realizar el backup automáticamente por nosotros y enviarlo por email al que nosotros le hayamos especificado.
Enviate copias de seguridad de tu base de datos a tu email | aNieto2K.
Utilidades para comprobar la calidad del código PHP « Think Free
5 herramientas para comprobar la calidad de código PHP:
PHP_CodeSniffer comprueba si falta algún elemento de código estándar en los scripts PHP, Javascript y CSS
phpmd busca en el código PHP posibles problemas como bugs, código no óptimo o expresiones complicadas.
phpcpd detector de código PHP copiado/pegado.
PHP_Depend herramienta de métricas PHP.
PHPUnit framework de unidades de test.
Quality Assurance Tools for PHP
Vía / PHPDeveloper.org
via Utilidades para comprobar la calidad del código PHP « Think Free – Linux.Php.Java.ME.Movies.
The seven best PHP sites @ SourceRally.net PHP Community
PHP talks
A collection of PHP presentations from various conferences. This is by far the best place to find tips and more in depth knowledge on how to use PHP the best way and optimizing code as well as your server's performance.
Planet PHP
An aggregate of some of the top dogs' blogs in the PHP community. Some of the other pages listed in this article will coincide with the aggregation of Planet PHP.
Ilia Alshanetsky's Blog
Blogging on PHP Core releases, PHP usage and PHP security.
Stefan Esser's Blog
The developer of hardened PHP and the Suhosin extension, two tools for securing shared PHP environments. Stefan Esser's Blog is on this list due to his attention to the security of the PHP-core.
PHPdeveloper.org
Humanly moderated news and job offers from the PHP world.
via The seven best PHP sites @ SourceRally.net PHP Community.
PHPBuilder.com, the best resource for PHP tutorials, templates, PHP manuals, content management systems, scripts, classes and more.
NuSOAP – SOAP Toolkit for PHP
NuSOAP - SOAP Toolkit for PHP | Get NuSOAP - SOAP Toolkit for PHP at SourceForge.net.
Defensive programming practices to survive Web site traffic peaks – PHP Classes
- 1. Avoid accessing databases
- 2. Cache Web pages
-3. Avoid needless personalization
- 4. Queue tasks that may take too long
- 5. Move images, CSS and Javascript to a multi-threaded Web server
- 6. Minimize page serving time with page compression
- 7. Put the Web, mail and database servers in different partitions
- 8. Distribute the load when the servers limit is reached
Smarty: Cómo averiguar el tamaño de un array
Esta entrada quizás sea un poco friki para la mayoría, pero es que en esta libreta de apuntes tiene que haber de todo, perdonad las molestias ):
Para averiguar el tamaño de un array desde smarty sólo tienes que teclear:
{$mi_array|@count}
Esto utiliza la función count de php desde smarty.
Si necesitas hacer cálculos con ese valor tendrás que hacer algo como esto:
{assign var=mi_array_count value=$mi_array|@count}
via Smarty :: View topic - How to find the length of an array?.
Buscar valores dentro de un array en PHP
La función in_array comprueba si un valor está dentro de una matriz y devuelve true o false
En la práctica sería:
in_array(«valor que busco», $array_donde_buscar)
Diferencia entre include y require
A partir de la version PHP 4.0.2 ambas construcciones se comportan exactamente de la misma manera, con la única diferencia de que si el archivo llamado no existe, include solo da una advertencia, y sigue ejecutando el código, mientras que require produce un error y interrumpe la ejecución.