if you want to display errors on upload functionality in codeigniter. Use the following function if($this->upload->do_upload(‘image’)) { $contentimagedata=$this->upload->data(); $descdata[‘image’]=$contentimagedata[‘file_name’]; }else { $error = array(‘error’ => $this->upload->display_errors()); print_r($error); }
Category: PHP
Download failed.: SSL certificate problem, verify that the CA cert is OK
Follow the simple steps to recover from the above wordpress upgrade error step 1 .Create a folder, which may be missing: /wp-content/mu-plugins step 2. Create a php file inside that folder and name upgrade_fix.php put the following code into the php file and save add_filter(‘https_ssl_verify’, ‘__return_false’); add_filter(‘https_local_ssl_verify’, ‘__return_false’); step3. Go directly and run the network upgrade again,…
check ssl port in shared hosting is closed
Check ssl port in shared hosting is closed, use the php code to check if it is open. Here use gmail smtp for checking. $fp = fsockopen(“www.google.com”, 80, $errno, &$errstr, 10); // work fine if (!$fp) echo “www.google.com – $errstr ($errno)n”; else echo “www.google.com – okn”; $fp = fsockopen(“smtp.gmail.com”, 465, $errno, $errstr, 10); // NOT…
Generate three letter month name from a date with example code
Php date function have number of usages in Web programming. You can make it our own different ways for desired output. Here the piece of php code tell how to Generate three letter month name from a date echo date(‘M’, strtotime(’14-12-1985′)); OutPut Dec 3 letter abbreviation of english Month December Searches related to php date…
Enabling Maintenance Mode in OpenCart
Opencart is a Lightweight E-commerce CMS with large number of modules and extensions. Easy steps for Enabling Maintenance Mode Sign in Opencart Admin Step-1: Go to System -> Settings Step-2: Select your store from the list and click on edit. Step-3: Select the Server tab and Go to the Maintenance…