Skip to content

Instantly share code, notes, and snippets.

@mickmon
Created August 28, 2019 14:10
Show Gist options
  • Save mickmon/f71fea5660d2deb75651a487410ca69b to your computer and use it in GitHub Desktop.
Save mickmon/f71fea5660d2deb75651a487410ca69b to your computer and use it in GitHub Desktop.
<?php
// must match the main HTML file
$dest = "xrb_1ytjfqxmz5zabt39qxcz3nphabstegddqqbhjgau13stfxz6fq7rkmceih7i";
$files = [
"item-1" => [
"name" => "Random File text",
"file-name" => "Jupiter.mp3", //the file name the user will see
"file-path" => "/public_html/random-file.mp3", //hidden file, keep the name difficult to guess! Won't be shown to the user. (Recommended to have a subdirectory)
"price" => 0.01, // price in USD (must match what the user is paying in the main HTML file),
"description" => "Buy an MP3"
],
"image-1" => [
"name" => "Random Image",
"file-name" => "my-donald-image.jpg",
"file-path" => "donald.jpg",
"price" => 0.01
]
];
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment