PHP LockIt! Documentation
Documentation - General - Configuring Scripts
Configuring Scripts
Some scripts require configuration settings entered by the user, such as MySQL username and password.
Recommended Approach
We recommend that you place these configurations in a seperate file and "include" it in your PHP script like this:
-- start of my_script.php
<?php
include ("my_script_config.php");
/* Rest of your script goes here */
?>
-- end of my_script.php
-- start of my_script_config.php <?php // PHPLOCKITOPT NOENCODE /* MySQL configuration */ mysql_username = "my_username"; mysql_password = "my_password"; mysql_server = "localhost"; mysql_database = "my_database"; ?> -- end of my_script_config.php
The special comment:
// PHPLOCKITOPT NOENCODE
tells PHP LockIt! that this file should not be encoded. The file will be copied as it is to the output folder. Ensure that you copy the comment exacly as shown above. The comment must begin with "//", be all upper case and not include any extra space characters.
Alternative Approach
The special comment:
// PHPLOCKITOPT START
can be placed in your PHP script to tell PHP Lockit! to encode only the remainder of the script. Any lines before this special comment are copied through as plain text.