Results 1 to 2 of 2
Related
-
Is it possible that IIS, Xampp that consist of mysql,apache and php in window server Forum: Web Hosting Forum
Replies: 0 -
Configuration of Apache to work the php webpage on Intranet Forum: PHP Forum
Replies: 0 -
cgi scripts gives forbidden error on apache server Forum: CGI Perl Forum
Replies: 2 -
js script that doesn't work ??? Forum: Javascript Forum
Replies: 1 -
Apache Server Software? Forum: General Discussion
Replies: 3
-
02-27-2007, 07:33 AM #1
Turning off buffering ($=1) doesn't work on Apache server
Hello all
I used the code below to turn off the buffering but it doesn't work. When I call the code from the browser it supposed to show START at first and then wait for 5 seconds and then show END. But the browser doesn't display anything for 5 seconds and then show START and END at the same time. When I tested the code on a Windows based system it works great but it works as I said on Apache server. Also the code works great at the command line. Does any body knows what the problem is?
Code:#!/usr/bin/perl use strict; $| = 1; print "Content-type: text/html\n\n"; print "<html><head></head><body>"; print "START\n"; sleep 5; print "End\n"; print "</body></html>\n";
My Apache version is: 1.3.37 (Unix)
Thank you all.Last edited by DeadMeatGF; 02-27-2007 at 09:39 AM. Reason: Added Code tags
-
03-01-2007, 02:42 PM #2
Re: Turning off buffering ($=1) doesn't work on Apache server
I seggest you make sure your apache settings are correct. Look up on info about output buffering in the apache settings. usually web systems flush on 4096 bits. Also make sure you are sending the correct headers, some browsers wont show anything util it gets it all if you have the wrong headers are sent. Also make sure that apache isnt gz'ing it.
Cloudjiffy- PaaS for Developers
10-05-2020, 12:30 AM in Web Hosting Forum