Borrar archivos .svn
find . -name .svn -print0 | xargs -0 rm -rf
var_dump() más bonito
Instalar php5-xdebug:
en ubuntu: apt-get install php5-xdebug
Editar archivo /etc/php5/apache2/php.ini y poner la variable html_errors en On:
html_errors = On
Para la profundidad del var_dump, en /etc/php5/apache2/conf.d/xdebug.ini poner
xdebug.var_display_max_depth = 5
Esto dejará la profundidad en nivel 5
Reiniciar apache: /etc/init.d/apache2 restart
Ahora los var_dump() se ven con colores
Localhost
para desarrollo local con Ubuntu
redireccionar el /var/www/ a tu /home/tu_usuario , para poder trabajar cómodamente en ambiente local. crea un directorio en tu home, para este ejemplo usaremos public_html
~$ sudo gedit /etc/apache2/sites-enabled/000-default
editar el archivo que se abrirá. ejemplo de configuración:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /home/tu_usuario/public_html
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /home/tu_usuario/public_html/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
</VirtualHost>
sudo /etc/init.d/apache2 restart
IMPORTANTE: NO OLVIDAR DAR LOS PERMISOS DE ESCRITURA AL DIRECTORIO SELECCIONADO

