[PHP] Re: PHP and Jigsaw

2002-07-16 Thread Murray Nicholas

Some careful testing and results...

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

Test 1:
* phpinfo.php contains exactly one line


* 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


* 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:





Test 3.
* phpinfo.php now contains some trivial container html.

phpinfo page

phpinfo follows...




* 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:






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:[EMAIL PROTECTED]]
Sent: Tuesday, 16 July 2002 15:13
To: [EMAIL PROTECTED]
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:



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


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




[PHP] PHP and Jigsaw

2002-07-15 Thread Murray Nicholas

I've been trying to get a simple php page to produce any output through a
Jigsaw server.

I've got past the problem of cgi.redirect and now my server launches php and
returns a "page" but it's blank.  There is no evidence of my html or php
code having been seen by the server.  I've run the php script from the
command line and I get the html code I'd expect.

With Jigsaw's debug facility DISabled for the cgi scripts I get the
following html served to the browser:








which produces a totally empty, white page.

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


At this point, my php script file contains only php commands - no html.

Any clues?

Murray Nicholas


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