Handle csv formatted file. The Alinous-Core programming language supports Csv formatted files by standard function.
Csv format is often used to export and import data. Alinous-Core supports Csv Formatted files by standard functions.
Effective file format to communicate with the web application
Csv format is useful file format. That is because the Microsoft excel
and OpenOffice Calc can edit the format. In addition to that, Csv file
with header format is very useful to handle record data formatted in
table structure, and the server sode program can easily process the
Alinous-Core supports standard functions to support csv formatted files
The Alinous-Core programming language has standard functions to handle the Csv formatted files. They are often used in the actual web application.
Handle files. The path of the file is ALINOUS_HOME based path.
For example, if you want to specify "ALINOUS_HOME/img/top.png", specify "/img/top.png".
appendText($srcAlinousPath, $outText, $encode)
Append the value of the string dom variable into the file.
Copy the file. If you want to copy a directory, use copyDir() instead.
Handle images. Those functions are used when you use images in the web application.
Return image's width and height via dom variable.
resize($filePath, $dstFilePath, $destWidth, $destHeight)
Resize image into a new image with specified width and height.
Compress files and folders into a zip file and extract it.
Use archive for download files
The web browser can down load a single
file at once. If you have to download several files at once, you have
to archive the files into a zip archive file.
The zip archive
function can also archive the folder. Therefore on actual case, the
program copies necessary files into a folder and archive it.
Compress $compressDir directory into $compressFile.
Extract zip file $extractFile into the directory $extractDir.