Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

strange pause

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  Mass vhosting  
Author Message
nntp_client1

External


Since: Jul 25, 2004
Posts: 2



(Msg. 1) Posted: Sun Jul 25, 2004 7:39 am
Post subject: strange pause
Archived from groups: alt>apache>configuration, others (more info?)

I'm not sure if this problem is apache or php related.

I just moved my site from a FreeBSD to a linux server. There's a page within
a frameset that takes a very long time to load, but eventually it does load.
On the old server, it worked perfectly and quickly.

The differences with the servers are:
Old server: php 4.3.2 - apache 1.3.27
New server: php 4.3.7 - apache 2.0.50

News.html is the file in the frame that doesn't load fully. It calls
scroller.php as a javascript. You can view the page outside of the frameset
at:
http://www.intellidreams.com/news.html (will take a while to render)
When I don't call scoller.php the page loads right up. Therefore the
problem must be with that file.

So I went into scroller.php directly. It stalls ½ way through as you will
see:
http://www.intellidreams.com/scripts/scroller.php
The output starts immediately, stalls in the middle, and then eventually
completes. That's when the full page appears.

Ruling out javascript as the cause:
I copied the exact output from that php file and saved it as scroller.js.
Then I altered news.html to use the js file instead of the php file.
http://www.intellidreams.com/news2.html
The page works quickly. That proves that the javascript code is not the
problem.

Ruling out bad php code as the cause:
I copied the output of scroller.php and saved it as scroller3.php.
scroller3.php now includes no php code. it's just a static file. It still
stalls before rendering fully, so there is no problem with the php code in
the file itself.
http://www.intellidreams.com/scripts/scroller3.php

The problem seems to be with the php parser on apache rendering that php
file. I tried moving it out of the scripts directory and calling it
directly. It still stalls. I had the exact same page running on my old
server, and it worked just fine.
http://205.134.177.190/news.html

I can't think of anything that would cause a file to stall for 20 seconds in
the middle of outputting it, simply because the extension is php and not js.
That's the case though.

Any ideas? I've spent all day on this.

Thanks,
Dominic

 >> Stay informed about: strange pause 
Back to top
Login to vote
nntp_client1

External


Since: Jul 25, 2004
Posts: 2



(Msg. 2) Posted: Sun Jul 25, 2004 7:59 pm
Post subject: Re: strange pause [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I found the solution. Apparently the upgraded php (or apache) requires this
line of php to appear in the header of a php script posing as a js file.

header("Content-Type: text/javascript");

It works quickly now. Smile

"Dominic" <nntp_client1.DeleteThis@toccionline.com> wrote in message
news:4QGMc.100218$a92.25990@twister.nyc.rr.com...
 > I'm not sure if this problem is apache or php related.
 >
 > I just moved my site from a FreeBSD to a linux server. There's a page
within
 > a frameset that takes a very long time to load, but eventually it does
load.
 > On the old server, it worked perfectly and quickly.
 >
 > The differences with the servers are:
 > Old server: php 4.3.2 - apache 1.3.27
 > New server: php 4.3.7 - apache 2.0.50
 >
 > News.html is the file in the frame that doesn't load fully. It calls
 > scroller.php as a javascript. You can view the page outside of the
frameset
 > at:
 > <a style='text-decoration: underline;' href="http://www.intellidreams.com/news.html" target="_blank">http://www.intellidreams.com/news.html</a> (will take a while to render)
 > When I don't call scoller.php the page loads right up. Therefore the
 > problem must be with that file.
 >
 > So I went into scroller.php directly. It stalls ½ way through as you will
 > see:
<font color=purple> > <a style='text-decoration: underline;' href="http://www.intellidreams.com/scripts/scroller.php</font" target="_blank">http://www.intellidreams.com/scripts/scroller.php</font</a>>
 > The output starts immediately, stalls in the middle, and then eventually
 > completes. That's when the full page appears.
 >
 > Ruling out javascript as the cause:
 > I copied the exact output from that php file and saved it as scroller.js.
 > Then I altered news.html to use the js file instead of the php file.
<font color=purple> > <a style='text-decoration: underline;' href="http://www.intellidreams.com/news2.html</font" target="_blank">http://www.intellidreams.com/news2.html</font</a>>
 > The page works quickly. That proves that the javascript code is not the
 > problem.
 >
 > Ruling out bad php code as the cause:
 > I copied the output of scroller.php and saved it as scroller3.php.
 > scroller3.php now includes no php code. it's just a static file. It still
 > stalls before rendering fully, so there is no problem with the php code in
 > the file itself.
<font color=purple> > <a style='text-decoration: underline;' href="http://www.intellidreams.com/scripts/scroller3.php</font" target="_blank">http://www.intellidreams.com/scripts/scroller3.php</font</a>>
 >
 > The problem seems to be with the php parser on apache rendering that php
 > file. I tried moving it out of the scripts directory and calling it
 > directly. It still stalls. I had the exact same page running on my old
 > server, and it worked just fine.
<font color=purple> > <a style='text-decoration: underline;' href="http://205.134.177.190/news.html</font" target="_blank">http://205.134.177.190/news.html</font</a>>
 >
 > I can't think of anything that would cause a file to stall for 20 seconds
in
 > the middle of outputting it, simply because the extension is php and not
js.
 > That's the case though.
 >
 > Any ideas? I've spent all day on this.
 >
 > Thanks,
 > Dominic
 >
 ><!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: strange pause 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Strange problem - Hi, I have installed Apache server 1.3 on my windows box. I own a domain, for the sake of the argument lets call it mydomain.com. When I type www.mydomain.com in IE or any other browser, I get the site served correctly but the address in the top bar..

Strange TCP behaviour - Hi all, I'll start be describing our current situation. We have an apache 1.3.19 ( old version, I know it but we need it due to compatibility reasons with the application, an new version is in the pipe. ) running as a reverse proxy. The host OS is..

Strange Log-entry? - 212.239.184.174 - - [03/Oct/2003:11:48:34 +0200] "\xe8\xd8\x0e\xfc\x9d\xfd\xc7\x8a\xa6\x17\xdd\xc1" 200 10061 "-" "-" 213.36.86.13 - - [03/Oct/2003:22:04:43 +0200] "\x16,\x84^/\xa4\xab\xf8\xb14\x91M\xcd" 200 10061...

Strange error - Hi, I host my website (light traffic) on Apache 2.0.47 running in Windows XP Home. Everything seems to be working okay except for a problem with authentication. I recently wanted to have an AOL dial-up user (AOL 9) look at a document on a password..

Strange ? appearing on site. - Hello, I am running the default Apache distribution that comes w. Fedora Core 2.0 and am finding that on one of my pages it is generating a strange "?". Just wondering if anyone knows why this is occuring. I run Apache on my laptop as well and...
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]