Jump to content
xisto Community

electron

Members
  • Content Count

    163
  • Joined

  • Last visited

Posts posted by electron


  1. Actually i just found these functions some days ago and I was so amazed that PHP also gives DNS functions and stuff like these functions.
    But there are only three functions of DNS that i could find.
    Two are mentioned above and the third one is dns_get_mx() function that gets the MX records of the domain.
    Though let me warn you that these functions are available and work only after PHP >= 5.
    Also they are not available in the windows abd BSD platforms.

    If you want to use with older PHP versions or the windows abd BSD platforms you may try the PEAR Packages.
    I found some four of them:
    http://pear.php.net/package/File_DNS
    http://pear.php.net/package/Net_DNS
    http://pear.php.net/package/Net_DNSBL
    http://pear.php.net/package/Services_DynDNS

    Choose whichever you like. But according to your need take the second one that is the Net DNS as it connects with a DNS server.

    Hope this helps.
    Have a good day.


  2. Well till where i can understand the question you mean to say you want to find a domain is registered or not for a submitted domain that someone has requested .

    If you dont know PHP has it inbuilt to check the DNS records.
    There are many functions in PHP related to DNS and stuff like dns_get_record() function, dns_get_mx() function, and dns_check_record() function

    Here is the script using dns_get_record() function:

    <?php/* Request "ANY" record for php.net,   and create $authns and $addtl arrays  containing list of name servers and  any additional records which go with  them */$result = dns_get_record("php.net", DNS_ANY, $authns, $addtl);echo "Result = ";print_r($result);echo "Auth NS = ";print_r($authns);echo "Additional = ";print_r($addtl);?>

    Hope this helps.
    Have a good day.

  3. Hey Windows Vista will be out this month(November , 2006). It will be out with the Enterprise Edition right now. I am going to get that for sure or should i wait for Ultimate in January, 2007 thats 2 months away. I am getting tooo excited for this. I just love Vista and it is surely the best I believe. Anyone going to try this baby out in November. Please post if you do.Thanks


  4. Well FireFox 2 is good and it is bad. There are a lot of changes in the theme and the new tab button feature is copied from Internet Explorer 7 and Opera. The spell check feature is good though I never really use it. At first i thought there is some bug in Firefox 2 with those red dotted lines coming under the text. However the major disadvantage is that when you upgrade to it the installed extensions becme useless and for most of them there will be no extension out for FireFox 2. Like the Vista theme extension. I wish Mozilla comes out with a way to deal with all this as it is quite difficult to do without the extensions when you get used to it.


  5. Well even i got this craze to make a theme for windows.I asked the Guys at MSFN and they gave me some software name. But that was only for personal use and edits minor things.The windows theme is stored in different parts like system32 folder , a different theme file used by windows.But i learned by research and experience that the files in system32 folder are the main ones if yu want to edit.To get a list of the files to edit is tough. But if you have ever tried the vista transformation pack or the Brito pack they show a list of files they are editing.Also changes are made within the registry. All this is tough and one way you can edit them is using ResHack as these are all .exe(executable files). If you manage to make a theme like the vista transformation pack or the Brito pack you can earn $$$$$$.I left that project as it was very time consuming.Hope this helps


  6. Ya it is very simple to understand this term AJAX.
    Here is a script on it :

    function AJAX(url,mode){	req = false	// branch for native XMLHttpRequest object	if(window.XMLHttpRequest) {		try {			req = new XMLHttpRequest();		} catch(e) {			req = false;		}	// branch for IE/Windows ActiveX version	} 	else if(window.ActiveXObject) {	   	try {				req = new ActiveXObject("Msxml2.XMLHTTP");		  } catch(e) {			try {				  req = new ActiveXObject("Microsoft.XMLHTTP");			} catch(e) {				  req = false;			}		}	}	function modeprocess(){		switch(mode){				case 1:				return checkresult;				break;				}	}		if(req) {		req.onreadystatechange = modeprocess();		req.open("GET", url, true);		req.send("");			} else {document.getElementById("uresult").innerHTML="Unable to retrieve data . Browser not compatible";	document.getElementById("cabutton").value="Check Availability";	}}

    Use this function by giving the URL that willl return some data that you want.
    It is really very simple to understand this.
    I have given comments on this in the script.

    Firstly it determines whether use IE stuff ActiveX or use through Mozilla or Opera.
    Then it just uses the GET method and gets the result that would be outputted by the page specified in the URL.
    Checkresult() is the function that processes the result got.

    Also a site that has some codes:
    http://dynamicdrive.com/dynamicindex17/indexb.html

    Hope this helps

  7. Well after exploding the same why dont you guys use the array_diff_assoc() function or the array_diff() function.
    array_diff_assoc() function would be more appropriate though.

    array_diff_assoc() returns an array containing all the values from array1 that are not present in any of the other arguments. Note that the keys are used in the comparison unlike array_diff().

    <?php$array1 = array("a" => "green", "b" => "brown", "c" => "blue", "red");$array2 = array("a" => "green", "yellow", "red");$result = array_diff_assoc($array1, $array2);print_r($result);?>

    The above example will output:

    Array(   [b] => brown   [c] => blue   [0] => red)

    Well hope this will help in atleast finding the difference.
    But how will you arrange the thing I have not come up with that as yet.

  8. Well the forum that you are asking this question about PHP i.e. on Xisto forums is powered by a PHP software.
    How does the forum work ?
    It is a complex bit of code written to handle user input and give the output on a page requested based on who you (the user using the forum) and what group you belong to (generally guests or members).
    This is the power of PHP combined with a database software like MySQL.

    You can do so much with PHP programming , designing etc.
    PHP also can edit images and make images.(Look at my sig it is dynamic).
    It can send mails not by just the mail() funcyion that you were referring but it can connect directly to your SMTP server using fsockopen() and then give commands likely to the server.

    If you have any problems post it here.
    If you are looking where to start learning PHP from:
    http://www.w3schools.com/

    Hope this helps


  9. Well then what to do if we are to store the GMT time in the database. According to the IST(Indian Standard Time-I live in India) we are 5 and a half hours ahead of GMT.I tried using gmmktime() function and it returns me the time + 5 and a half hours ahead of IST instead of 5 and a half hours behind IST.So just one suggestion use time() store it in the database and then use gmdate to get the GMT time. But this thing has a disadvantage you know. Whenever you change the server to a different one the time settings being different the GMT time and the time itself would be going wrong.


  10. Well your script would give you the time double ahead of the GMT time because you guys are subtracting first and then using gmdate.

    GMDATE() function requires the current time as per the server.
    Then accordingly it will find what are the server settings and convert the time and then give the GMT time.

    So your script is now:

    gmdate("M d Y H:i:s", mktime())

    This is the GMT time as per the server.
    However if you make a server change the time would go wrong as gmdate takes the servers time settings.
    But on the same server it is just fine.

    Hope that helps.

  11. Well you should give a link to your site first and then to HotScripts.comIf you dont mind could i ask you something on the Fanewsletter script you made.Can you tell e how do you manage to send thousands of emails. Are you using BCC headers or something else.I searched through so many sites but they all tell to use PEAR mail or some other script.Please tell me how to send thousands of mail and what would be the minimum time to send it ????


  12. Well it is true that to test your skills code a complex program but at the same time it is necessary to keep in mind the compatibility of different issues of different PHP Versions. I believe getting aroubd with that is quite a challenge as you have to do different things as per different versions of PHP and MySQL(mostly). Coding would be much simpler had there been no Version compatibility issues and security issues when processing a form.So get on the computer , make a good program and let the world adore it and you for your skills.


  13. It needs a regular expression as a pattern.If you dont know that what are regular expressions it is quite simple to leasrn it. Just google it out OR go visit the php.net site where they have explained the whole function in details and read the comments below.That help alot and have links to some great PHP related regular expressions.But if you are using preg_replace to takecare of HTML tags or BBCODE it is useless.Hope that helps


  14. What does IPB do now then ?Well this is standard I believ in the PHP world.SMF uses the users ID as a salt directly without hashing it first.Also if anyone did manage to get the Hashed and salted password it is notpossibe to Decrypt it.If you want to get a hold of the password then you can only do it while taking the form or if it leaks over the Network.Decrypting would require some 1000's of years.

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | 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.