I am working on a web application in php for ipad. I need to retrieve the ipad’s unique identifier programmatically.
Is there any way i could check the unique identifier of an ipad in the php application.
I am working on a web application in php for ipad. I need to retrieve the ipad’s unique identifier programmatically.
Is there any way i could check the unique identifier of an ipad in the php application.
No. This information is not transmitted by a web request, and if it were accessible by a webpage would be a security hole the size of texas.
You can ask someone to fill in their UDID, and then it’s up to them whether they do or not. But programmatically? No.
EDIT: If the device is physically connected to the machine running the page, it may be possible by running command line arguments. But over the web, no.
PHP isn’t the tool you are looking for. If you need to do this you’re going to have to write a client-side ap in Objective C and have that program transmit the information. Serverside can remain PHP.
If you use something like PhoneGap, you could use the following to get the value in JS, and then send that to your PHP script.
var string = device.uuid;
echo $_SERVER[‘UNIQUE_ID’];