• Hello Guest! Welcome to ConsoleCrunch, to help support our site check out the premium upgrades HERE! to get exclusive access to our hidden content.
  • Unable to load portions of the website...
    If you use an ad blocker addon, you should disable it because it interferes with several elements of the site and blocks more than just adverts.
  • Read Rules Before Posting Post Virus Scans with every program.

[PHP] random-image-api

Oblivion

Member
CC Dev Team
A simple random-image-api written in PHP.

Getting Started
  • Download or clone from the GitHub repository.
  • API Path: ./assets/api/ri-api.php
  • Default Img Path: ./assets/images/
Code:
<?php require_once './assets/api/ri-api.php'; ?> <!-- Request API file. -->
<img src="<?php echo $path . $img ?>"/> <!-- Displays images. -->

Code:
$path = './assets/images/'; //Change the img file path if needed.

Useful Links
 
General chit-chat
Help Users
  • No one is chatting at the moment.
      @ QM|T_JinX: sup
      Back
      Top