07 May, 2025

Cakephp internal server error

If you are stand on Root folder your .htaccess should like <IfModule mod_rewrite.c> RewriteEngine on RewriteRule ^$ app/webroot/ [L] RewriteRule (.*) app/webroot/$1 [L] </IfModule> If you are stand in to app folder your .htaccess should like <IfModule mod_rewrite.c> RewriteEngine on RewriteRule ^$ webroot/ [L] RewriteRule (.*) webroot/$1 [L] </IfModule>

Share your Love
1 min read

How can I “comment-out” a section in a batch file?

The REM statemen This is the most common way to write comments. Any line in your bat-file that starts with REM is completely ignored by the command-processor.      REM This bat-file moves all files in C:Incoming to C:ToProcess     REM Written by Nikunj Kansara     REM 05/01/2003Double Colons Alternatively you can replace the word REM by two […]

Share your Love
1 min read

Joomla Plugin Events

These are described in the following topics. Authentication onUserAuthenticate Captcha onInitonDisplayonCheckAnswer Content onContentPrepareonContentAfterTitle (Joomla 3.x only)onContentBeforeDisplayonContentAfterDisplayonContentBeforeSaveonContentAfterSaveonContentPrepareFormonContentPrepareDataonContentBeforeDeleteonContentAfterDeleteonContentChangeStateonContentSearchonContentSearchAreas Editors onInitonSaveonSetContentonDisplayonGetContentonGetInsertMethodExtensionsonExtensionAfterInstallonExtensionAfterUninstallonExtensionAfterUpdate Finder onFinderCategoryChangeStateonFinderChangeStateonFinderAfterDeleteonFinderAfterDeleteonFinderBeforeSaveonFinderAfterSave Quick Icons onGetIcons System onAfterInitialiseonAfterRouteonAfterDispatchonAfterRenderonBeforeRenderonBeforeCompileHeadonSearchonSearchAreas User onUserBeforeSaveonUserAfterSaveonUserBeforeDeleteonUserAfterDeleteonUserLoginonUserLoginFailureonUserLogoutonUserAuthenticateonUserAuthorisation

Share your Love
1 min read

How to execute batch file via PHP?

The main issue was of path and permission. I have gotten my batch file to execute. Here is my solution: I run my batch file from the same folder the php file is in. exec(“mybatch.bat”); I make sure that Apache Service has enough permission to run the batch file. Just to test i used an administrator account for […]

Share your Love
1 min read

How To create or use PHP Phar archives improve website performance

PHP Phar (PHp ARchive) is a file format used in PHP for packaging entire applications or libraries into a single archive file. Phar archives can simplify the distribution and deployment of PHP applications by bundling all necessary files into a single file, making it easier to manage and distribute applications. Advantages of PHP Phar Single […]

Share your Love
2 mins read