If your FCGI file name is index.fcgi, you should find it available in the list that the previous command showed. If not, then no process is currently running. Just visit your website now and the changes will be applied.
If you find your index.fcgi file in the list, copy its ID (the 4-5 digits number that appears on the left).
Finally, kill the process
Visit your website now, changes should be applied by now.
Technically speaking, when someone visits your django application on hostgator, FCGI process runs. This is done because of the htaccess file you create. The python files are compiled and ran in a, and i am quoting the FCGI website, a persistent isolated process. If people keep on visiting your website, the process will keep on running. If you make changes, they’re not compiled again because you have to wait till the current FCGI process ends. All we do here is to kill the running process and that will lead to compiling our code again, hence applying the changes.
If the application is private and no one, with you excluded, is visiting it yet .. Just wait for about 10 minutes for changes to be applied without refreshing or visiting the application. This way, the process will end and a new visit will compile the new code.
I don’t know yet the drawbacks of this but it’s perfect for the small application that I am working on now. Good luck!
I was born a Muslim. You don’t really get to choose your religion when you’re born right?. You are taught how to pray, some regulations and guidelines that you must follow and you’re good to go. But, is it really only about following some rules that you don’t even understand or get the reason behind them. Why do we follow them?
To the human eye the length is clearly four characters. Depending on how the data is represented this could be either five or six UTF-8 bytes. Twitter does not want to penalize a user for the fact we use UTF-8 or for the fact that the API client in question used the longer representation. Therefore, Twitter does count “café” as four characters no matter which representation is sent.
$errors will be an array. A simple !empty($errors) will check for errors.
The conditions represents the rule that must be true in order not to produce an error. For example, length <= $maxLength means that the length must be less than max length to pass the check. $slug is the name of the form’s field.
To create a menu for a custom plugin, you can use the function add_menu_page. Here is a sample:
add_menu_page('Title of the page', 'The text to appear in menu', 'create_users', 'a-unique-slug-to-avoid-conflicts', 'function-that-renders-the-page-to-appear');
This will create a main menu item. To create a sub menu item under the one mentioned above, we can use the add_submenu_page. Here is a sample code:
add_submenu_page('the-slug-you-used-above-in-the-main-menu-item', 'Page title to appear', 'The text to appear in menu', 'create_users', 'another-different-unique-slug', 'function-that-renders-the-page-to-appear' );
The ‘create_users’ is the permission required for this menu item/page to be visible/accessible.
For cakephp you can use the AppController to check for permissions and perform other operations that you want to apply for all controllers. One of the operations is using the isAuthorized function to check whether the current user has the permission to use a certain action. A general approach is to define the permissions in an array something like