Category : PHP

Illuminate/HTML package has been deprecated Do this: In cmd run command: composer require laravelcollective/html In your composer.json file in “require” group should be added this line: “laravelcollective/html”: “5.2.*” Update composer with command: composer update In config/app.php add this lines: in providers group: Collective\Html\HtmlServiceProvider::class, in aliases group: ‘Form’ => Collective\Html\FormFacade::class, ‘Html’ => Collective\Html\HtmlFacade::cla..

Read more

working solution: Assuming On windows XAMPP server similar for other environment – download and extract for cacert.pem here (a clean file format/data) https://gist.github.com/VersatilityWerks/5719158/download put it here C:\xampp\php\extras\ssl\cacert.pem in your php.ini put this line in this section: ;;;;;;;;;;;;;;;;;;;; ; php.ini Options ; ;;;;;;;;;;;;;;;;;;;; curl.cainfo = “C:\xampp\php\extras\ssl\cacert.pem” restart your webserver/apache Problem solved! (source: https://laracasts.com/discuss/channels/general-discussion/curl-error-60-ssl-certificate-problem-unable-to-get-local-issuer-ce..

Read more

Maintenance Modes To enable maintenance mode, simply execute the down Artisan command: php artisan down To disable maintenance mode, use the up command: php artisan up Create New Projects composer create-project laravel/laravel {Project name} “5.1.*” Laravel Project serve to specific port/IP (eg. localhost:8000) php artisan serve –host=localhost –port=8000 Creating New Laravel Controler (app/Http/Controllers/{controller name}) php ..

Read more

php -r “copy(‘https://getcomposer.org/installer’, ‘composer-setup.php’);” php -r “if (hash_file(‘SHA384’, ‘composer-setup.php’) === ‘e115a8dc7871f15d853148a7fbac7da27d6c0030b848d9b3dc09e2a0388afed865e6a3d6b3c0fad45c48e2b5fc1196ae’) { echo ‘Installer verified’; } else { echo ‘Installer corrupt’; unlink(‘composer-setup.php’); } echo PHP_EOL;” php composer-setup.php php -r “unlink(‘composer-setup.php’);” —- Change to a directory on your PATH and run the installer following the Download page instructions to download composer.phar. Create a new composer.bat file ..

Read more

Writing events to a Calendar with PHP using the Google Calendar API 3 and a Service Account (no user) Writing events to a Calendar with PHP using the Google Calendar API 3 and a Service Account (no user). 1. Download Google API’s PHP Client First download the Google API’s PHP Client code by following these instructions:https://code.google.com/p/google-api-php-client/. ..

Read more

<?php function post_to_url($url, $data) { $fields = ”; foreach ($data as $key => $value) { $fields .= $key . ‘=’ . $value . ‘&’; } rtrim($fields, ‘&’); $post = curl_init(); curl_setopt($post, CURLOPT_URL, $url); curl_setopt($post, CURLOPT_POST, count($data)); curl_setopt($post, CURLOPT_POSTFIELDS, $fields); curl_setopt($post, CURLOPT_RETURNTRANSFER, 1); $result = curl_exec($post); curl_close($post); return $result; } $data = array(“mobile1″=>”1111111″,”mobile2″=>”123456789”, “fname”=>”Bill”,”lname”=>”Clinton”,”dstatus”=>”wait”,”rstatus”=>”old”, “server_ipadr”=>”192.168.1.120″,”trans_id”=>”5″,”time_of_meet”=>”15min”,”server_id”=>”101″); $surl ..

Read more

Web services ( application services ) is one of the most important part of today development where we ceneteralized or data and allow user to access that data from different sources like web, software, app etc.. Web service provide Interoperability between two different language.  Web service are easy to understand or to made we can easily create ..

Read more

Introduction to CodeIgniter Basic With CRUD CodeIgniter (CI) is one of popular php framework. If you are already building PHP Application, CodeIgniter will help you to do it better and more easily. With CodeIgniter, you can save time, make your web more robust, your code will be easier to read and maintenance. It is free, ..

Read more

SOAP SOAP is probably the most used Web Services protocol. It provides a way of exchanging structured information of application functionality. A SOAP interface can be defined by its Web Service Description Language (WSDL) file, which simply provides the definitions of all available methods to the client. One of the biggest attractions to using SOAP ..

Read more