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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Display problem for one page

Status
Not open for further replies.

LukeJW

Programmer
Jul 15, 2004
7
US
This has baffled me for quite a while so I'll see if anyone here has a clue of something to try.

I have a page that contains a rather large "snippet" of code. This snippet is supposed to display the following search box:


I got it from the company hosting the search and the idea is to put it on a page with other content. The page I put it on happens to be a PHP page but it doesn't work. To illustrate this, I renamed the file above with a .php extention:


Refresh the page a few times and you'll see it's not even the same every time. Sometimes it looks sort of okay, and sometimes the page doesn't even load. The radio buttons never work right. This is my own personal server for playing around with and testing code. When I copied these same two pages to the production server, they both work fine!


I thought it might have been my PHP version so I upgraded from 4.3.3 to 4.3.10 but got the same results. I am running Apache2 on lukerules.com and jebrookside.com is IIS. One of the guys at the company I where got the snippet tested it on Apache 1.3 and it worked there too. But the HTML pages work fine, so I'm not sure if that's the problem.

Anyone have a clue of something to try? Thanks a lot.
 
There may be something wrong with your PHP installation, because if you save the source of the first two links, they aren't the same. It's like when your web server tries to feed the source through the PHP module the output is getting truncated in the middle.

Are there any messages in your log files?
 
Yeah, it appears to be getting cut off at apparently random points, but it only happens when using that particular snippet. All my other pages work fine.

All my PHP files are in one directory and I just copied the 4.3.10 files in there. The only things I kept from the previous install are the php.ini file and the references to the php module in httpd.conf.

I didn't see anything useful in the Apache logs. Does PHP have logs somewhere? I couldn't find any.

Thanks.
 
Correction: it looks like it gets cut off at the same point every time. It just looked to me like it was different because I kept trying it on different web pages.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top