Posts in php

Eliminar directorios de manera recursiva en PHP

agosto 19th, 2008 Posted by php 0 thoughts on “Eliminar directorios de manera recursiva en PHP”

function full_rmdir($dirname){
if ($dirHandle = opendir($dirname)){
$old_cwd = getcwd();
chdir($dirname);

while ($file = readdir($dirHandle)){
if ($file == ‘.’ || $file == ‘..’) continue;

if (is_dir($file)){
if (!full_rmdir($file)) return false;
}else{
if (!unlink($file)) return false;
}
}

closedir($dirHandle);
chdir($old_cwd);
if (!rmdir($dirname)) return false;

return true;
}else{
return false;
}
}

Imágenes con PHP / Librería GD

agosto 12th, 2008 Posted by imagenes, php 0 thoughts on “Imágenes con PHP / Librería GD”

http://es.php.net/gd

http://www.php-hispano.net/archivos/Manuales/177/1.0b/Manual-sobre-el-uso-de-la-libreria-GD1-0b.htm

Obtener fecha y hora en PHP

agosto 8th, 2008 Posted by php 0 thoughts on “Obtener fecha y hora en PHP”

http://webmasters.navegalis.com/articulo/60/29-07-2003/obtener_la_fecha_y_la_hora_del_servidor.php

Upload de archivos con Zend Framework

agosto 7th, 2008 Posted by php, zend framework 0 thoughts on “Upload de archivos con Zend Framework”

http://akrabat.com/2008/04/07/simple-zend_form-file-upload-example/

Upload de imagenes

move_uploaded_file :: php

Tutoriales de Zend Framework

agosto 7th, 2008 Posted by php, zend framework 0 thoughts on “Tutoriales de Zend Framework”

La lista está en

http://www.tufuncion.com/tutorial-zend-framework

Paamayim Nekudotayim

agosto 6th, 2008 Posted by php 0 thoughts on “Paamayim Nekudotayim”

Paamayim Nekudotayim (pronounced [paʔamajim nəkudotajim]) is the official name for the Scope Resolution Operator (::) in PHP. It means “twice colon” or “double colon” in Hebrew.

Nekudotayim (נקודתיים) means ‘colon’; it comes from nekuda (IPA: [nəkuda]), ‘point’ or ‘dot‘, and the dual suffix ayim (יים-), hence ‘two points’. Similarly, the word paamayim (פעמיים) is derived by attaching the dual suffix to paam (IPA: [paʔam]) (‘one time’ or ‘once’), thus yielding ‘twice’.

The name was introduced in the Israeli-developed[1] Zend Engine 0.5 used in PHP 3. Although it has been confusing to many developers, it is still being used in PHP 5, as in this sample error message:

Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in file on line line



Visto en Wikipedia

Mac + Apache + MySQL + PHP = MAMP

julio 30th, 2008 Posted by apache, mac, mysql, php 0 thoughts on “Mac + Apache + MySQL + PHP = MAMP”

La url: http://www.mamp.info/en/index.php

Hay una version de descarga gratuita que funciona bastante bien.

El problema que tiene es que por defecto trae seteado que no se muestren los errores de PHP. Para solucionarlo hay que ir a:

Applications -> MAMP -> conf -> php

y editar el archivo php.ini

cambiar en la linea 277 que dice:

display_errors = Off

por:

display_errors = On

y resetear los servidores.

MSN PHP

julio 29th, 2008 Posted by php 0 thoughts on “MSN PHP”

Una clase para conectarse a MSN con PHP.

http://flumpcakes.co.uk/php/msn-messenger

Copyright © 2018 programadorfreelanceargentina.com

Programador Freelance Argentina