The horror of programming

From Magnesium
Revision as of 19:21, 31 January 2024 by Ossip Groth (talk | contribs)
  • my medline program runs with some idiosyncrasms, so this document is important for 500.19 iis errors. .
  • have to learn mysquli for own mysql databases -living in php5 world- and landing in 8.
  • have to clean up coviki.og covid collection bc wiki ran in open mode for a few days seo me.
  • php8 Warning: Undefined array key - Best way to handle Undefined array key in PHP 8.0 - to transmit the link variables here i made a function for bla.com/bla.php?px=wert into $px2 ! reuse variables like trash ! idea from [1] but i made a function ! Gives a string even if $gtr0 is integer so
$z0=intval(gettr("Z0",0));
$px2=gettr("px2");

function gettr($gtr,$gtr0){
 if (array_key_exists($gtr, $_GET)) {
  $gtr = $_GET[$gtr];}
 else {$gtr=$gtr0;}
 return $gtr;}

  • include this & that
<?php #include_once("analyticstracking.php") ?>