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>
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 […]
Printing Batch file results to a text file
For showing result of batch file in text file, you can use this command chdir > test.txt This command will redirect result to test.txt. When you open test.txt you will found current path of directory in test.txt
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
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 […]
wordress Plugin Install Asks for FTP Details
Please use in wp-config.php define(‘FS_METHOD’, ‘direct’);This statement solve my issue.
PHP Fatal error: Allowed memory size
I am receiving the following error whilst trying to download huge size file from live php serve php Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 1705654 bytes) Here are some options to increase PHP memory allocation If you can edit or override the system php.ini file, increase the memory limit. […]
How do you run executable files on Windows 7 using the command prompt?
We have Just write the file path of executable file into the command prompt and press enter, like this: c:/pathoffile/fileName.exe
MySQL BETWEEN Operator
The BETWEEN operator is used to select values within a range. Syntax SELECT columnName FROM tableName WHERE columnName BETWEEN value1 AND value2; Demo SELECT * FROM employee_tbl WHERE daily_typing_pages BETWEEN 170 AND 300;
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 […]