Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Weird CGI Error

Status
Not open for further replies.

andyros

Programmer
Jul 12, 2005
42
GB
Hey

I'm currently testing out the template toolkit package for use with displaying results from the swish-e search engine. The template file is an example one provided at
The problem is that it displays nothing in the web browser but the script produces the code when i run it from command line...

I've noticed a few things:

- When 'view source' in the browser it prints everything except code inside the body tags.

- The code that is printed in the console has large spaces between.

I was just wondering weather this is a common problem?

Or something rooted in the template toolkit code? If so i'll chop it up and go through it a bit more.

thanks
andy
 
Template toolkit was written specifically for web page generation, so I'd be surprised if it's anything wrong with that. May be you are missing a CGI header?
 
What does "display nothing in the web browser" mean? Blank screen or an error message?

f

"As soon as we started programming, we found to our surprise that it wasn't as easy to get programs right as we had thought. Debugging had to be discovered. I can remember the exact instant when I realized that a large part of my life from then on was going to be spent in finding mistakes in my own programs."
--Maurice Wilkes
 
sorry guys, I've sorted the problem now.

display nothing in the web browser meant blank screen.
 
what was the answer?...

f

"As soon as we started programming, we found to our surprise that it wasn't as easy to get programs right as we had thought. Debugging had to be discovered. I can remember the exact instant when I realized that a large part of my life from then on was going to be spent in finding mistakes in my own programs."
--Maurice Wilkes
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top