Kod Savas round 1 - save.php


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <?php
  2. ini_set('memory_limit','64M');
  3.  
  4. require_once 'domain.class.php';
  5.  
  6. if($_SERVER['REQUEST_METHOD'] != 'POST')
  7. {
  8. die("NO POST DATA FOUND.");
  9. }
  10. $ext = $_POST['tlds'];
  11. $save = $_POST['save'];
  12.  
  13.  
  14. $randomainer = new Randomainer();
  15. $randomainer->maxDomain = 100;
  16. $randomainer->generateDomainName($ext);
  17.  
  18. if($save == '1') // if the save option is selected, we will save the results.
  19. {
  20. $randomainer->save();
  21. }
  22. ?>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.