-
https://www.php.net/manual/en/ref.pdo-mysql.connection.php
- Examples need reordering or new header
-
https://bugs.php.net/bug.php?id=78677need to add info about parameter type widening on variance pagehttps://www.php.net/manual/en/language.oop5.variance.php
-
document internal PHP web server flags
Originally written to work with Patrick Louys' No Framework Tutorial for PHP.
I use Git Bash, which is installed with Git, as my SSH client, you can use whatever you prefer. Git Bash is a variant of MinGW.
Note: "head mode" means that the VM has a GUI, "headless mode" means that the VM is running, but there is no GUI, and requires a secure connection into the server, in this case by SSH.
Click to toggle contents of other `code`
MORE CODE!
I hereby claim:
- I am tiffany-taylor on github.
- I am tylae (https://keybase.io/tylae) on keybase.
- I have a public key ASDB78TWkJwsPcBulk-zm5Lgbdwb2BsZTnVFo6NgkHcS4Qo
To claim this, I am signing this object:
(Note: these are primarily notes for myself, so a lot of assumptions are made based on things I already know. I may add additional relevant information in the future, I may not.)
- Set up the server like normal,
sudo apt update
and what not. - Install vim as well.
- Settings for VM will need Network set up to Bridged Adapter to be able to SSH into the machine after configuration is complete.
- test pinging google.com, it should "just work"
In PHP 7.2.0, partial contravariance was introduced by removing type resetrictions on parameters in a child method. As of PHP 7.4.0, full covariance and contravariance support was added.
Covariance allows a child's method to return a more specific type than the return type of its parent's method. Whereas, contravariance allows a parameter type to be less specific ina child method, than that of its parent.
To illustrate how covariance works, a simple abstract parent class, Animal
is created. Animal
will be extended by children classes, Cat
, and Dog
.
(example)
- read about mappers, entities and services when approaching model | |
- https://stackoverflow.com/questions/5863870/how-should-a-model-be-structured-in-mvc/5864000#5864000 | |
- https://stackoverflow.com/questions/16356420/mvc-for-advanced-php-developers/16356866#16356866 | |
- practice creating routers | |
- read about big endian and little endian | |
https://www.cs.umd.edu/class/sum2003/cmsc311/Notes/Data/endian.html | |
- read about 8 byte strings and 64-bit integer, signed and unsigned, blah blah blah | |
http://users.ece.utexas.edu/~valvano/embed/chap3/chap3.htm | |
- (challenge) OK here's a fun task for you lovely people... I have a 32-bit PHP installation. I also have an 8 byte string representing | |
a little-endian signed 64-bit integer. This integer is a unix timestamp with nanosecond granularity (and no, I did not choose this). |
An ongoing list of notes that I've found useful over time, gathered in one spot.