Database Configuration CodeIgniter

Database Configuration CodeIgniter Database Configuration CodeIgniter has a config file that lets you store your database connection values (username, password, database name, etc.). The config file is located at application/config/database.php. You can also set database connection values for specific environments by placing database.php in the respective environment config folder. The config settings are stored in a multi-dimensional array with […]

Read More

Database Quick Start: Example Code CodeIgniter

Database Quick Start: Example Code CodeIgniter Database Quick Start: Example Code The following page contains example code showing how the database class is used. For complete details please read the individual pages describing each function. Initializing the Database Class The following code loads and initializes the database class based on your configuration settings: $this->load->database(); Once loaded the […]

Read More

Why CodeIgniter?

Why CodeIgniter? Framework with a small footprint CodeIgniter 3 has a 2MB download, including the user guide. Exceptional performance CodeIgniter consistently outperforms most of its competitors. Simple solutions over complexity CodeIgniter encourages MVC, but does not force it on you. Strong Security We take security seriously, with built-in protection against CSRF and XSS attacks. Clear […]

Read More

www rewrite htaccess opencart

www rewrite htaccess Opencart # 1.To use URL Alias you need to be running apache with mod_rewrite enabled. # 2. In your opencart directory rename htaccess.txt to .htaccess. # For any support issues please visit: http://www.opencart.com Options +FollowSymlinks # Prevent Directoy listing Options -Indexes # Prevent Direct Access to files <FilesMatch “(?i)((\.tpl|\.ini|\.log|(?<!robots)\.txt))”> Require all denied […]

Read More

What Is a Socket?

What Is a Socket? Normally, a server runs on a specific computer and has a socket that is bound to a specific port number. The server just waits, listening to the socket for a client to make a connection request. On the client-side: The client knows the hostname of the machine on which the server […]

Read More

NDA 2019 Exam Date

NDA 2019 Exam Date Here we have provided the official schedule of NDA (1) and NDA (2) 2019 examinations: Events NDA I NDA II Release of notification 9th January 2019 7th August 2019 Application form available 9th January 2019 7th August 2019 End date to submit the application 4th February 2019 3rd September 2019 Admit […]

Read More

Run Node JS Server At Background Continuously With Forever.

Run Node JS Server At Background Continuously With Forever. You could install forever using npm like this: # sudo npm install -g forever And then start your application with: # forever server.js Or as a service: # forever start server.js Forever restarts your app when it crashes or stops for some reason. To restrict restarts to […]

Read More

Use multiple databases in OpenCart

Use multiple databases in OpenCart To use multiple databases in OpenCart (1.5.*), just update 3 files as given below: Config.php: Add: //New DB define(‘NEWDB_DRIVER’, ‘mysql’); define(‘NEWDB_HOSTNAME’, ‘localhost’); define(‘NEWDB_USERNAME’, ‘root’); define(‘NEWDB_PASSWORD’, ‘password’); define(‘NEWDB_DATABASE’, ‘sitename_newdb’); define(‘NEWDB_PREFIX’, ‘ndb’); Index.php: Below the current database setup ($db = new DB(DB_DRIVER …) add: $newdb = new DB(NEWDB_DRIVER, NEWDB_HOSTNAME, NEWDB_USERNAME, NEWDB_PASSWORD, NEWDB_DATABASE); $registry->set(‘newdb’, $newdb ); […]

Read More

multiple database connection in laravel

multiple database connection in laravel .env file DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=database1 //database first DB_DATABASE_OPENCART=database2    // database second DB_USERNAME=root DB_PASSWORD=aaaa@#2233 config/database ‘mysql’ => [ ‘driver’ => ‘mysql’, ‘host’ => env(‘DB_HOST’, ‘localhost’), ‘port’ => env(‘DB_PORT’, ‘3306’), ‘database’ => env(‘DB_DATABASE’, ‘database1’), ‘username’ => env(‘DB_USERNAME’, ‘root’), ‘password’ => env(‘DB_PASSWORD’, ‘aaaa@#2233’), ‘charset’ => ‘utf8’, ‘collation’ => ‘utf8_unicode_ci’, ‘prefix’ => […]

Read More

HOW TO DOWNGRADE WORDPRESS TO A PREVIOUS VERSION

HOW TO DOWNGRADE WORDPRESS TO A PREVIOUS VERSION Have you ever updated to the newest version of WordPress, and then noticed that your site starts to have a bunch of problems? Don’t freak out. A lot of the times, it’s an issue with a plugin or theme that’s not compatible with the newest update. Sometimes […]

Read More