W3C home > Mailing lists > Public > www-jigsaw@w3.org > July to August 2002

[PHP] Re: PHP and Jigsaw

From: Murray Nicholas <murray@galeforce.bu.aust.com>
Date: Wed, 17 Jul 2002 16:45:24 +1000
To: "phplist" <php-general@lists.php.net>, <www-jigsaw@w3.org>
Message-ID: <LMBBJNLPJFAIDFGFBMPDGEPIDJAA.murray@galeforce.bu.aust.com>

Some careful testing and results...

All tests invoke the URL "http://myserver:jigsawport/phpinfo.php"

Test 1:
* phpinfo.php contains exactly one line
<?php phpinfo();?>

* Jigsaw's debug flag in the default extension indexer cgiframe definition
for ".php" files is "true".

The browser shows a white page with the text:
X-Powered-By: PHP/4.2.1
Content-type: text/html

Invoking the "view->source" menu path launches a notepad session showing
exactly the same text as the browser with NO html tags.

Test 2.
* phpinfo.php contains exactly one line
<?php phpinfo();?>

* Jigsaw's debug flag is "false".

The browser shows an empty white page.

Invoking the "view->source" menu path launches a notepad session showing the
following:
<!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>

Test 3.
* phpinfo.php now contains some trivial container html.
<html>
<head><title>phpinfo page</title></head>
<body>
phpinfo follows...
<?php phpinfo();?>
</body>
</html>

* Jigsaw's debug flag is "false".

The browser shows an empty white page.

Invoking the "view->source" menu path launches a notepad session showing the
following:
<!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>


The DOS prompt running Jigsaw has the process name "JAVA" until the php page
is invoked.  At this time it is renamed to php and stays that way.  The
Jigsaw server, however, does still respond to JigAdmin commands and can be
stopped correctly.

Ummm????????

Murray Nicholas

-----Original Message-----
From: Richard Lynch [mailto:rich@phpbootcamp.com]
Sent: Tuesday, 16 July 2002 15:13
To: php-general@lists.php.net
Subject: [PHP] Re: PHP and Jigsaw

>With Jigsaw's debug facility Enabled, I get two lines on the page and the
>same two lines (without html tags of any sort) in "view source" display:
>X-Powered-By: PHP/4.2.1
>Content-type: text/html

If these two lines are showing up in the BROWSER, then something is pretty
wrong...

They're supposed to be headers...

So something could be sending out a blank line or something before these,
somehow...

If they are just showing up in debugging output, and they *ARE* headers,
then PHP *IS* getting invoked, and then dying when it tries to execute your
code.

Try using *JUST* this in your PHP document:

<?php phpinfo();?>

It's pretty hard to screw up something that short, so you'll know the PHP is
valid :-)

And, if it works, you get a wonderfully long HTML document spewed out.  It's
so fun to type so little and get so much :-)

--
Like Music?  http://l-i-e.com/artists.htm


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Received on Wednesday, 17 July 2002 02:40:51 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 9 April 2012 12:13:36 GMT