Back | Home
الـ Path الحالي: /home/picotech/domains/instantly.picotech.app/public_html/public/./../app/.././../../finland.picotech.app/public_html/storage/../vendor/./nikic/../dompdf/../alexandr-mironov/../guzzlehttp/../././hamcrest/././../unicodeveloper/../vlucas/../nwidart/././../phpoffice/../lcobucci/../.././vendor/./markbaker/../mollie/mollie-api-php/examples
الملفات الموجودة في هذا الـ Path:
.
..
captures
client-links
customers
database
functions.php
initialize.php
initialize_with_oauth.php
invoices
mandates
orders
payment-links
payments
profiles
settlements
shipments
subscriptions

مشاهدة ملف: functions.php

<?php
/*
 * NOTE: The examples are using a text file as a database.
 * Please use a real database like MySQL in production code.
 */

function database_read($orderId)
{
    $orderId = intval($orderId);
    $database = dirname(__FILE__) . "/database/order-{$orderId}.txt";

    $status = @file_get_contents($database);

    return $status ? $status : "unknown order";
}

function database_write($orderId, $status)
{
    $orderId = intval($orderId);
    $database = dirname(__FILE__) . "/database/order-{$orderId}.txt";

    file_put_contents($database, $status);
}