I'd like to display some information within the top (very top) region of my website...I basically want to spit out the total number of blog entries within the last week (or day) and the total number of new comments in the last week (or day).
Anyone know how this can be accomplished? Does drupal keep count somewhere?
I'm trying to print today's date at a block on one of my sites. I added the following:
<div align="center"><?php
$charset = "iso-8859-1";
setlocale(LC_TIME,"es_ES");
echo strftime("%A, %e de %B de %Y." ,time());
?></div>
But when accents come into place, they look weird. I tried changing charset from utf8 to iso-8859-1 and they look ok, but then every other accent on my site looks weird. Does anyone know a clean solution to this? Am I doing something wrong?
I've just upgraded from php4.3 to php5.1.2 on my computer with apache2.047. The template.php file in my theme directory is now not being read correctly, and is causing garbage at the top of the page, before the page is displayed (its functions are not working). If I remove functions from the template.php, everything is fine.
The weird thing is, when I run the site on a webserver with php5, it seems to work fine. What could be wrong with my local install of php5? Everything seems to work fine locally if my template.php file is empty!