-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconstants.php
More file actions
27 lines (24 loc) · 989 Bytes
/
Copy pathconstants.php
File metadata and controls
27 lines (24 loc) · 989 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
// ========================================================================
// Author: DynamicPDF.COM CETE www.dynamicpdf.com
// Copyright: (c) 2021 DynamicPDF Cloud API
// License: MIT - for additional information see ./LICENSE in this project.
// Errors: Please report any errors in software to support@dynamicpdf.com
// ========================================================================
define("CLIENT_EXAMPLES_API_KEY", "DP--api-key--");
define("CLIENT_EXAMPLES_BASE_PATH","./resources/");
define("CLIENT_EXAMPLES_OUTPUT_PATH", "./output/");
// ensure the output folder exists, if doesn't create the output folder
if (!file_exists(CLIENT_EXAMPLES_OUTPUT_PATH)) {
mkdir(CLIENT_EXAMPLES_OUTPUT_PATH, 0777, false);
}
class Utility {
public static function GetFileData(string $filePath)
{
$length = filesize($filePath);
$file = fopen($filePath, "r");
$array = fread($file, $length);
fclose($file);
return $array;
}
}