Webmaster Key - Discussion Forums


Welcome, Guest. Please login or register.
Did you miss your activation email?
February 09, 2012, 10:22:41 AM

Login with username, password and session length
Welceome to Forums!

Important information for guests and new members:

In order to understand the full benefits of becoming an active member of this forum, please review the following information on guest and new member restrictions. These forum changes have been prompted by an overwhelming and unreasonable amount of bot postings and incoherent guest spam messages. We wish to prevent these events from happening in the future and make our community a more comfortable place for all of our members.

For guests:

Guests are not allowed to open new topics, polls, or posts attachments.
If you wish to open up new discussions on this forum, we encourage you to register.

For new members:

New members with less than five posts are not allowed to modify additional profile information such as avatars, contact information, biographies, and signatures. However, new members are encouraged to post their own topics or reply to topics initiated by other members. Become active on the forums and 5 posts should be an easy task!

We are a diverse community with members from all over the world. We encourage new ideas and interesting conversation. Do not be afraid to post webmaster/computer-related questions or problems, as our active members are always willing to help when they are able. Interested? Join us.

+ Webmaster Key Forums
|-+ Webmaster Corner
| |-+ Site Design and Web Authoring
| | |-+ Coding Talk
| | | |-+ What is wrong with my test server?
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Stumble Upon! Digg It! del.icio.us! Add to Technorati! ReddIt!  Send this topic Print
Author Topic: What is wrong with my test server?  (Read 2249 times)
wkdf2006
Limited Member

Posts: 9


« on: October 06, 2006, 06:22:31 PM »

Three months ago I installed an XAMPP on my workstation to host my local test server . It had been working fine until yesterday. Today I found that most of my php files could not be displayed on web browsers (Firefox, Netscape, and IE). The file loading kept going and going with no ending. I could not figure out what caused the problem. As an example, the following php script I ran it successfully just a few days ago, but I could not run it today because of endless page loading on browse. I will much appreciate if you have any ideas and thoughts.

getmxrr_tester.php

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Function getmxrr() Tester</title>
</head>

<body>

<?php

//----------------------------------------------------------------------------
//Input a domain name (address), then find all email server names (addresses)
//registered on the domain. This is a workaround for function getmxrr() which is
//not supported by MS Windows. To make it work with Windows, you need to use
//this modified getmxrr()
//----------------------------------------------------------------------------

function getmxrr($hostname, &$mxhosts)
{
$mxhosts = array();
exec('nslookup -type=mx '.$hostname, $result_arr);
foreach($result_arr as $line)
{
if (preg_match("/.*mail exchanger = (.*)/", $line, $matches))
//$matches is a array with two elements, but we are interested in $matches[1] only
$mxhosts[] = $matches[1]; //Get mailserver (mail exchanger) address from $matches[1]
//$mxhosts[] = $matches[0]; //Get domain, preference and mailserver in a string
}
//return array $mxhosts > 0 );
return $mxhosts;
}//--End of workaround

//================
// Test It
//================
getmxrr('isc.ucsb.edu', $mxhosts);
echo 'The total # of mail servers found on ISC.UCSB.EDU ==> '.count($mxhosts).'<br>'.'<br>';
echo 'The mail server addresses are: ' . '<br>';

echo '<pre>'; // This is just to make it look nice
print_r($mxhosts);
echo '</pre>';

echo '-------------------------------------------------';
//------------------------------

getmxrr('aol.com', $mxhosts);
echo '<br>' . '<br>';
echo 'The total # of mail servers found on AOL.COM ====> '.count($mxhosts).'<br>'.'<br>';
echo 'The mail server addresses are: ' . '<br>';

echo '<pre>'; // This is just to make it look nice
print_r($mxhosts);
echo '</pre>';

echo '-------------------------------------------------';

//------------------------------

getmxrr('hotmail.com', $mxhosts).'<br>' . '<br>';
echo '<br>' . '<br>';
echo 'The total # of mail servers found on HOTMAIL.COM ==> '.count($mxhosts).'<br>'.'<br>';
echo 'The mail server addresses are: ' . '<br>';

echo '<pre>'; // This is just to make it look nice
print_r($mxhosts);
echo '</pre>';

echo '-------------------------------------------------';

//------------------------------

getmxrr('yahoo.com', $mxhosts);
echo '<br>' . '<br>';
echo 'The total # of mail servers found on YAHOO.COM ==> '.count($mxhosts).'<br>'.'<br>';
echo 'The mail server addresses are: ' . '<br>';

echo '<pre>'; // This is just to make it look nice
print_r($mxhosts);
echo '</pre>';

