PHP
PHP is a popular server-side scripting language designed for web development. It is widely used to build dynamic web applications and can be embedded into HTML code.
Frameworks
PHP has a variety of frameworks available that can be used to build web applications more quickly and efficiently. Popular PHP frameworks include Laravel, Symfony, and CodeIgniter.
Installing PHP & Apache
Apache is the most commonly used Web server on Linux systems. Web servers are used to serve Web pages requested by client computers.
sudo apt install apache2 apache2-utils -y
sudo rm -f /var/www/html/index.html
sudo systemctl enable apache2
sudo service apache2 restart
# Apache Configurations
sudo adduser $USER www-data
sudo chown -R $USER:www-data /var/www/html/
PHP is a general-purpose scripting language geared toward web development.
sudo apt install php -y
sudo service apache2 restart
Documentation
The PHP documentation is available online at php.net. This documentation includes guides, tutorials, and reference material for learning PHP and using it effectively.
- What is PHP
- How to Use Two Different PHP Versions
- Database connection v1 (PHP File)
- Database connection v2 (PHP File)
- PHP Array Functions
- PHP GET & POST Methods
- PHP Forms
- PHP Form Handling
- PHP Form Validation
- PHP Form Required
- PHP Form URL and Email
- Handling URL Parameters in PHP
- PHP Form Complete
- PHP MySQL Login
- Null Coalescing Assignment
- Remove .php From URL
- PHP Debug (xdebug)
- PHP Cookie)
- PHP Session)
- Set Server Date Time Property
- 8 PHP Performance Tips Every Developer Should Know
- Optimizing PHP for High Traffic Websites
- Understanding WebSockets in PHP
Useful Links
- LAMP Stack Built with Docker Compose
- It is a local development environment for PHP. This Docker Stack is build for local development and not for production usage.
- PHP The Right Way
- The Right Way is an easy-to-read, quick reference for PHP popular coding standards, links to authoritative tutorials around the Web, and what the contributors consider to be best practices at present.
- Sweet PHP Debugging in Four Minutes
Projects
- Simple Excel
- Easily parse / convert / write between Microsoft Excel XML / CSV / TSV / HTML / JSON / etc formats