Skip to main content

Posts

Showing posts from June, 2016

how to setup git in windows machine

how to setup git in windows machine #install github for windows - https://git-for-windows.github.io/ #create folder #select folder right click and git bash here in cmd line use or create a new repository on the command line echo "# test" >> README.md git init git add README.md git commit -m "first commit" git remote add origin https://github.com/spectrumted/test.git git push -u origin master …or push an existing repository from the command line git remote add origin https://github.com/spectrumted/test.git git push -u origin master ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ to add git on webserver download putty give cpanel domain as host port 22 then ok enter username password then at the root cpanel From your home directory( cd ~/ ), get the rpm: $ wget http://pkgs.repoforge.org/git/git-1.7.9.6-1.el5.rf.i386.rpm Install & Configure Git Unpack git using rpm2cpio and cpio:  

error when Fatal error: Maximum execution time of 300 seconds exceeded in C:\xampp\phpMyAdmin\libraries\dbi\DBIMysqli.class.php

error when Fatal error: Maximum execution time of 300 seconds exceeded in C:\xampp\phpMyAdmin\libraries\dbi\DBIMysqli.class.php max_upload_size max_input_time memory_limit in php.ini should be increased There's a configuration variable within the phpMyAdmin directory that you can find in  libraries\config.default.php  called  $cfg['ExecTimeLimit']  that you can set to whatever maximum execution time you need. $cfg['ExecTimeLimit']

Important notes for pyrocms. pyrocms is a cms built on codeigniter

Important notes for pyrocms and codeigniter pyrocms is a cms built on codeigniter PYROCMS NOTES //is_logged_in() TO CHECK USER LOGGED IN OR NOT //$this->current_user->group out put current user group //$this->permissions); //$this->module SHARE RESOURCES BETWEEN MODELS $this->load->model('navigation/navigation_m'); /&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&/ /****************************************************************************/ //ACCESSING MODEL FROM ANOTHER MODULE $this->load->model('mailchimp/mailchimp_m'); $ModelMailChimp = new Mailchimp_m(); echo $ModelMailChimp->thisIsWorki

Html Parsing code example

Meaning of parsing is to get required information out from html and save it in database like email address. Html Parsing code example Click here to download sample code for parsing a html file  parsing sample code

preg expression regular expression details and introduction

preg expression regular expression details and introduction Useful regex examples Reference: http://www.catswhocode.com/blog/15-php-regular-expressions-for-web-developers REGULAR EXPRESSIONS SYNTAX Regular Expression Will match… foo The string “foo” ^foo “foo” at the start of a string foo$ “foo” at the end of a string ^foo$ “foo” when it is alone on a string [abc] a, b, or c [a-z] Any lowercase letter [^A-Z] Any character that is not a uppercase letter (gif|jpg) Matches either “gif” or “jpg” [a-z]+ One or more lowercase letters [0-9.-] Аny number, dot, or minus sign ^[a-zA-Z0-9_]{1,}$ Any word of at least one letter, number or _ ([wx])([yz]) wy, wz, xy, or xz [^A-Za-z0-9] Any symbol (not a number or a letter) ([A-Z]{3}|[0-9]{4}) Matches three letters or four numbers PHP REGULAR EXPRESSION FUNCTIONS Function Description preg_match() The preg_match() function searches string for pattern, returning true if pattern exists, and false otherwise. preg_match_