Jump to content

gingerboy101

Members
  • Posts

    24
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

gingerboy101's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi Corbin, I think that you are right, and I am not sure that I have the knowledge base to make the changes, your suggestion just to call the IP address is working, and is allowing me to see the dev servers page which is all I need so I think we can kind of call this a fix. Cheers for your patience and help on this one. Gingerboy101
  2. Hi, Server 1 is a windows box and is the production (so to speak) enviroment, which has a web server (apache) and a mail server, it is also listed as the primary DNS server and holds all of my domain DNS on it. The second box is the dev enviroment, again with a web server and mail server on it, I need the mail server just to make life easy when testing send mail from php. The prod server is working fine and picks up all DNS and completes all call e.g. to the listed domains for either web or email. It is using vhosts to complete multiple domains. However as there are x domains on the server it has a DNS record for each domain and does come with a syslog warning to say that no primary domain has been found??? although it does over ride this error, I assume because all of the domain act as primary it can not distiguish the true primary. With in on of the domains there is a second A (host) record that points to the dev box's ip address and then 2 alias reocreds to point to a secure connection and non secure connection on the dev box. (I use the secure connection where any client details are added to mailing lists or loging in to make their own changes. The exact set set up for this is also on the prod box. So, I can call the domain (prod box) (also being used for test) from a client to web the site and get emails from the prod box so I bielive that this is set up correctly. If I call the dev box from a client (http://new.host.com) it will intermitantly give me the development site, and then also intermiterantly give me the "DIE!!!" message, however if I now call the dev box on the local netwrok using the network IP address it will display the home page without errors and seems to be stable e.g. I do not get the message. However if I leave the dev box on try to call the server from the WAN (so out side of the LAN) it will not display, so this why I think it could be DNS aswell. The final parts of the set up, the dev box is not listed as a dns server on the router and in the past when I have done this it has stopped the prod box from showing the domain (I have no idea as to why as the Primary DNS server should be called). All of the tests LAN side will resovle and give me the dev details, but I have the DIE error on client browers (intermiterantly) and it can not be called externally. I hope that summarises the issue? Cheers
  3. Ok Corbin, I know understand why you are listed as a guru... Calling the site via the domain name is failing and giving the die!!! error, however calling it by the ip addy is getting a result, I this would indicat the DNS on the server is failing somewhere? I ait for you adive in the mean time I am off to check the servers DNS. Cheers
  4. Hi Corbin, Ok I just tried this when the browers cam back with DIE!!!!, telnet * thing again and this came back with the page source. I am hoping that we are getting closer? BTW I only have one dns server set up on the client, and then set the seocnd up to see if that would help and no same error? Hum I have no idea.....
  5. Hi Fella, just went your site out of interest and clicked on all of the menu headers and got this... Not Found The requested URL /NeaNixtv/2.0/signup.php was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. Apache/1.3.41 Server at phpbb-space.com Port 80 you may have been aware or not?
  6. Hi Corbin, I am not sure what you are asking me to do here, however I did try what you sent across, the sciprt you gave did not see to accepted so I keep trying and in the end telnet ip port did get a responce from the server once I had broker the call it did give teh source of page index.php I hope this is what you expected me to see? Cheers
  7. Sorry grahamb, Peranha, but should it not also read: <?php require_once 'mysql_connect.php'; $DJshows = mysqli_query($mysqli, "SELECT * FROM schedule"); do { echo "<option value=\"{$show['show']}\">{$show['ID']} {$show['Show']} {$show['StartTime']}</option>"; }while ($show = mysqli_fetch_assoc($DJshows)); ?> Or am I just being silly?
  8. Is the link just for the user? if not then how long dose the link stay on the site for. e.g. if the user comes back x days later will the link still be valid? if the answer is yes and the user has already read the link then I can see no other way, unless you store that the link has been read some where, user cookie? I would guess that the only way would be store the responce in a table.
  9. Short and dirty, I would add an extra column say 'new' to your table and set default to be 'u' = unread, when the end user clicks on the link and reads the xxxx on the new page just update the table to 'r' read.
  10. Yeah sorry an explination would have helped, when I do this i put the checked boxes value into an array using [] e.g.name="countybox1[]" then I can just cycle throung them using foreach($_POST['Countybox1'] = $SelectedCounty), and then for ease I put it into a table to read back later. It then gives me the ID / name of the checked box from the value. Hope this makes more sence and helps.
  11. Not sure if the below will help. Not sure if you noticed on you code you have not commented out one of the "&" next 160. The Code below may not be the most elegant but this is how I would do your form and pick the checked boxes back up. <?php $now = date("d/m/Y"); $next = date('d/m/Y', strtotime("+1 year")); $Country = mysql_query("SELECT DISTINCT Country FROM My_Country_Table") or trigger_error("SQL", E_USER_ERROR); $CountryArray = mysql_fetch_assoc($Country); ?> <form method="post" action="" name="timereg" onSubmit="return verifyRegister(this.form)"> <p class="para">Please choose the areas you would like to appear in below, for a one year listing period (<?php echo $now." - ".$next;?>).</p> <input type="hidden" value="<?php echo $now;?>" name="1yrstartdate"> <input type="hidden" value="<?php echo $next; ?>" name="1yrenddate"> <input value="<?php echo $rows['companyname'];?>" type="hidden"> <table border="1" cellpadding="4" cellspacing="0" width="440" style="border-collapse:collapse; BORDER: 1px #aa9498; border-style: solid; margin-top: 0px; margin-bottom: 16px;margin-left: 4px;"><tr><td style="BORDER: 1px #aa9498; border-style: solid; padding: 6pt;" bgcolor="#ffffe1"> <? $myCountry = $CountryArray['Country']; do { $i = 0; ?> <input type="checkbox" name="countybox[]" id="countrybox[]" value="<? echo $myCountry; ?>" onClick="england"> <b><? echo $myCountry; ?></b><br><br> <? $County = mysql_query("SELECT DISTINCT County WHERE Country_Column = '$myCountry' FROM My_Country_Table") or trigger_error("SQL", E_USER_ERROR); $CountyArray = mysql_fetch_assoc($County); do { ?> <input type="checkbox" name="countybox1[]" id="countrybox[]" value="Bedfordshire" onClick="<? echo $CountyArray['County']; ?>"> <? echo $CountyArray['County']; ?><br><? $i++; if($i % 13 == 0) { ?> </td> <td style="BORDER: 1px #aa9498; border-style: solid; padding: 6pt;" bgcolor="#ffffe1" valign="top"> <? } } while($CountyArray = mysql_fetch_assoc($County)); ?> </td></tr></table> <? } while($CountryArray = mysql_fetch_assoc($Country)); ?> <p class="para"> <input type="text" name="multicountybox" value="Choose 2 or more regions for a £100 discount" style="border:0px;cursor:default;background:#f5d5da;width:360"><br><br> Total Price: £<input name="grandtotal" type="text" onFocus="this.blur()" size="12" value="0" style="text-align:center;cursor:default"> <nobr><input name="truepricebox" type="text" size="6" style="border:0px;text-align:right;cursor:default;background:#f5d5da" value="(£0"> per county)</nobr></p> <img src="img/blank.gif" name="regionmap" alt=""> <p class="para"><input type="checkbox" name="terms"> Please tick this box to verify that you agree to our standard <a href="javascript:void(0);" onClick="popTerms()">terms & conditions</a>.<br> <br> <input type="submit" value="Submit entry" class="inputbox" name="submit2"> </p> </form> ########################################################################## This is where I then would pick up the checked boxes ########################################################################## <? $cou = 0; $county =0; foreach($_POST['Country'] = $SelectedCountry){ $cou++; foreach($_POST['County'] = $SelectedCounty){ ### assuming you have a cart table mysql_query("INSERT INTO Cart SET (SelectedCountry, SelectedCounty, cust_id) Values ('$SelectedCountry', '$SelectedCounty', '$Cust_Id')") or trigger_error("SQL", E_USER_ERROR); $county++; } echo "Number of Countries = "$cou; echo "Number of Counties = "$county; ?> Hope it helps (sorry I used short "<? rathee than <?php")
  12. I did an ipconfig first and the name resolved to the correct ip addy, however I had not tried nslookup / to be honest I never heard of it, it did give the correct IP address and shows the bounce from the the other machine which is the primary DNS server e.g. Name: host.com Addresses: ***.***.***.2, ***.***.***.3 Aliases: new.host.com I therefore assume that it is working correctly?
  13. Hi Guys, I have had a quick look around on the forum and caan not find an anwser so, does anyone know or can confirm when or if an array is removed from memory. I ensure that I use mysl_free_result() on the query when I have finnished with it and that the db connection is closed, however should I also close the array for best practice? Trivial I know but I just want to keep my servers workload to a minimum. Cheers
  14. Hi Corbin, The page is index.php, on seeing your question I have put an index.html page on the server to see if that worked with out issues unfortunatley the same responce was given fine on servers own browser but not when called from a client. I have kept searching and I am wondering if it is the DNS, my little set up is driven by my prod server as the main DNS server so when called it goes there and is then redirected to the test server. I got a friend to check if they could see the dev server and the index page and they could not, this could be my isssue, although I would have expected to see a time out on the browser rather than die. What are your thoughts on the index.php page? Again thanks for the help.
  15. Thanks for the reply, I have checked all of the config files, and have switched on every piece of error msg that I can and set mysql DB to log all transactions to see if I can catch it there, but so far no joy. I just do not understand why it will work directly on the server but not on my machine? lost all I can think of is comms between 32 bit machines and 64 bit. Pass may be it is just time for a new dev machine..... Thanks for the thoughts....
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.