-
Open Ampps Application -> MySQL Tab -> Configuration.
-
In [mysqld] section, add the following line:
innodb_force_recovery = 1 -
Save the file and try starting MySQL
-
Remove that line which you just added and Save.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| use Elementor\Controls_Manager; | |
| use Elementor\Element_Base; | |
| use Elementor\Core\Files\CSS\Post; | |
| use Elementor\Core\DynamicTags\Dynamic_CSS; | |
| // Exit if accessed directly | |
| if (!defined('ABSPATH')) { | |
| exit; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Contact form 7 | |
| * custom tag: [posts show:12] | |
| * show parameter is optional | |
| */ | |
| add_action('wpcf7_init', 'custom_add_form_tag_posts'); | |
| function custom_add_form_tag_posts() | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| function philosophy_button( $attributes ) { | |
| $default = array( | |
| 'type'=>'primary', | |
| 'title'=>__("Button",'philosophy'), | |
| 'url'=>'', | |
| ); | |
| $button_attributes = shortcode_atts($default,$attributes); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| function changeDigitsEtoB( $digits ) { | |
| $bangla = numfmt_format(numfmt_create( 'bn_BD', NumberFormatter::TYPE_DEFAULT ),$digits); //Bangla locale | |
| return $bangla; | |
| } | |
| echo changeDigitsEtoB(1234); //output ১২৩৪ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| if ( ! function_exists( 'hippo_plugin_hook_info' ) ): | |
| function hippo_plugin_hook_info( $hook_name ) { | |
| global $wp_filter; | |
| $docs = array(); | |
| $template = "\t - %s Priority - %s.\n\tin file %s #%s\n\n"; | |
| echo '<pre>'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!doctype html> | |
| <html lang=en> | |
| <head> | |
| <title>full screen video</title> | |
| <style> | |
| html, body { | |
| width: 100%; | |
| height: 100%; | |
| padding: 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Instructions | |
| 1. Add MY_url_helper.php to CI_directory/application/helpers | |
| 2. If the CI app is already built, convert any references to *site_url* in your CI application (aside from the system directory) to the new namespaced function, ci_site_url. | |
| This step prevents Wordpress' site_url function from overwriting CIs. Because both functions are global and CI checks to make sure that site_url has not been set. Once we load the WP bootstrap file, it will have been defined, so CI's function wll never load. | |
| 3. Add Wordpress' bootstrap file into CI_directory/index.php right above CI's bootstrap file. | |
| 4. Update wp-includes/load.php *(this is necessary if you are using CI's sessions - Wordpress mangles CI's cookies using with magic quotes. (There may be an upgrade-proof way to do this.) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Options -Indexes | |
| <IfModule mod_rewrite.c> | |
| RewriteEngine On | |
| RewriteBase / | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| RewriteCond %{REQUEST_FILENAME} !-d | |
| RewriteCond $1 !^(index\.php|img|css|js|robots\.txt) |
NewerOlder