Latest Post

PHP download file from url using curl example

Whenever you require to download file or image from URL using php curl. then you can see that example. we can download image or file from given url and save in over local server. you can do that using get_file_contents() in php too, but i think it is good if you are doing that using PHP curl. let's see following example : <strong class="example">Example</strong> <pre class="prettyprint lang-php"> $url = 'http://www.test.com/1458398816_33370444.jpg'; <br/> $curlCh = curl_init(); curl_setopt($curlCh, CURLOPT_URL, $url); curl_setopt($curlCh, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curlCh, CURLO.....

By Hardik Savani | March 21, 2016 | | 5520 Viewer | Category : PHP CURL
READ MORE

Laravel 5 manual pagination with array example

If you neeed to create custom pagination of your array, you can learn from this post. basically we are doing pagination with model or DB facade like "User::paginate(10)" OR "DB::table('users')->paginate(10)". But now if you have new array and you want to make pagination on your array then you can also give using "LengthAwarePaginator" class see following example: <strong class="example">Example:</strong> <pre class="prettyprint lang-php"> public function myData($userid) { $data = static::get(); <br/> $result = []; if(!empty($data)){ foreach ($data as $key => $value) { .....

By Hardik Savani | March 21, 2016 | | 14159 Viewer | Category : Laravel
READ MORE

PHP AngularJS CRUD with Search and Pagination Example From Scratch

I would like to share this post with you. you can learn how to use AngularJS in native php. In this post you i did example with create, read, update, delete, search and pagination of items table. I use angularJS MVC with native PHP this way you can easily implement in your project. AngularJS is a awesome library of JS, Because that way you can make application without page load. I mean you have to just one time page load and then whole crud, search and pagination will work without page reload. I create this example that way you can undestand very well and it is very simple to integrate with yo.....

By Hardik Savani | March 19, 2016 | | 111779 Viewer | Category : PHP jQuery AngularJS
READ MORE

PHP - I Can't get the $_POST Values on Ajax Request

I want to share this posts with you because when i was working on native PHP and Ajax Post request(Specially AngularJS Post request) at that time i can't get Post value on form submit. That's why i would like to share you this post. I also want to tell you i was working on my Ubuntu 14.04. I did try lot but i can't get value. At last find stuff to how to solve this issue, i did use "file_get_contents('php://input')" that way i could get POST value in json object and i also decode json value using "json_decode()". So let's try this way : <strong class="example">Example:</strong> <pre class="pr.....

By Hardik Savani | March 18, 2016 | | 2240 Viewer | Category : PHP jQuery AngularJS Ajax
READ MORE

How to git force pull from remote branch ?

When i was working on my Laravel application using git bitbucket repository, i fatch problem when first i did commit on my master branch and i think i did 3 or 4 commits, and my project partner pull also in his local system ,but we did wrong code in this commit so we required to remove that 3 or 4 commit from my bitbucket repository. he did remove that commits from his system but when i did pull but nothing to change, i also remove cache but same. But At last i though i thing i have to hard pull that's why i fired following command. if you also fatch problem like this then let's see this comm.....

By Hardik Savani | March 18, 2016 | | 865 Viewer | Category : Git
READ MORE


stevebauman/location composer package Barcode Grayscale Image Service Provider Base URL Magento Tutorial Check Custom Command whitespace toastr js JSON Query Builder Dropzone.js Collapse Month Stripe jquery.email-autocomplete.min.js Magento 2 nl2br no-captcha Protection Highchart chmod uppercase Switchery JS Attribute ixudra/curl composer package WHERE Query Environment Form Validation Authentication FadeOut Message Packages 404 error page Jquery Modal Links Solve Typeahead JS bootstrap tagsinput socket Mailchimp API meta http-equiv tag response() Config Chart.js Bootstrap Plugin Parsley clearInterval() Site Directory split Instagram API voyager package CURL Paging Admin Panel CASE_LOWER date_format() Remove Sublime Server sven/artisan-view package Join orderBy Sql thujohn/twitter package Capitalize Paypal Payment Gateway Bootstrap Tokenfield Plugin Count Eloquent-Sluggable Package tagsinput.js Setup Xampp Recursive Where Not In Query Behance API Laravel 4 DATE_SUB Sendgrid Tag Manager plugin Email Verification Current select box search Laravel Particular datatables Global Variable summernote Null Schema Foreign Key Bootstrap Notify Plugin User Laravel 5 Chat Lightbox Mail gmaps.js Amazon S3 daterangepicker Special Subscription Value View Loop Sortable Parameters Modal clipboard.js LIKE Query Artisan Command Image Function PHPExcel FadeIn JS Cache React JS Ip Address read more Link Components & Slots Strings Example Connection guzzle http client Mailgun API Redirect Segment Local PingPong Paytm str_random() Controller filesize() Image Upload jquery.lazyload.js word-wrap Numeric Confirm Box colorpicker Image Gallery Repository Pattern API IP Laravel 5.4 phpmyadmin