Monthly Archives: February 2017

Writing into the file in PHP

The code below overwrites existing content in a file:
$handle = fopen($filename, 'w') or die('Cannot open file:  '.$filename);
The code below adds new line to the existing content:
$handle = fopen($filename, 'a') or die('Cannot open file:  '.$filename);
So, the difference is in fopen($filename, 'w') and fopen($filename, 'a')

Auth in Laravel

For logging system in Laravel I can do this: 1. Win logo on keyboard + R. 2. Type cmd. 3. Go to my Laravel's folder (cd + folder name/or cd.. for moving directory up ) 4. php artisan make:auth