Skip to content

Logic Bytes

Spread Your Knowledge

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

Beadcrum in php

June 9, 2017 Chandan SharmaComment on Beadcrum in php

##  FOR DYNAMIC BREADCRUM:: filename = breadcrum.php; <?php class breadcrumb_class {     var $breadcrumb = array();     function insertBreadcrumb($title,$path=”#”)     {   …

Read More
Article / PHP

How to make dynamic breadcrum using segments

June 9, 2017 Chandan SharmaComment on How to make dynamic breadcrum using segments

<?php // This function will take $_SERVER[‘REQUEST_URI’] and build a breadcrumb based on the user’s current path function getBreadcrumbs($separator = ‘ &raquo; ‘, $home = …

Read More
CodeIgniter / JavaScript / JQuery / PHP / Validation

Form validation using jQuery in php

June 6, 2017 Chandan SharmaComment on Form validation using jQuery in php

## form validation in JQuery <script type=”text/javascript”> $(document).ready(function(){    $(‘#send_enquiry’).click(function(){ var get_validate = validateForm();        console.log(get_validate); if(get_validate>0){    return false; }else{    return …

Read More
Article

Facebook returned credentials after login in php

June 3, 2017 Chandan SharmaComment on Facebook returned credentials after login in php

## FACEBOOK RETURN CREDENTIALS IF SUCCESFULLY LOGGED IN Facebook\GraphObject Object (     [backingDatarotected] => Array ( [name] => UserName [email] => UnserEmail [id] => …

Read More
Article

Get all child category under a category

June 3, 2017 Chandan SharmaComment on Get all child category under a category

## get all childs & their childs under a parent category //get all childs & their childs public function get_child_categories( $parent_id ){ $childtree = $this->nowbuild_child_tree($parent_id); …

Read More
JavaScript / JQuery / PHP

Reset a form using jquery

June 2, 2017 Chandan SharmaComment on Reset a form using jquery

## Reset a form using jQuery. <script> $(“#formid”).find(“input,textarea”).val(“”); </script>

Read More
CodeIgniter / PHP

Download a file in php

June 2, 2017 Chandan SharmaComment on Download a file in php

## Download file with a save option in php. $filename = “newfile.pdf”; $file_url = $filepath.$filename; //example: $file_url = ‘http://www.link.com/file.pdf’; header(‘Content-Type: application/octet-stream’); header(“Content-Transfer-Encoding: Binary”);  header(“Content-disposition: attachment; …

Read More
CodeIgniter / JavaScript / JQuery / PHP

jQuery click not working after append div

May 31, 2017 Chandan SharmaComment on jQuery click not working after append div

#Jquery: Click event doesn’t work after append.  $(document).on(‘click’, ‘.’, function(e) //do whatever });

Read More
PHP

fibonacci in php

May 31, 2017 Chandan SharmaComment on fibonacci in php

<?php if(!empty($_GET[‘upto’])){ $upto = $_GET[‘upto’]; }else{ $upto = “”; } function getfibo($upto=5){ $second =1;  $first  =0; $fibo_arr[] = $first; $fibo_arr[] = $second; for($i=1; $i<$upto; $i++){ …

Read More
CodeIgniter / Htaccess / PHP

Routing using htaccess

May 20, 2017 Chandan SharmaComment on Routing using htaccess

RewriteEngine on RewriteBase / ###Maintainance ## RewriteRule ^maintainanace/$ maintain.php RewriteRule ^logout/$ logout.php RewriteRule ^logout$ logout.php RewriteRule ^products/([^/]*)/([^/]*)/$ products.php?slug=$1&id=$2 [L]

Read More

Posts navigation

Previous 1 … 22 23 24 … 37 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.