sik91lx Posted August 12, 2008 Share Posted August 12, 2008 Guys, Basically we will be handing out 10,000 software installers on a CDROM. Each CDROM will have an autorun so when they pop the CDROM inside their machine, it will automatically launch setup.exe. ** Remember, each cdrom will have its own unique id code up to 10,000 codes. We would like to get a report somehow, either php/mysql saying "CD XXXXX has been opened and software has been installed" Do you guys know of such script? Basically im guessing, We insert this web link inside each autorun.inf so it reports to our database when the autorun plays.. we create a database with a table in SQL called tracking Use PHP somehow to create $ID code names (company.com/tracking.php?IDXXXXX) :::: You guys have any codes/scripts i can try out? Or what do you guys recommend as in tracking down those 10,000 cds either they have been installed or not. Thanks guys! Link to comment https://forums.phpfreaks.com/topic/119374-need-help-can-i-track-who-opened-cdrom-using-autoruninf-or-alternative/ Share on other sites More sharing options...
DarkWater Posted August 12, 2008 Share Posted August 12, 2008 This can't be done with only PHP. You need to create a program that runs in the installer that somehow contacts your webserver. Link to comment https://forums.phpfreaks.com/topic/119374-need-help-can-i-track-who-opened-cdrom-using-autoruninf-or-alternative/#findComment-614950 Share on other sites More sharing options...
efficacious Posted August 12, 2008 Share Posted August 12, 2008 as long as you can open up there browsers and go to your page.. you can do this. simple as using $_GET method Link to comment https://forums.phpfreaks.com/topic/119374-need-help-can-i-track-who-opened-cdrom-using-autoruninf-or-alternative/#findComment-614953 Share on other sites More sharing options...
sik91lx Posted August 12, 2008 Author Share Posted August 12, 2008 This can't be done with only PHP. You need to create a program that runs in the installer that somehow contacts your webserver. Understood, BUT How about running the installer.exe and i can create a execute program command so right when the program has finished installing, it opens up the browser automatically and if they have internet access, they are able to goto a distink URL and it shows them "THANK YOU FOR INSTALLING BLAH BLAH" and that records the URL? I may need you guys help with the scripting, im pretty sure someone has one written. Link to comment https://forums.phpfreaks.com/topic/119374-need-help-can-i-track-who-opened-cdrom-using-autoruninf-or-alternative/#findComment-615007 Share on other sites More sharing options...
efficacious Posted August 13, 2008 Share Posted August 13, 2008 Quote from: DarkWater on Yesterday at 03:15:10 PM This can't be done with only PHP. You need to create a program that runs in the installer that somehow contacts your webserver. Understood, BUT How about running the installer.exe and i can create a execute program command so right when the program has finished installing, it opens up the browser automatically and if they have internet access, they are able to goto a distink URL and it shows them "THANK YOU FOR INSTALLING BLAH BLAH" and that records the URL? I may need you guys help with the scripting, im pretty sure someone has one written. correct that is what you'll have to do.. on the php side its easy.. just use the GET method on your URL so you url looks like this: www.mysite.com/page.php?code=YOURCODEHERE php: <?php if(!(isset($_GET['code']))) { $code='';//NOT SET SO CODE = NOTHING } else { $code=$_GET['code'];//IS SET SO CODE = GET VALUE } ?> now you have the code to put into a process to check this off your list. not knowing how all of your stuff is setup, you'll have to figure the rest out. Link to comment https://forums.phpfreaks.com/topic/119374-need-help-can-i-track-who-opened-cdrom-using-autoruninf-or-alternative/#findComment-615449 Share on other sites More sharing options...
spasme Posted August 13, 2008 Share Posted August 13, 2008 In theory this is all very easy with PHP and $_GET but keep in mind that some Firewalls, Antivirusez, Internet Security software might interpret this as a sort of attack or takeover. I mean telling some setup.exe to open the browser and acces some http. If this is not a problem for you use something like: http://example.com/tracking.php?code=XXXXXXX tracking.php should look something like this: <?PHP $code = $_GET[code]; mysql_connect($DBhost,$DBuser,$DBpass) or die("Unable to connect to database"); @mysql_select_db("$DBName") or die("Unable to select database $DBName"); $sqlquery = "INSERT INTO code_table VALUES('field1', 'field2', ... , '$code')"; echo "Some message..."; ?> Once again if you don't want so exploit the user's browser you might want to look into some PEARL or other stuff (i'm no expert) [/code] Link to comment https://forums.phpfreaks.com/topic/119374-need-help-can-i-track-who-opened-cdrom-using-autoruninf-or-alternative/#findComment-615467 Share on other sites More sharing options...
mikeschroeder Posted August 13, 2008 Share Posted August 13, 2008 If you are writing the installer itself, would it be possible to use something like the cURL library from the actual application and have it post to a url on the server? Than just handle it as if it was posted data? Would get around having to open a browser etc. I know cURL is available for a plethora of packages http://curl.haxx.se/ Link to comment https://forums.phpfreaks.com/topic/119374-need-help-can-i-track-who-opened-cdrom-using-autoruninf-or-alternative/#findComment-615504 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.