nuvh fuiv - PHP Online
Form of PHP Sandbox
*** This page was generated with the meta tag "noindex, nofollow". This happened because you selected this option before saving or the system detected it as spam. This means that this page will never get into the search engines and the search bot will not crawl it. There is nothing to worry about, you can still share it with anyone.
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.
Result of php executing
Full code of nuvh fuiv.php
- <?php
- // This is the index.php file
- // Include the header file
- include 'header.php';
- // Get the CPA offer ID
- $offer_id = 12345;
- // Get the CPA offer name
- $offer_name = 'Free Trial of XYZ Software';
- // Get the CPA offer description
- $offer_description = 'أدخل رقم هاتفك المحمول الآن لبدء التنزيل..';
- // Get the image for the content locker
- $image_url = 'https://www.example.com/image.jpg';
- // Create the content locker
- $content_locker = <<<EOF
- <div class="content-locker">
- <img src="{$image_url}" alt="Free Trial of XYZ Software">
- <h2>Unlock this content</h2>
- <p>Enter your email address to unlock this content.</p>
- <input type="email" name="email">
- <input type="submit" value="Unlock">
- </div>
- EOF;
- // Check if the user has entered their email address
- if (isset($_POST['email'])) {
- // Send the email address to the CPA network
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, 'http://noukx.bemobtrcks.com/postback?cid=REPLACE&payout=OPTIONAL&txid=OPTIONAL&status=OPTIONAL');
- curl_setopt($ch, CURLOPT_POST, 1);
- curl_setopt($ch, CURLOPT_POSTFIELDS, [
- 'offer_id' => $offer_id,
- 'email' => $_POST['email']
- ]);
- curl_exec($ch);
- curl_close($ch);
- // Redirect the user to the CPA offer
- header('Location: https://singingfiles.com/show.php?l=0&u=980608&id=57386' . $offer_id);
- } else {
- // Display the content locker
- echo $content_locker;
- }
- // Include the footer file
- include 'footer.php';
- ?>