Introduction
ชื่อเรื่อง
No changesPermalink
No changesเนื้อหา
Old | New | ||
---|---|---|---|
12 | 12 | ||
13 | ### File System Paths (FS_DIR_APP) | 13 | ### File System Paths (FS_DIR_APP) |
14 | 14 | ||
15 | FS_DIR_APP is the absolute path to the application root. It is used on the server side and is translated to something like | 15 | FS_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 | ||
17 | Example below: | 17 | Example below: |
18 | ```php | 18 | ```php |
291 | Note: 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'. | 291 | Note: 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 | ## Client | 294 | ## Client Wrappers |
295 | 295 | ||
296 | 296 | Client wrappers are objects that wrap functionality together like an API client. | |
297 | 297 | ||
298 | This is an example how to use the HTTP client for posting data to an external machine: | 298 | This 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