Drupal
De gacq wiki
Revisión del 16:29 27 jul 2006 de 192.168.0.105 (discusión)
Errores
Error en ejecucion de cron
From: root@otrasyerbas.com.ar (Cron Daemon) To: www-data@otrasyerbas.com.ar Subject: Cron <www-data@geacequ> [ -x /usr/share/drupal/scripts/cron.sh ] && /usr/share/drupal/scripts/cron.sh Fatal error: Call to undefined function: mysql_connect() in /usr/share/drupal/includes/database.mysql.inc on line 31
El script del cron usa las extensiones de mysql de php4-cli que hay que habilitar editando /etc/php4/cli/php.ini y descomentando "extension=mysql.so"
Ejemplos Bloques
<?php $uptime = shell_exec("cut -d. -f1 /proc/uptime"); $loadavg_array = explode(" ", exec("cat /proc/loadavg")); $loadavg = $loadavg_array[2]; $days = floor($uptime/60/60/24); $hours = $uptime/60/60%24; $mins = $uptime/60%60; $secs = $uptime%60; echo "This server has been up $days day(s) $hours hour(s) $mins minute(s) and $secs second(s)"; echo "<p><br>"; print("[ Current server load: " . $loadavg . " ]"); ?>