dvtailor36@gmail.com

Carbon

Carbon is a package by Brian Nesbit that extends PHP’s own DateTime class. It provides some nice functionality to deal with dates in PHP. Specifically things like: Dealing with timezones Getting current time easily Converting a datetime into something readable Parse an English phrase into datetime (first day of January 2016) Add and Subtract dates (+ 2 weeks, -6 months) …

Carbon Read More »

Load More Data

First In a ProductController : public function load_more_qna() { $product_id = $this->input->post(‘product_id’); $category = $this->input->post(‘category’); $start = $this->input->post(‘start’); $this->load->model(‘model_forum’); $forum_questions = $this->model_forum->get_product_question_answer(array(“product_id” => $product_id, “category” => (‘delivery’,’product’),”start” => $start)); if (isset($forum_questions) && !empty($forum_questions)) { $question_answer_array = array(); foreach ($forum_questions as $key => $value) { if (!isset($question_answer_array[$value[“question_id”]]) || !is_array($question_answer_array[$value[“question_id”]])) { $question_answer_array[$value[“question_id”]] = array(); } $question_answer_array[$value[“question_id”]][“question_id”] = …

Load More Data Read More »

MySQL: Error Code: 1118 Row size too large (> 8126). Changing some columns to TEXT or BLOB

Method : 1 Change a settings in “my.ini” innodb_log_file_size = 500M innodb_log_buffer_size = 800M ‘my.ini’ file location in Ubuntu/Linux: my.ini file might be one of below location /etc/my.cnf /etc/mysql/my.cnf $MYSQL_HOME/my.cnf [datadir]/my.cnf ~/.my.cnf ‘my.ini’ file location in Window: Below steps for my.ini file cd C:\Program Files\MySQL\MySQL Server 5.5 copy my-medium.ini my.ini net stop mysql net start …

MySQL: Error Code: 1118 Row size too large (> 8126). Changing some columns to TEXT or BLOB Read More »

Configuration of the Apache Web Server on Ubuntu [Easy & Fast]

Introduction Apache is a popular open-source, cross-platform web server that is, by the numbers, the most popular web server in existence. It’s actively maintained by the Apache Software Foundation. Some high-profile companies using Apache include Cisco, IBM, Salesforce, General Electric, Adobe, VMware, Xerox, LinkedIn, Facebook, Hewlett-Packard, AT&T, Siemens, eBay, and many more the basic job …

Configuration of the Apache Web Server on Ubuntu [Easy & Fast] Read More »