<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Sorry.<br>
I undertand it like you&nbsp; are not allowed to use php?<br>
If you are admin, go to <a class="moz-txt-link-freetext" href="http://www.yoursite.no/admin/settings/filters">http://www.yoursite.no/admin/settings/filters</a> ,
and configure a "rolle" for php if nessesary<br>
I made a rolle for my self (with all rigths)&nbsp; even that I am an admin <br>
Don't ask me why? but it helps some time.<br>
<br>
dupal1.no skrev:
<blockquote cite="mid4624E27A.1040002@drupal1.no" type="cite">
  <pre wrap="">Hi.
I tried our code and it function well here.
My code:
&lt;p&gt;&lt;?php
echo date("Y. F j. (l)");
?&gt;&lt;/p&gt;
And:
Inndataformat <a class="moz-txt-link-rfc2396E" href="http://www.drupal.no/admin/build/block/configure/block/5#">&lt;http://www.drupal.no/admin/build/block/configure/block/5#&gt;</a>
Filtered HTML

    * Tillatte HTML merker: &lt;a&gt; &lt;em&gt; &lt;strong&gt; &lt;cite&gt; &lt;code&gt; &lt;ul&gt; &lt;ol&gt;
      &lt;li&gt; &lt;dl&gt; &lt;dt&gt; &lt;dd&gt;
    * Automatisk linjeskift

PHP code

    * Du kan legge inn PHP-kode.

Full HTML

    * Automatisk linjeskift


And that was that.
(Norwegian )

Daniel skrev:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Hi everyone!

I'm trying to put a little one-line date string on my site (eg.: 2007. 
April 16 (Monday)). The most quick and easiest way I thought was to 
create a new block (with admin/build/block) and put this code in it:
&lt;?php
echo date("Y. F j. (l)");
?&gt;

Then add this block to my site.

But when loading the page I just get the code displayed and not 
executed. I have an Input format which allows PHP code and is available 
to nobody (so I can use it only with uid==1), and I've added the block 
content with this filter.
Can't see what is the problem :\

Please comment, thank you!

ps.: If there is a feature already in drupal which does this, that would 
be even better :)

Daniel
  
    </pre>
  </blockquote>
  <pre wrap=""><!---->
  </pre>
</blockquote>
<br>
</body>
</html>