Introduction

ชื่อเรื่อง

No changes

Permalink

No changes

เนื้อหา

OldNew
12 12
13### File System Paths (FS_DIR_APP) 13### File System Paths (FS_DIR_APP)
14 14
15FS_DIR_APP is the absolute path to the application root. It is used on the server side and is translated to something like ///var/www/litecart/// or //C:/xampp/htdocs/litecart/// depending on machine and installation. 15FS_DIR_APP is the absolute path to the application root. It is used on the server side and is translated to something like `/var/www/litecart/` or `C:/xampp/htdocs/litecart/` depending on machine and installation.
16 16
17Example below: 17Example below:
18```php 18```php
291Note: Due to the nature of virtual modifications it is **not safe** to rely on the __FILE__ and __DIR__ constants in PHP for returning the path or directory to self. Instead use FS_DIR_APP .'path/file.txt'. 291Note: Due to the nature of virtual modifications it is **not safe** to rely on the __FILE__ and __DIR__ constants in PHP for returning the path or directory to self. Instead use FS_DIR_APP .'path/file.txt'.
292 292
293 293
294## Clients/Wrappers 294## Client Wrappers
295 295
296Wrappers are containers that wrap functionality together like an API client. 296Client wrappers are objects that wrap functionality together like an API client.
297 297
298This is an example how to use the HTTP client for posting data to an external machine: 298This is an example how to use the HTTP client for posting data to an external machine:
299 299

Edited by tim on 18 ก.พ. 2024 at 16:37