Latest Post

How to find day from specific date in PHP?

Whenever you need to det day like Monday, Tuesday etc from full date. i mean you have any specific date like "2015-10-10" and you want to get day then you can do in both way first using strtotime() and second using DateTime object. In Following example you can see i give you both way to get day from your date. now i added format 'l' so it will return full name of day like "Tuesday", but if you want to get short name of day then you can change format like "D". <pre class="language-php"> // Using strtotime() $specificDate = strtotime('2016-2-3'); $specificDate = date('l', $specificDate); var_d.....

By Hardik Savani | February 3, 2016 | | 825 Viewer | Category : PHP

How to push item to 0 index or first of $scope object in AngularJS?

you are working on angular JS and you wanted to add item on top of array, i mean you need to add 0 index of $scope array then you can do. in following example you can see how to do.if you want to push first then you have to use splice() instend of push(). <strong>Example:</strong> <pre class="code language-html"> <html> <head> <title>Angular JS</title> <script src=""></script> <script src=""></script> <script&.....

By Hardik Savani | February 2, 2016 | | 1595 Viewer | Category : JSON AngularJS

How to increment or decrement a column value in laravel?

Whenever you need to increment or decrement value of column in database, then you do not need to first fetch that record and then update, so that way we will make long code and very hard code, so basically you can increment and decrement by using increment() and decrement() statment of laravel query builder. If you want to increment or decrement opration using update() method of laravel query builder then you also do that, in following example i am showing you how to increment and decrement value of column in table by using increment(), decrement() and update(). <pre class="language-php"> na.....

By Hardik Savani | February 2, 2016 | | 11527 Viewer | Category : Laravel

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Some time when you are open any link your website then browser display following massage <h2 style="margin:0px;padding:0px;">Not Found</h2> <span style="margin:0;padding:0;">The requested URL /test.html was not found on this server.</span> <span style="margin:0;padding:0;">Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.</span><br /> this problem fix by .htaccess write following code in your .htaccess file <pre class="language-mysql"> RewriteEngine on <IfModule mod_rewrite.c> RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f Rewrit.....

By Hardik Savani | February 1, 2016 | | 1407 Viewer | Category : .htaccess

How to fix and recover a “corrupt history file” in zsh?

Many user use ubuntu OS and many user face one of the common problem several time like “corrupt history file in zsh" most of time face this problem when reboot your OS so, How to fix this problem please follow this command and fix that. <pre class="language-mysql"> mv .zsh_history .zsh_history_bad strings .zsh_history_bad > .zsh_history fc -R .zsh_history </pre>

By Hardik Savani | January 31, 2016 | | 1514 Viewer | Category : Ubuntu

Segment typed.js plugin Ionic framework After Twitter API Switchery JS JWT FIND_IN_SET() SUBSTRING_INDEX() Paytm Captcha code array_combine mysqld.sock Value Jquery Dialog Box Validation Current Page Resize Image Laravel 5 COUNT() Limit croppie.js Determine QR Code guzzle http client Login With FB Effect mCustomScrollbar Plugin setInterval() characters array_map Undefined Convert php_ini_loaded_file Linux hasColumn Log Packages Dropzone.js Local GET Ajax Paypal Payment Gateway Highchart thujohn/twitter package Chart bplist-parser Where Not In Query Gmail Codeigniter 3 AngularJS Filter CloudConvert API Chat Sublime text 3 Join First Prompt modal Run Project tagsinput.js mod_rewrite HTML Behance API Codeigniter Localization marker Allow ServiceProvider Master X-editable Plugin Date Format colorpicker Interfaces Controller File Language Old ANDROID_HOME SUM() word-wrap Where In Query Instagram API Last validator.js Demo php.ini read more Example Tooltip Jquery UI yajra/laravel-datatables-oracle Path Event Export throttle Message clockface plugin Folder bootstrap-growl Payment Gateway popupMultiSelect plugin Null clipboard.js Laravel Eloquent Listener Snippet Parsleyjs Grayscale Image Issue Socialite Chosen JS xoxco tags input PostgreSQL Current encrypter Google Map pop() Gravatar Image User pngquant Reset hasTable DB Statement Email Verification Installation Service Provider Vue.JS Opencart Accordion Laravel 5.3 response() Redis strpos datatables Sendgrid Control Website SMTP RSS Feed Div CORS Enable WHERE Query filter_var Thumbnails Key CASE_LOWER Twitter Bootstrap Schema Repository Pattern Animation