Click to See Complete Forum and Search --> : PHP printing headers in wrong place


Anon
08-02-2000, 09:47 AM
OK I am running windows 98 with the latest versions of php and mysql offered up to this date. For some reason, my php scripts process fine under the document root, but they always print the content type before anything else comes out (which it should), but when I view the source it shows the content type above the and in the page you actually see in the browser. What causes this and is there any remedy?

Anon
08-02-2000, 01:04 PM
Oh yah in addition to my post I run Apache 1.3.12 for windows

Anon
08-03-2000, 02:34 AM
John,

I'm guessing your output looks something like this?

X-Powered-By: PHP/4.0.1pl2 Content-type: text/html

If this is the case, the problem is caused by having dynamic extensions uncommented (ie. loaded into the engine) in your php.ini. Just comment out all the dynamic extensions and see if that solves your problem. It won't affect MySQL as support is now native. For additional dynamic extension support, try going to either:

1) download.swwwing.com
2) www.mm4.de/andreas.otto/php_related/

Both sites have provide PHP builds with additional support. Hope this helps!

Cheers,

Geoff