Gossamer Forum
Home : Products : Gossamer Links : Pre Sales :

Problems with (guess what?) nph-build

Quote Reply
Problems with (guess what?) nph-build
I like to think I'm pretty adept at installing cgi but I'm completely flumoxed by Links 2.0.

I've gotten everything working except for nph-build which returns a "page cannot be displayed" error in IE and a "The document contained no data" error in NS4.

I've tried a couple things suggested in this forum - such as commenting out the $nph++ statements in the nph-build script but this has not worked. I've also tried extending the cgi build path in the script as suggested.

Oh, and yes, everything has been transferred as ASCII in my FTP program as demonstrated by the fact that every other menu option works fine - except the nph-build (and verify and I assume e-mail) scripts.

If anyone can spare the time to give me some pointers - or if the error is recognised and a solution is available I'd be very grateful for a response to this post.

Many thanks

Smokey Joe



Quote Reply
Re: Problems with (guess what?) nph-build In reply to
You are using Links 2.0 NOT Links SQL, correct? Then this should be posted in the Links 2.0 Installation - UNIX Forum.

Have you tried simply changing the name of the script to build.cgi rather than nph-build.cgi?

Regards,

Eliot Lee
Quote Reply
Re: Problems with (guess what?) nph-build In reply to
Eliot

First off and apology to you and the other readers of this section - you are absolutely right I put my post in the wrong area. Perhaps the administrator can remove it.

However, you are an absolute star because you are dead right - I changed the name of the script to build.cgi and monkeyed around with a number of other problems that resulted and at last I've got the system running.

Many, many thanks

Smokey

Quote Reply
Re: Problems with (guess what?) nph-build In reply to
Eliot

One this is driving me nuts.

Why does changing the name of nph-build.cgi make any difference. Is 'nph' or the '-' character in some way reserved in Perl?

Regards

Smokey

Quote Reply
Re: Problems with (guess what?) nph-build In reply to
nph- is a format the triggers the server to act in a different way.



PUGDOGŪ
PUGDOGŪ Enterprises, Inc.
FAQ: http://pugdog.com/FAQ


Quote Reply
Re: Problems with (guess what?) nph-build In reply to
For more information...search http://www.perl.com for Non Parsed Header or nph.

Regards,

Eliot Lee
Quote Reply
Re: Problems with (guess what?) nph-build In reply to
I think you meant http://apache.org

From the FAQ:

In Reply To:
How can I get my script's output without Apache buffering it? Why doesn't my server push work?

As of Apache 1.3, CGI scripts are essentially not buffered. Every time your script does a "flush" to output data, that data gets relayed on to the client. Some scripting languages, for example Perl, have their own buffering for output - this can be disabled by setting the $| special variable to 1. Of course this does increase the overall number of packets being transmitted, which can result in a sense of slowness for the end user.

Prior to 1.3, you needed to use "nph-" scripts to accomplish non-buffering. Today, the only difference between nph scripts and normal scripts is that nph scripts require the full HTTP headers to be sent.
From the CGI:Push documentation:
In Reply To:
Server push scripts must be installed as no-parsed-header (NPH) scripts in order to work correctly. On Unix systems, this is most often accomplished by prefixing the script's name with ``nph-''. Recognition of NPH scripts happens automatically with WebSTAR and Microsoft IIS. Users of other servers should see their documentation for help.
PUGDOGŪ
PUGDOGŪ Enterprises, Inc.
FAQ: http://pugdog.com/FAQ