![]() |
| ||
| whois script not working in IE hi guys, I found a simple whois script and intregrated it completely into my site before testing it on IE (oooops!) and it only works on firefox and safari. On IE the result text that should be written as a result of the below section of the code: if (eregi('No match',$result)) {dosnt show up... the script im using is below. <? Any ideas why not? Thanks for the help, Max |
| ||
| Re: whois script not working in IE Umm.. I tried this script. It worked only for www.yahoo.com (on both mozilla and firefox). It didn't work for www.microsoft.com , www.daniweb.com or even www.whois.net. :S I think something is wrong with the script. Edit: It worked for www.msn.com ;) |
| ||
| Re: whois script not working in IE ah well i took out all of the irelavent information before posting it - for example at the moment if the whois dosnt find anything for a domain it will write a paypal add to basket button so i took all that out and in the process might have killed it a bit :P here is an example of where the script is working: http://www.economizerz.com/daniweb/w...iptexample.php the full script im currently using is: <? Max |
| ||
| Re: whois script not working in IE Nope. Still the same result. Maybe you would like to use this script :) http://www.hotscripts.com/PHP/Script...ois/index.html (Max's Whois). I have tried it and it works like a charm! |
| ||
| Re: whois script not working in IE Ah thanks for the new script. Im testing it all out but I do have one problem which is that I cant integrate a .co.uk domain suffix into it. this is an example of the code used to check the .com suffix: $this->serverList[0]['top'] = 'com'; and this is what i wrote (at the end of the suffix list) to try and get .co.uk working $this->serverList[9]['top'] = 'co.uk'; iv tried quite a few different servers and none of them work however i think the problem its the .uk section of it (presumerably the ".") because when I put .uk it works normally but obviously dosnt find a proper result. do you have any idea how to fix it? I think it might be more complicated than just adding my .co.uk section but i cant find any support from any of the websites holding the script or any other forums. Thanks (youv been helping me with web designing for AAAAGES now!! its MUCH appreciated :D) Max |
| ||
| Re: whois script not working in IE Argh! You are right. Php doesn't like . in the names of form elements. It replaces . by _. <?phpHmm.. strange! Lets see if someone else has an idea ! |
| ||
| Re: whois script not working in IE Since "_" is an invalid character for a domain, does that mean that you will never have an underscore in the any of the form entity names? if so, you could try this foreach($_POST as $key=>$value)it does work. |
| ||
| Re: whois script not working in IE Thanks r0bb0b and nav33n however im not quite sure what to do with the code. presumerably i put it at the beginning of the php script to make sure that it changes all strings with an underscore to have full stops instead however im not sure what $key or $value are meant to be. I have a domain name field called "domain" and checkboxes for domain suffixes to be checked called "top_". its the domain field where the underscores need to be changed to fullstops thanks again |
| ||
| Re: whois script not working in IE You know that there are two parts to an array cell(or what ever you want to call it) right? array[0] = "red"; echo array[0] and get "red"; 0 is the key. "red" is the value. so, you can do a foreach loop with just he value like this foreach($array as $value)or with key and value foreach($array as $key=>$value)Maybe that will help, ya? You can stick it at the very top of the script and it will replace all "_" with "." in the $_POST names. |
| ||
| Re: whois script not working in IE Ahhh okay I see so it finds any array's where co_uk is written and converts it to co.uk - i got a parse error: Parse error: syntax error, unexpected T_FOREACH, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/sites/economizerz.com/public_html/test/maxwhois/maxWhois.class.php on line 8 <?php possibly my server is using an old version of php or something? |
| All times are GMT -4. The time now is 6:21 pm. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC