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 | | 4154 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 | | 10998 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 | | 87889 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 | | 2001 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 | | 720 Viewer | Category : Git
READ MORE


PHPUnit setTimeout() xoxco tags input word-wrap parse DATEDIFF() auth() Rewrite Request After Sublime text 3 Codeigniter 3 Bootstrap Notify Plugin Sitemap Sublime Current Remote Exists csrf_token CORS FadeIn Laravel 5.2 Specific Event Script Parameters PHP thomaswelton/laravel-gravatar Paypal Integration Tracking Value Controller Listener Ionic CRUD Popup Box Link PHPExcel Javascript Animate Linkedin API Google Chart Node JS Elasticsearch Executed Progress Bar User Agent Old Instagram API AngularJS Directive PostgreSQL COUNT() is_null Redis whitespace str_random() Modal Folder MassAssignmentException Setup Jquery Dialog Box json() Download croppie.js Plugins Behance API Service Provider roumen/sitemap Permission Draggable URL roumen/feed package Form Validation Update Jquery UI Cross Migration Chart Where Not In Query Multiple Subscription Form Jquery SUBSTRING_INDEX() Access Pagination AngularJS TrustAsHTML Filter AngularJS Ubuntu 14.04 Attr Twitter OAuth Clear Google API Commit Configuration Connection API Laravel Eloquent Tutorial socket Backup Date Format Socket.io nl2br array_map mac Composer Switchery JS Trans Helper Mediafıre API Highlight JS Email Verification Laravel Builder Numeric strtolower Redirect inner join ANDROID_HOME RSS Log Activity Database Remove popupMultiSelect plugin phpmyadmin ACL Environment Mail String CURL Payment Gateway Strings 404 error page Path Technology SweetAlert Plugin MySQL Subquery Dynamic Dependant Dropdown Google OAuth split oauth Subscribe XSS Undefined meta http-equiv tag Sortable Artisan Command CloudConvert API Module sven/artisan-view package Last Calculate