icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.
Old September 24th, 2007, 3:16 AM   #1 (permalink)
wgm
Registered User
Super #1
 
Joined in Mar 2005
Lives in Washougal, WA
1,306 posts
Gave thanks: 23
Thanked 39 times
Slow loading index.php

Been trying figure out why when site is PHP being slow to load, index.php only, same code for other pages (links.php, about.php).

http://www.wimc.us/index.php (hesitates loading)
http://www.wimc.us/index.html (loads as it should)

Thanks, need more information let me know, sorry if wrong forum.
wgm is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old September 24th, 2007, 3:38 AM   #2 (permalink)
Surpass Fan
Excelling Contributor
 
cowboy's Avatar
 
Joined in Nov 2005
Lives in Colorado
Hosted on DEDI
937 posts
Gave thanks: 2
Thanked 95 times
Quote:
Originally Posted by William View Post
Been trying figure out why when site is PHP being slow to load, index.php only, same code for other pages (links.php, about.php).

http://www.wimc.us/index.php (hesitates loading)
http://www.wimc.us/index.html (loads as it should)

Thanks, need more information let me know, sorry if wrong forum.
Pages are not the same. The php is waiting for reverse dns. You could use an ajax call for that which would allow the page to load and then add the hostname later after it arrived.
__________________
Where would you be if you were at the highest court in the land (US)?
cowboy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old September 24th, 2007, 4:20 AM   #3 (permalink)
wgm
Registered User
Super #1
 
Joined in Mar 2005
Lives in Washougal, WA
1,306 posts
Gave thanks: 23
Thanked 39 times
Quote:
Originally Posted by cowboy View Post
Pages are not the same. The php is waiting for reverse dns. You could use an ajax call for that which would allow the page to load and then add the hostname later after it arrived.
Huh, you lost me, I barely know PHP.

Previous hosting from SH didn't do that, now I am not sure its SH128 doing it or not.

Beats the hell out of me, about ready to leave site .html
wgm is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old September 24th, 2007, 5:31 AM   #4 (permalink)
wgm
Registered User
Super #1
 
Joined in Mar 2005
Lives in Washougal, WA
1,306 posts
Gave thanks: 23
Thanked 39 times
Nevermind, will wait another time.
wgm is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old September 24th, 2007, 10:26 AM   #5 (permalink)
wgm
Registered User
Super #1
 
Joined in Mar 2005
Lives in Washougal, WA
1,306 posts
Gave thanks: 23
Thanked 39 times
Done waiting.

Compare http://www.wimc.us/index.php to http://www.wimc.us/links.php links page loads as it should while index hesitates, coded the same except content.

Never done that before, any other suggestions, please.

Thanks
wgm is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old September 24th, 2007, 11:08 AM   #6 (permalink)
Surpass Fan
Excelling Contributor
 
cowboy's Avatar
 
Joined in Nov 2005
Lives in Colorado
Hosted on DEDI
937 posts
Gave thanks: 2
Thanked 95 times
Quote:
Originally Posted by William View Post
Done waiting.

Compare http://www.wimc.us/index.php to http://www.wimc.us/links.php links page loads as it should while index hesitates, coded the same except content.

Never done that before, any other suggestions, please.

Thanks
The links page does not require the hostname lookup of the user, which is supplied by the users ISP. You are waiting on a return value from the visitors client machine (router) before the rest of the page can load. It has nothing to do with your server.
__________________
Where would you be if you were at the highest court in the land (US)?
cowboy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old September 24th, 2007, 11:30 AM   #7 (permalink)
wgm
Registered User
Super #1
 
Joined in Mar 2005
Lives in Washougal, WA
1,306 posts
Gave thanks: 23
Thanked 39 times
My index.php page is the blame, code somewhere is off, as you can see from the link it has barely nothing on it and it loads as it should.

Thanks cowboy, just my coding is off.
wgm is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old September 24th, 2007, 11:49 AM   #8 (permalink)
wgm
Registered User
Super #1
 
Joined in Mar 2005
Lives in Washougal, WA
1,306 posts
Gave thanks: 23
Thanked 39 times
It was the IP/Hostname code causing slow page load, don't understand why all the sudden made the page load slow after using it for about 2 years, IP/Hostname code been removed.
wgm is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old September 24th, 2007, 12:44 PM   #9 (permalink)
wgm
Registered User
Super #1
 
Joined in Mar 2005
Lives in Washougal, WA
1,306 posts
Gave thanks: 23
Thanked 39 times
Here is the code that I use.
Code:
<b>IP address:</b> <?php echo $_SERVER["REMOTE_ADDR"]; ?>
<b>Hostname:</b> <?php $hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']); echo $hostname; ?>
I'll try not to post another till someone else does.
wgm is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On