PHP Script Archive

Random URL Link Generator

Link: https://www.crunchy-toast.com/

The Code:

<div class="Script"> <?php /*Set This File => Code_View.php*/ $thisfile = "Random_Url_Link_Generator.php"; echo "<input type='submit' name='submit' value='Refresh Page' onclick='window.location.reload();'>"; require('header.meta');?> <?php echo "<h2>Random URL Link Generator</h2>"; function Random_URL_Generator() { $prefix = array( "http://","http://www.", "https://","https://www." ); $domain = array( "your-mom","my-website", "some","just-another", "happy-barefooot-jesus","crunchy-toast", "mobile.pizza_king","art.happy-art" ); $com = array( ".com",".net",".org",".biz",".co",".ru" ); $page = array( "photos/", "utilities.html", "images/your-mom.jpg", "documents/2023/MyWorksheet.pdf", "animals/giraffe/", "blog-page?search=your+mom", "","" // 1 extra chance for url only ); $randn = array_rand($prefix); $radn2 = array_rand($domain); $rand3 = array_rand($com); $rand4 = array_rand($page); echo "Link: <a style=\"color:#aaa;\" href=\"$prefix[$randn]$domain[$radn2]$com[$rand3]/$page[$rand4]\">$prefix[$randn]$domain[$radn2]$com[$rand3]/$page[$rand4]</a></p>"; } Random_URL_Generator(); ?> <?php /*Insert Code View*/ include('Code_View.php');?> </div>