Applications developed using ScriptCase are completely open-source PHP code, which has nothing to do with ScriptCase. To facilitate deployment, SC provides a deployment configuration interface. 1. install Apache, PHP, and MySQL in Ubuntu: For detailed tutorials, see idea (if all are packaged in
Applications developed using ScriptCase are completely open-source PHP code, which has nothing to do with ScriptCase. To facilitate deployment, SC provides a deployment configuration interface.
1. install Apache, PHP, and MySQL In Ubuntu. For more information, see http://www.linuxidc.com/Linux/2011-06/37823.htm;
2. Use the SC deployment tool to package the program and package it into a zip file (if all the files are packed in, more than 60 MB, which is indeed quite large );
3. Upload the file to Ubuntu using FTP and decompress it to the directory to be installed using unzip. (You can create an empty directory and copy the compressed file to it );
4. More importantly: Open the _ lib directory permission with the command sudo chmod 777 _ lib-R
5. Enter the address in the browser for configuration (generally, you only need to reconfigure the MySQl database connection );
ScriptCase is installed on the Windows platform and needs to be deployed in the Ubuntu environment. During the test, it is found that a function cannot take effect in any way. The Code is as follows:
// Check for record
$ Check_ SQL = "SELECT islocked"
. "FROM tt"
. "Where id = '{ID }'";
SC _lookup (rs, $ check_ SQL );
If ({rs} = false ){
} Else {
If ({rs [0] [0] }== 1 ){
SC _field_readonly ({Title}, 'on ');
SC _field_readonly ({filename}, 'on ');
SC _field_readonly ({Comment}, 'on ');
SC _field_display ({description}, 'off ');
SC _btn_display ('new', 'off ');
SC _btn_display ('delete', 'off ');
SC _btn_display ('update', 'off ');
}
In fact, this is a very simple function. If it is locked, users are not allowed to create, delete, or update. It works normally in Windows, but cannot run successfully in Ubuntu. I found that when defining data table fields, islocked is defined as bit type. bit storage is different for Windows and Linux, which leads to a fault. If you need to judge bit, the correct method should be as follows:
If (ord ({rs [0] [0]}) = 1) | ({rs [0] [0]} = 1 )){
In this way, you can determine the bit field in both Windows and Linux.
For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2