PHP Classes

File: api/index.php

Recommend this page to a friend!
  Packages of Engin Ypsilon   PHP Ymap   api/index.php   Download  
File: api/index.php
Role: Auxiliary script
Content type: text/plain
Description: Configuration script
Class: PHP Ymap
Retrieve email messages from an IMAP server
Author: By
Last change:
Date: 3 months ago
Size: 465 bytes
 

Contents

Class file image Download
<?php
/**
 * Vercel API Entry Point
 * Routes all requests to the example directory
 *
 * Requires PHP 8.1+ (vercel-php@0.7.4 uses PHP 8.2)
 */

// Verify PHP version
if (PHP_VERSION_ID < 80100) {
   
http_response_code(500);
   
header('Content-Type: application/json');
    echo
json_encode([
       
'success' => false,
       
'error' => 'PHP 8.1+ required. Current version: ' . PHP_VERSION
   
]);
    exit;
}

require
dirname(__DIR__) . '/example/index.php';