steviez Posted August 28, 2008 Share Posted August 28, 2008 Hi, Is there a way i can track installs of my script, i want to track when a user buys the script and installes it returning the url installed etc. Thanks Link to comment https://forums.phpfreaks.com/topic/121741-track-installes/ Share on other sites More sharing options...
.josh Posted August 28, 2008 Share Posted August 28, 2008 You can write code into your script to send info to your site to track it, but someone could always remove that code. You could obfuscate your code to make it harder for someone to do that, but it wouldn't be impossible to get around that. Link to comment https://forums.phpfreaks.com/topic/121741-track-installes/#findComment-628027 Share on other sites More sharing options...
steviez Posted August 28, 2008 Author Share Posted August 28, 2008 I did this but it wont work <?php function isInstalled() { $installed_server = $_SERVER['HTTP_HOST']; $from = "from"; $email = "[email protected]"; $recipient = "[email protected]"; $mail_body = "New install at: ".$installed_server.""; $subject = "New Install"; $header = "From: ". $Name . " <" . $email . ">\r\n"; if($installed == false) { mail($from, $subject, $mail_body, $header); } return; } isInstalled(); ?> Link to comment https://forums.phpfreaks.com/topic/121741-track-installes/#findComment-628031 Share on other sites More sharing options...
BlueSkyIS Posted August 28, 2008 Share Posted August 28, 2008 incorrect use of mail(): mail($from, $subject, $mail_body, $header); bool mail ( string $to , string $subject , string $message [, string $additional_headers [, string $additional_parameters ]] ) Link to comment https://forums.phpfreaks.com/topic/121741-track-installes/#findComment-628034 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.