|
-
Jan 22nd, 2003, 10:01 PM
#1
Thread Starter
Hyperactive Member
Executing a bat file from php?
Is there a way to execute or do the same thing as what a bat file does? I would like to use ping in command but am not allowed to use it from where i am accessing the web site. So is there a way to exec cmd from where the server is if its on windows or from the client? Thanks for the help.
-
Jan 23rd, 2003, 10:21 AM
#2
Frenzied Member
might not beable to. try exec("file.bat") but if that doesn't work php has some built in functions that check dns.
look into checkdnsrr() or gethostbyaddr() or gethostbyname(), gethostbynamel()
-
Jan 24th, 2003, 03:39 PM
#3
Thread Starter
Hyperactive Member
will those tell me the latency of the ips?
-
Jan 24th, 2003, 04:00 PM
#4
Frenzied Member
it will return true if valid and false if nothing or invalid.
Last edited by phpman; Jan 24th, 2003 at 04:03 PM.
-
Jan 25th, 2003, 07:04 PM
#5
Thread Starter
Hyperactive Member
so do you know how i can get the latency of an ip?
and say i want to execute the bat file witha variable? would it look like this? exec("file.bat",$variable);
-
Jan 25th, 2003, 10:08 PM
#6
Frenzied Member
why do you want the latency?
either it is there or not
-
Jan 26th, 2003, 01:56 AM
#7
Thread Starter
Hyperactive Member
I would like the latency so I can run my script from other places and find the latency of an ip without using command promt. On some computers i go to i cant use command promt.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|