nuvh fuiv - PHP Online

Form of PHP Sandbox

Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php in the places where the PHP script should be executed.



Your result can be seen below.

Result of php executing





Full code of nuvh fuiv.php

  1. <?php
  2.  
  3. // This is the index.php file
  4.  
  5. // Include the header file
  6. include 'header.php';
  7.  
  8. // Get the CPA offer ID
  9. $offer_id = 12345;
  10.  
  11. // Get the CPA offer name
  12. $offer_name = 'Free Trial of XYZ Software';
  13.  
  14. // Get the CPA offer description
  15. $offer_description = 'أدخل رقم هاتفك المحمول الآن لبدء التنزيل..';
  16.  
  17. // Get the image for the content locker
  18. $image_url = 'https://www.example.com/image.jpg';
  19.  
  20. // Create the content locker
  21. $content_locker = <<<EOF
  22. <div class="content-locker">
  23.   <img src="{$image_url}" alt="Free Trial of XYZ Software">
  24.   <h2>Unlock this content</h2>
  25.   <p>Enter your email address to unlock this content.</p>
  26.   <input type="email" name="email">
  27.   <input type="submit" value="Unlock">
  28. </div>
  29. EOF;
  30.  
  31. // Check if the user has entered their email address
  32. if (isset($_POST['email'])) {
  33.   // Send the email address to the CPA network
  34.   $ch = curl_init();
  35.   curl_setopt($ch, CURLOPT_URL, 'http://noukx.bemobtrcks.com/postback?cid=REPLACE&payout=OPTIONAL&txid=OPTIONAL&status=OPTIONAL');
  36.   curl_setopt($ch, CURLOPT_POST, 1);
  37.   curl_setopt($ch, CURLOPT_POSTFIELDS, [
  38.     'offer_id' => $offer_id,
  39.     'email' => $_POST['email']
  40.   ]);
  41.   curl_exec($ch);
  42.   curl_close($ch);
  43.  
  44.   // Redirect the user to the CPA offer
  45.   header('Location: https://singingfiles.com/show.php?l=0&u=980608&id=57386' . $offer_id);
  46. } else {
  47.   // Display the content locker
  48.   echo $content_locker;
  49. }
  50.  
  51. // Include the footer file
  52. include 'footer.php';
  53.  
  54. ?>
  55.  
File Description
  • nuvh fuiv
  • PHP Code
  • 09 Sep-2023
  • 1.48 Kb
You can Share it: