How to make all cookies secure for ssl connection?
Header always edit Set-Cookie (.*) "$1; HTTPOnly; Secure"
or you can do it seperately by declaring one by one:
Header always edit Set-Cookie (.*) "$1; HTTPOnly"
Header always edit Set-Cookie (.*) "$1; Secure"
$route['404_override'] = 'my404';
$data['content'] = 'error_404'; // View name
$this->load->view('index', $data);//loading in my template
On some hostings you can receive this error.
A PHP Error was encountered
Message: unlink(/tmp/ci_session0189a7f1c86eb18fb70afcfedc2d5040e9c23146): Operation not permitted
To fix this go to application > config > config.php and edit this line:
$config['sess_save_path'] = BASEPATH . 'cache/';
ffmpeg -i "https://siteweb.dd/files/hls/playlist-1080.m3u8" -c copy -bsf:a aac_adtstoasc downloaded_video.mkv
There is a bug with displaying SVG on Safari.
The fix is to wrap SVG in object.
Open Inkscape and load the PNG image.
Paths > Trace bitmap
Choose -Colored , remove SMOOTH and click OK.
Drag down the image, and delete the second image below the first one.
Object > Ungroup
File > Save as
Choose OPTIMIZED SVG
After that you can continue with creating SVG image map.
Hello, this article is for beginners and will show basic functions.
Installation of Laravel
To begin with instalation we need composer. In console write the following.
composer create-project --prefer-dist laravel/laravel NameOfTheProject
What is artisan
Artisan is the name of the command-line interface included with Laravel. It provides a number of helpful commands for your use while developing your application. It is driven by the powerful Symfony Console component.
Continue reading “Laravel first steps” »
I will show you not the fastest but easiest way to move Laravel project to shared hosting. You need to be sure that you are using PHP version >= 5.6.4.
First connect to your FTP and create folder outside “public_html”. You can use any name but in this example I will use (“Laravel”) for the name of this folder.
Move everything except “public” folder from your Laravel project to your newly created folder on shared hosting. It will take some time!
In “public_html” folder you need to move files from “public” folder in your Laravel project.
Open index.php file and change the paths to
autoload.php and app.php files. They should point to files in the Laravel folder.
Continue reading “Laravel on shared hosting” »
In my practice there are two simple solutions.
0 0 1 * * php /home/
USER/public_html/index.php NAME-OF-CONTROLLER NAME-OF-METHOD
example -> php /home/User/public_html/index.php TestCron index
0 0 1 * * curl –silent
example -> curl –silent http://maratonkata.nikolaynikolov.net/TestCron
Project Links do not work on Wamp Server!!!
In WampServer it is now recommended to create a Virtual Host for each of your projects, even if you hold them in a \wamp\www\subfolder structure. The WampServer home page ( \wamp\www\index.php ) now expects you to have created a Virtual Host for all your projects and will therefore work properly only if you do so.
How to create a Virtual Host in WampServer
There are 3 steps to create your first Virtual Host in Apache, and only 2 if you already have one defined.
Continue reading “Create virtual host on WAMP 3” »