473,396 Members | 1,734 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Get mac address work in local but not work on my host using php

Expand|Select|Wrap|Line Numbers
  1. ob_start(); // Turn on output buffering
  2.     system('ipconfig /all'); //Execute external program to display output
  3.     $mycom=ob_get_contents(); // Capture the output into a variable
  4.     ob_clean(); // Clean (erase) the output buffer
  5.  
  6.     $findme = "Physical";
  7.     $pmac = strpos($mycom, $findme); // Find the position of Physical text
  8.     $mac=substr($mycom,($pmac+36),17); // Get Physical Address
  9.         echo $mac;
Jun 13 '14 #1
7 1738
Everyone can help me please......!
Jun 13 '14 #2
Dormilich
8,658 Expert Mod 8TB
does your host allow system calls at all?
Jun 13 '14 #3
I use godaddy hosting. but i don't know it allow all system or not.
Jun 13 '14 #4
Dormilich
8,658 Expert Mod 8TB
ask them, they should have a tech support.
Jun 13 '14 #5
I think maybe on host can't get mac address of visitor pc,
But it can get ip on host . Thank you guy that reply my question.
Jun 13 '14 #6
Dormilich
8,658 Expert Mod 8TB
I think maybe on host can't get mac address of visitor pc
that's not a maybe, that’s a definitely. MAC addresses are not even used in TCP/IP.
Jun 13 '14 #7
Yes that right. Thank you every much.
Jun 13 '14 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: econobeing | last post by:
a guy in my class made a program in VB6 where he could use the internet because he used the IP address of a site instead of the DNS address. i want to make my own browser now that can do that,...
3
by: Matt | last post by:
I am writing an application in ASP.NET where one of the requirements is that the user wants the option to "work locally". This is a Time and Expense application for sales people on the road. I...
2
by: | last post by:
Greets, How does one connect to a local excel file using data wizard is it possible? I'm trying to connect to an excel file and populate a dataset and combo box with the data from excel TIA
4
by: octavio | last post by:
Hello members of the comp.lang.c newsgroup. Please I need you help on the following one. Compiling the simple code I'm getting this error message. Why ? Please what's the correct type of the fb...
0
by: Jeff Jarrell | last post by:
I am coming from a shop that is historically is winforms and we work in our own workareas on network drives. Primarily so the daily work gets backed up but also so it is easy to look at each...
4
by: rsa_net_newbie | last post by:
Hi there, I have a Managed C++ object (in a DLL) which has a method that is defined like ... Generic::List<String^>^ buildList(String^ inParm) Now, when I compile it, I get "warning C4172:...
7
by: Raju5725 | last post by:
Hi All, How can I Change Local Machine IP Address without rebooting the machine using VB.Net. As I want to shift from one IP address to another IP address with application the effect should...
4
by: curious2007 | last post by:
Hello Everyone, I had this code working on DEV C++. But now, it does not work in Visual C++ Exress. Here is the code: template <class V, class AI, class I, class S> const V& AssocArray<V,...
2
Ganesh9u
by: Ganesh9u | last post by:
How to find the IP address of all the host in the network
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.