Jump to content
xisto Community

electron

Members
  • Content Count

    163
  • Joined

  • Last visited

Everything 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. Its Ok but still it did not resolve my problem but it gave you rather a new idea.Well this is fine for a few number of emails. But Bulk mail ah-ah. It would be too tedious.I am thinking on a new solution to it. Lets see.It is new and i dont know whether it would be successful.Wish me luck for sending 1000 mails in 30 seconds or less.
  6. 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
  7. Hey really cool dude.THanks alot.With the help of a batch file i can change the images whenever the computer restarts.But great images.If you have some more let them come.
  8. 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
  9. Thats ok if you have some 10 - 15 mails but what if you have 10000 mails to send.What will you do then ??The script would timeout if you send it all at a go in one loop.Or if you break it into parts and then send it would take a day or so.Please give your views.
  10. 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. 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.
  11. Ya LEFT JOIN it.Well the main feature of LEFT JOIN is that if the table that is being joined is empty with regards to a particular row(here your news item) it will add the table with the same fields but with the value NULL that is treated as false of empty in PHP
  12. 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
  13. 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.
  14. electron

    Php Server Time

    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.
  15. 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 ????
  16. 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.
  17. Are there no such things given by php.net . Well if not then they should be there. Well i know of a paid one : http://www.expertrating.com/PHP-test.asp (first on googles list) But even i couldnt find a free one. Well then the best way to test yourself is to make something really good that people love and would like to use the same.
  18. Well if you are using it for URL it is fine but make sure to make it ungreedy so that it matches not the whole thing but first start and first end.Let me see if i have that for the URL stuff.
  19. 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
  20. Well i used that in my old server and it used to work.Tap17 has a better version than that of my old server.There is some error in your script.Post it and we will find the error.
  21. Well thats good for a brief idea to PHP and getting started with the basics. But it is always better to have a copy of the PHP Manual and the MySQL manual for explicit explanation and compatibility issues.You can download that from the PHP site(http://php.net/) and MySQL Site(http://www.mysql.com/)Best of luck
  22. Well i made one whole site for users who could enter their own text and then it shows a random image with a random text entered by the user. I use around 23 images in random. Also a very powerful tool in Apace is mod_rewrite rule that can show something like http://forums.xisto.com/index.php?image=electron to: http://forums.xisto.com/no_longer_exists/ Thats one cool stuff i loved to play with.
  23. Well for me they are not that great because they cant handle nesting in HTML tags. Had they been able to do so they would have been wonderful and perfect.
  24. 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.
  25. Thats right and that is why i suggested to use a salt as MD5 Dictionaries use normal English words only not user ids.
×
×
  • 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.