Zabidin Posted January 3 Share Posted January 3 Hi, Current i'm using batch script to use nslookup (dig). How to put in coding so it can be view like image below? Thanks in advanced. Quote Link to comment https://forums.phpfreaks.com/topic/317598-nslookup-using-dig-to-php/ Share on other sites More sharing options...
requinix Posted January 3 Share Posted January 3 1. What have you tried so far? 2. Are you aware that PHP has a variety of DNS functions already? Quote Link to comment https://forums.phpfreaks.com/topic/317598-nslookup-using-dig-to-php/#findComment-1613918 Share on other sites More sharing options...
Zabidin Posted January 3 Author Share Posted January 3 No, i'm not cause i'm not programmer. I try to make programming to make my work easy. Quote Link to comment https://forums.phpfreaks.com/topic/317598-nslookup-using-dig-to-php/#findComment-1613920 Share on other sites More sharing options...
requinix Posted January 3 Share Posted January 3 Tip: if you want to use programming to make your work easier, you should try considering yourself a programmer. So, what have you tried to do so far? Quote Link to comment https://forums.phpfreaks.com/topic/317598-nslookup-using-dig-to-php/#findComment-1613923 Share on other sites More sharing options...
Zabidin Posted January 4 Author Share Posted January 4 I got this from chatGPT. index.php >> https://privatebin.support-tools.com/?f215068f29bf55d4#L2KQViZ8hhbwifOO83M8fkOFAREEwzNdm9kvRy/AtVw= lookup.php >> https://privatebin.support-tools.com/?1b7b7f064edf5620#K241HnszEqyMze1/HYiG0F02gJHS/GXEQZjqPuQwMWM= Quote Link to comment https://forums.phpfreaks.com/topic/317598-nslookup-using-dig-to-php/#findComment-1613928 Share on other sites More sharing options...
Zabidin Posted January 5 Author Share Posted January 5 But i'm getting error 500 when execute it. I'm using php 7.4. Quote Link to comment https://forums.phpfreaks.com/topic/317598-nslookup-using-dig-to-php/#findComment-1613937 Share on other sites More sharing options...
Zabidin Posted January 5 Author Share Posted January 5 The code did not show any result. Quote Link to comment https://forums.phpfreaks.com/topic/317598-nslookup-using-dig-to-php/#findComment-1613938 Share on other sites More sharing options...
Zabidin Posted January 6 Author Share Posted January 6 I want use 2nd script so i just fill list of domain but use 1st script to put NS so it check.https://pastebin.com/PhSPS3ejhttps://pastebin.com/7a7e8BFz Any one can assist me on this? Quote Link to comment https://forums.phpfreaks.com/topic/317598-nslookup-using-dig-to-php/#findComment-1613972 Share on other sites More sharing options...
Zabidin Posted January 6 Author Share Posted January 6 What i miss here? https://pastebin.com/ZVEgwtSk Quote Link to comment https://forums.phpfreaks.com/topic/317598-nslookup-using-dig-to-php/#findComment-1613973 Share on other sites More sharing options...
Andou Posted January 9 Share Posted January 9 (edited) Are you getting an error? If so, what error do you get when you run the code? What appears as the error on the page? And while you're add it, add error_reporting(E_ALL); ini_set('display_errors', '1'); to the top of the file so you can see the errors that appear. (Assuming you fix the errors, you can comment out those two lines by putting a "//" before them.) edit: It's fine to use ChatGPT for getting snippets of code (I wouldn't do it, but it's not like it's illegal or anything) but even though you say you aren't a programmer, you should at least try to look at the code and determine what it does. Edited January 9 by Andou Quote Link to comment https://forums.phpfreaks.com/topic/317598-nslookup-using-dig-to-php/#findComment-1614039 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.