Docker GD Library

Add “GD Library with JPG support” extension on Docker
http://code.visitanyplace.com/add-gd-library-with-jpg-support-extension-on-docker/

Troubles with Docker + PHP7 + GD resulting in “Call to undefined function imagecreatefromjpeg()”:
https://stackoverflow.com/questions/47292221/troubles-with-docker-php7-gd-resulting-in-call-to-undefined-function-imagec

Under docker error Call to undefined function Intervention\Image\Gd\imagecreatefromjpeg:
https://laracasts.com/discuss/channels/general-discussion/under-docker-error-call-to-undefined-function-interventionimagegdimagecreatefromjpeg

refresh container with new extension (In dockerfile)

docker-compose up -d –build

–build Build images before starting containers.
-d, –detach Detached mode: Run containers in the background,
print new container names.

https://docs.docker.com/compose/reference/up/

GIT DELETE BAT

FOR /F “tokens=*” %%G IN (‘DIR /B /AD /S *.git*’) DO RMDIR /S /Q “%%G”

Docker – Minimal only PHP server setting

Dockerfile
###########################################
FROM php:5.4-apache
RUN a2enmod rewrite
RUN docker-php-ext-install pdo pdo_mysql && docker-php-ext-enable pdo_mysql
RUN docker-php-ext-install mysqli && docker-php-ext-enable mysqli
RUN apt-get update && apt-get upgrade -y

RUN echo “file_uploads = On\n” \
“memory_limit = 1000M\n” \
“upload_max_filesize = 1000M\n” \
“post_max_size = 1000M\n” \
“max_execution_time = 9000\n” \
> /usr/local/etc/php/conf.d/uploads.ini

CMD [“apachectl”, “-D”, “FOREGROUND”]

EXPOSE 80
###########################################

docker-compose.yml

###########################################
version: “3.8”

services:
web:
build:
context: .
dockerfile: Dockerfile
#image: “php:5.4-apache”
container_name: test_phpserver
restart: ‘always’

volumes:
– .:/var/www/html
ports:
– ’80:80′
###########################################

test.php

?php
echo “hello world”;

##############
Browser:
http://localhost/test.php

Session Regeneration Problem in Codeigniter – Codeigniter Session regenerate and data loss

This is usually caused by incompatibility between Codeigniter and PHP versions. For example, running Codeigniter version 3.1 on PHP 7.3.11 will result in unexpected behaviours like session regeneration.
Try upgrade to latest Codeigniter version, it should resolve the issue.

Codeigniter 3.1.11 – Session regenerate and data loss PHP 7.3.11:
https://forum.codeigniter.com/thread-75042.html

Reklám blokkolás Android telefonon Youtube App és Chrome böngésző alatt

How To Block Ads on Youtube App

hirdetés blokkolás, korlátozás, a személyreszabott hirdetés kikapcsolása, adatgyűjtés leállítása = kevesebb politikai hirdetés

A politikai reklám (Orbán – Gyurcsány) áradat miatt határoztam el, hogy keresek valami megoldást a blokkolásra. Gondolom, csak durvább lesz a helyzet-
A Youtube app már nézhetetlen volt, hogy mindig bevágnak egy hirdetést.

Tevékenységvezérlők: https://myactivity.google.com/activitycontrols?pli=1

Hirdetések személyre szabása: https://adssettings.google.com/authenticated?utm_source=my-activity&hl=hu

Ad Choices > Összes szolgáltató kikapcsolása: https://www.youronlinechoices.com/hu/ad-choices

Chrome böngész alatt: AdBlock – a legjobb hirdetésgátló: https://chrome.google.com/webstore/category/extensions?hl=hu