Skip to content

Logic Bytes

Spread Your Knowledge

  • Home
  • How To
  • PHP
    • Cakephp
    • WordPress
    • CodeIgniter
    • Laravel
  • Python
    • Django
    • Flask
  • Contact

CodeIgniter

CodeIgniter / PHP

send mail from localhost in php

March 7, 2017 Chandan SharmaComment on send mail from localhost in php

  <?php error_reporting(E_ALL ^ E_NOTICE ^ E_DEPRECATED ^ E_STRICT); set_include_path(“.” . PATH_SEPARATOR . ($UserDir = dirname($_SERVER[‘DOCUMENT_ROOT’])) . “/pear/php” . PATH_SEPARATOR . get_include_path()); require_once “Mail.php”; $host …

Read More
CodeIgniter / PHP

send mail from localhost

March 7, 2017 Chandan SharmaComment on send mail from localhost

USED LINK:: http://stackoverflow.com/questions/15965376/how-to-configure-xampp-to-send-mail-from-localhost Modify this files: 1. MODIFY php.ini 2. modify sendmail.ini

Read More
Article / CodeIgniter / PHP

Get url Segments in php

March 7, 2017 Chandan SharmaComment on Get url Segments in php

## Get Url Segments from Url in php  $uri_path = parse_url($_SERVER[‘REQUEST_URI’], PHP_URL_PATH); $uri_segments = explode(‘/’, $uri_path);  

Read More
CodeIgniter / PHP

Add/Modify Data in Existing Array

March 6, 2017 Chandan SharmaComment on Add/Modify Data in Existing Array

## Add/Modify Data in Existing Array $msg= array( [0]=array( ‘id’=2 ‘name’=som ) [1]=array( ‘id’=3 ‘name’=mon ) ) if($msg){   foreach ($msg as &$val) {   …

Read More
CodeIgniter / PHP / SQL

Join table using function

March 6, 2017 Chandan SharmaComment on Join table using function

// Join variables are assigned here:: $slct = “mg.*”; $from = $prev.”msg as mg JOIN mber as m ON m.ud = mg.fd”; $cond = “mg.td …

Read More
CodeIgniter / PHP

Show only 100 chars from huge text

February 26, 2017 Chandan SharmaComment on Show only 100 chars from huge text

<?php                       if($product_details[‘description’] != “”) { echo substr(strip_tags(html_entity_decode($product_details[‘description’])), 0, strrpos(substr(strip_tags(html_entity_decode($product_details[‘description’])), 0, 100), ‘ ‘)) . …

Read More
CodeIgniter / JavaScript / JQuery / Json / PHP

Reload Parent window From Child Window

February 26, 2017 Chandan SharmaComment on Reload Parent window From Child Window

Reload Parent window from pop-up child window:: window.opener.location.reload(false) https://developer.mozilla.org/en-US/docs/Web/API/Window

Read More
Article / CodeIgniter / JavaScript / JQuery / Json / PHP

Refresh Parent window

February 26, 2017 Chandan SharmaComment on Refresh Parent window

Refresh Parent window:: window.parent.location.reload()

Read More
CodeIgniter / PHP

Get all months name in php

February 26, 2017 Chandan SharmaComment on Get all months name in php

$months = array();                 $currentMonth = 0; //(int)date(‘m’); for ($x = $currentMonth; $x < $currentMonth + 12; $x++) …

Read More
CodeIgniter / JavaScript / JQuery / PHP / Validation

Check Email Validation using JavaScript in php

February 26, 2017 Chandan SharmaComment on Check Email Validation using JavaScript in php

function validateEmail(email) { var emailReg = /^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/; return emailReg.test(email); }

Read More

Posts navigation

Previous 1 … 15 16 17 … 23 Next

Recent Posts

  • Python Automation Framework-PyUnit (Unittest) Framework
  • Python Automation Framework-TestProject Framework
  • Python Automation Framework-Pytest Framework
  • Python Automation Framework-Lettuce Framework
  • Python Automation Framework-Behave Framework:
  • Top Python Testing Automation Frameworks in 2024
  • Visual Studio Code Keyboard Shortcut Editor
  • Visual Studio Code Keyboard Shortcuts
  • How to Remove Sidebar from Category Pages in WordPress?
  • Best Practices for API Responses

Automation Frameworks Automation Testing Behave Framework Blogger Blogspot Cakephp Cheat Sheets Code Editor CodeIgniter Code Navigation Collaborative Coding Debugging Tools Disable Mouse Right Click Domain Extension Editor Extension Full form Facebook Facebook Video Download IDE JavaScript JQuery Lettuce Framework Microsoft Code Editor Open-Source Code Editor PHP Pytest Framework Python Python-3.x Python Automation Python Automation Frameworks Python Automation Testing Python Pytest Framework Python Testing Frameworks Python TestProject Framework Python Unittest Framework Syntax Highlighting Testing Frameworks Text Editor for Developers Visual Code Visual Code Editor Visual Studio Code Visual Studio Code Cheat Sheet VSCode VSCodeEditor WordPress

Copyright © 2026 Logic Bytes.
Powered by WordPress and PridMag.