Category: WebProgramming / WebDev / HTML / PHP

PHP Composer how to install and how to usage
28.10.2023

always say something positive first: then the critique: follow the excellent guide: https://getcomposer.org/download/ mkdir /var/www/html/composer cd /var/www/html/composer php -r “copy(‘https://getcomposer.org/installer’, ‘composer-setup.php’);” php -r “if (hash_file(‘sha384’, ‘composer-setup.php’) === ‘THISWILLHAVECHANGEDBYNOW’) { echo ‘Installer verified’; } else { echo ‘Installer corrupt’; unlink(‘composer-setup.php’); } […]

PHP HowTo – correctly search for a string inside a string
22.09.2022

the developer can name this file ./EXAMPLES/ARRAY/find.php please note the strpos or stripos !== false without it, if a substring is found within a string at position 0 for if 0 equals false <?php $mystring = ‘abc’; $findme = ‘a’; […]

PHP HowTo – sort array of arrays
22.09.2022

usage: $devices_array_sorted = ArrayOfArraysSort($devices_array, “AverageWatts”,SORT_ASC); the function: /* sort array that contains a lot of arrays by key */ function ArrayOfArraysSort($array,$key,$mode) { // sort by age $sort = array(); foreach($array as $k=>$v) { $sort[$key][$k] = $v[$key]; } # sort by […]

JavaScript is evil (= a major security problem)
10.09.2018

2020-12: another reason why JavaScript SUCKS badly and websites NEED TO WORK without JS: it might “destroy” NAT security: NAT Slipstreaming allows an attacker to remotely access any TCP/UDP service bound to a victim machine, bypassing the victim’s NAT/firewall (arbitrary […]

Spectre and Meltdown – Linus Torvalds infuriated by Intel insanity – Open CPU and rise of RISC? RISCV – hifive1
09.05.2018

Update: 2020.03 “The newly developed Rowhammer- attack TRRespass can crack the RAM-a security mechanism by many DDR4-DRAM-modules as well as LPDDR4 Chips. Until now, these were considered to be almost immune to Rowhammer attacks.” https://www.com-magazin.de/news/sicherheit/software-hammer-ram-schutz-attackiert-2515621.html Update: 2019.10 Zombieload is back. […]

28.07.2017

  i did just some basic testing… and managed to compile the php7.3 binary – but the make install failed. it would help to have multiple cores… hostnamectl; # tested with Static hostname: CentosSlave Icon name: computer-vm Chassis: vm Operating […]

CentOS Redhat – compile Apache2 from source
27.07.2017

i tried to compile under debian…. but it’s way more compli cated. also: you probably do not need all the packages stated here… but i did not have the time to sort those out sorry for that. feel free to […]

Free Web Video Conferencing with firefox
25.07.2017

install firefox app and test it for free here: https://appr.tc/ When Browsers start to talk to each other – Open Source HTML5 based Web Video Audio Conferencing WebCam ScreenSharing – Collaboration over internet WebRTC (“Web Real-Time Communication“) enables applications such […]

Programming Languages and Security
03.04.2017

ich wollte mal wissen, wie steht es eigentlich um die Security auf Technologie / Programmiersprachen-Ebene? D.h. welche Programmiersprachen machen es einem schwer vs. einfach sichere Software zu schreiben? Natürlich kann man in jeder Programmiersprache angreifbare Projekte entwickeln… das ist kein […]