<?php ...... ?> ignored? What's wrong???

From: B.W.H. van Beest (bwvb_at_xs4all.nl)
Date: 07/03/04


Date: Sat, 03 Jul 2004 02:23:17 +0200

When I try to display a web page with php embedded, the <%php .. %> part
is completely ignored, so it seems.

For example, the next code yields a blank page when displayed in a browser:

<html>
<head>
<title>Test</title>
</head>
<body>
<h1>
<?php
   $today = date("l");
   print("Hello: it's $today" );
?>
</h1>
</body>
</html>

Running this program from the command line (php <filename>) yields a
correctly expanded stream of data.

My guess is that is has something todo with the configuration of the
(Apache) server. But what??????

===
Apache/1.3.28 (Linux/SuSE) PHP/4.3.3 mod_perl/1.28 configured --
===

Thanks in advance

Bertwim



Relevant Pages

  • Re: Object Oriented Content System - the idea
    ... >I expected php to be smarter then that. ... >form like bytecode in memory for the next request. ... each action added some stuff to a "response" XML document. ... that map/object/data and formats it for HTML display using an includeed PHP ...
    (comp.lang.php)
  • Re: session trouble
    ... Note that you're building your display block AFTER your loop. ... <?php session_start; ... The problem here is going to be since you have multiple school clubs, it's going to be hard to relate a particular club to the entry in your database if it going to be changed. ... Another way is to add a suffix to each field, often times the primary key for the table. ...
    (comp.lang.php)
  • Re: Redirecting between PHP Pages
    ... but at the very least in a php script. ... > on the outcome of the validation, you want to do one of two things: ... with the various bits of HTML being ... Display login form ...
    (comp.lang.php)
  • Re: Open and process remote page
    ... William Hudson wrote: ... I have toyed with some of the php functions for opening URLs, ... > I need to fully emulate a browser, ... > display the remote page). ...
    (comp.lang.php)
  • Re: Redirecting between PHP Pages
    ... Display login form ... >>other php files, you should never need a redirect your page except to ... pass it on to smarty which then displays it as html for me. ...
    (comp.lang.php)