echo '-------------------------------------------------';

//------------------------------

getmxrr('bellsouth.net', $mxhosts);
echo '<br>' . '<br>';
echo 'The total # of mail servers found on BELLSOUTH.NET ==> '.count($mxhosts).'<br>'.'<br>';
echo 'The mail server addresses are: ' . '<br>';

echo '<pre>'; // This is just to make it look nice
print_r($mxhosts);
echo '</pre>';

echo '-------------------------------------------------';

//------------------------------

getmxrr('verizon.net', $mxhosts);
echo '<br>' . '<br>';
echo 'The total # of mail servers found on VERIZON.NET ==> '.count($mxhosts).'<br>'.'<br>';
echo 'The mail server addresses are: ' . '<br>';

echo '<pre>'; // This is just to make it look nice
print_r($mxhosts);
echo '</pre>';

echo '-------------------------------------------------';

//------------------------------

getmxrr('hushmail.com', $mxhosts);
echo '<br>' . '<br>';
echo 'The total # of mail servers found on HUSHMAIL.COM ==> '.count($mxhosts).'<br>'.'<br>';
echo 'The mail server addresses are: ' . '<br>';

echo '<pre>'; // This is just to make it look nice
print_r($mxhosts);
echo '</pre>';

echo '-------------------------------------------------';

//------------------------------


?>
</body>
</html>
Report to moderator   Logged
SensoVision
Administrator
Veteran
*****
Posts: 5 857


I'm proud user of Debian GNU/Linux OS


WWW
« Reply #1 on: October 09, 2006, 04:35:38 PM »

Hi man! I'm sorry for delays in asnwer, but when I first read the thead I have to run and later I forgot about it Undecided I'm sorry.
I've never used XAMPP myself only pure Apache, PHP and MySQL.
1. Can you tell what OS you're using? And have you installed any updates or do changes to your system as this is most frequently could cause a weird problem.
2. Also can you tell are all PHP files are stop work properly or it's just this script?
3. I didn't look close to your script but it seems that it do requests to remote server, right?
Report to moderator   Logged

Denis
wkdf2006
Limited Member

Posts: 9


« Reply #2 on: October 09, 2006, 10:37:27 PM »

Admin.:
  (1) My OS system is WindowXP PRO.
       Updates installed: all Win patches; Dreamweaver v.8 Update 2, but those updates were installed before the problem
  (2) Some of PHP files still work fine, such as calculator.php (it pass data to handle_calc.php) and handle_calc.php (it
       receive data from calculator.php). Some of PHP files, such as getmxrr_tester.php, stop work properly (loading file
       without ending)
  (3) getmxrr_tester.php doesn't need remote server, I ran it on my local test server successfully before the problem.
  (4) Additional info:
       A. I did not uninstall Dreamweaver (DW) MX 2004. So, there are two DW installed on my workstation. Is is a cause for
           the problem? Not likely, because I ran getmxrr_tester successfully until problem occured.
       B. What cause endless loading when display a php file on web browser? I have no ideas, but I beliave someone knows
          about it.
       C. Today I asked my colleague to ran getmxrr_tester.php on his workstation, it worked fine.

Thanks for your time and help.

Ronald
Report to moderator   Logged
wkdf2006
Limited Member

Posts: 9


« Reply #3 on: October 11, 2006, 12:01:36 AM »

Hi, everyone who read my post:
   First, thank all of you.
   I have fixed the problem. I removed the Dreamweaver 8.0 plus the update 2, then reintalled Dreamweaver 8.0 without reinstalling the update2. Update 2 was the root of the problem. Adobe has not known that the update 2 will cause problems?
anyone else got problems from Dreamweaver update 2?

 
Report to moderator   Logged
Pages: [1] Go Up Stumble Upon! Digg It! del.icio.us! Add to Technorati! ReddIt!  Send this topic Print 
+ Webmaster Key Forums
|-+ Webmaster Corner
| |-+ Site Design and Web Authoring
| | |-+ Coding Talk
| | | |-+ What is wrong with my test server?

Jump to:  
« previous next »


Our Partners
RelmaxTOP Ranking System Web Hosting RelmaxTOP Ranking System
Staff Sites
12Noon[12Noon Gallery] Andy[Urgentclick]
Tamuril[Tamuril's Digital Art Exhibit] Sensovision
Powered by MySQL Powered by PHP We are hosted by Relmax Inc. |Our Privacy Policy | Sitemap
Powered by SMF 1.1.9 | SMF © 2006-2009, Simple Machines LLC
Forum design by Tamuril © 2005.
Valid XHTML 1.0! Valid CSS!