Re: Blank screen problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252"></HEAD>
<BODY></BODY></HTML>


this is what I get when I view the source

And the following is in test.php

<html>
<head>
<title>PHP Test</title>
</head>
<body>
<p>This is an HTML line</p>
<?php
echo â<p>This is a PHP line</p>â;
phpinfo();
?>
</body>
</html>

Quite curious is it not?





On Fri, 07 Jan 2005 14:45:34 +0000, Luis Moreira <luis.moreira@xxxxxxxxxxxxxxx> wrote:

When you run a PHP script, if you "view source" you don't see the code.
What you see is the result of the script.
If the script doesn't output text, be it html or not, there's nothing to
see...

The script

<html>
<body>
<?php
    echo "<b>Hello World</b><br>";
    echo "It's me !";
?>
</body>
</html>


would produce

*Hello World*
It's me !


with this as the "view source" result

<html>
<body>
<b>Hello World</b><br>It's me !</body>
</html>


Luis



Roel Dillen wrote:

I ran a basic php script (php_info) but appearantly it doesn't do anything.
In viewsource the php code doesn't show up. I have Apache 2 and PHP 5 I have
adapted my httpd.conf so it should be able parse the php through the CLI
method. I have added these lines to achieve this
LoadModule php5_module "c:/php/php5apache2.dll"
AddType application/x-httpd-php .php
PHPIniDir "C:/php"


I have added c:/php to my Path variable in windows




-- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux