STAY INFORMED
following content serves as a personal note and may lack complete accuracy or
certainty.
Minimal-Mistakes instruction
Useful vscode Shortcut Keys
Unix Commands
npm Commands
Vim Commands
Git Note
Useful Figma Shortcut Keys
PHP_1(Introduction)
Introduction
PHP is a widely used server-side scripting language designed for web development.
It is an open-source scripting language, and it is particularly well-suited for web development tasks, such as handling forms, interacting with databases, and managing session data.
setting
xampp -> 8.2.12 download, only MySQL is needed (myphp optional) , uncheck the last thing and finish
vscode extension-> php extension pack
system environment variables -> environment variables -> path ->/ file explorer -> c drive -> xampp -> php -> copy the folder’s address -> paste to new
cdrive -> xampp -> mysql -> bin and copy and paste to new
codes
simple codes with html
<?php
echo "Welcome Home!"; // Outputs a welcome message
?>
simple .php file with HTML code
<!DOCTYPE html>
<html>
<body>
<h1>My first PHP page</h1>
<?php
echo "Hello World!";
?>
</body>
</html>
getting date
<?php
$today = date("D"); // day of the week
// returned today's day
?>
simple input
// reading
<?php
$firstName = "";
echo "please enter your first name: ";
// read from console
$firstName = readline();
echo "welcome to PHP $firstName";
// outputs 'welcome to PHP (firstName)'
?>