Setting up AMP on MacOS 14 Sonoma with Homebrew This is one of the best and most detailed instruction sets on the topic that I’ve come across on the net.
CSS Hack: Detect an updated CSS (or JS or image files) and override cached version Discussion of original solution is here: https://stackoverflow.com/questions/118884/how-to-force-the-browser-to-reload-cached-css-js-files The rewrite rule in htaccess: RewriteEngine on RewriteRule ^(.*)\.[\d]{10}\.(css|js)$ $1.$2 [L] The PHP function: /** * Given a file, i.e. Continue Reading →
PHP: Passing POST data from script to script This is how to pass data via POST to another processing script but not via the usual HTML form submission. Continue Reading →
AMP setup on Ubuntu Focal Fossa (20.04 LTS) #go root sudo -s #install mysql apt-get -y install mysql-server mysql-client #secure mysql mysql_secure_installation #test mysql installation success mysql -u root -p #install apache apt-get -y install apache2 #install php and apache php module sudo apt update sudo apt install php libapache2-mod-php #restart apache systemctl restart apache2 #test php nano /var/www/html/info.php # <?php phpinfo(); chown www-data:www-data /var/www/html/info.php #search for additional and available support packages; including mysql apt-cache search php7.4 apt-cache search php- #install other support packages apt-get -y install php7.4-mysql php7.4-curl php7.4-gd php7.4-gmp php7.4-json php7.4-ldap php7.4-odbc php7.4-opcache php7.4-sqlite3 php7.4-tidy php7.4-xml php-geoip php7.4-imap php7.4-intl php7.4-mbstring php7.4-soap php-xdebug php-oauth php-memcache php-mongodb php-mailparse php-imagick php7.4-opcache php-codesniffer php-pear php7.4-xmlrpc php7.4-xsl php7.4-zip php-mime-type php-mail #restart apache systemctl restart apache2 #enable SSL a2enmod ssl a2ensite default-ssl #reload apache systemctl reload apache2 References: https://www.howtoforge.com/tutorial/install-apache-with-php-and-mysql-on-ubuntu-18-04-lamp/https://websiteforstudents.com/how-to-install-php-on-ubuntu-20-04-18-04/ Continue Reading →
Visibility in OOP One of the better written articles on visibility I’ve encountered. Continue Reading →
Exploring Yii Getting Started: Definitive Guide (Official Documentation) : http://www.yiiframework.com/doc/guide/1.1/en/index Examples: Yii Playground: http://www.yiiplayground.com/index.php Visual Yii: http://www.eha.ee/labs/yiiplay/index.php/en Continue Reading →
LAMP setup on development server running Ubuntu Desktop 13.04 UPDATE (June 2020): Ubuntu has certainly come a long way. Continue Reading →
WAMP setup upgrade on my development server It has been a while since I made any updates on my development setup. Continue Reading →
OOPs! Best OOP tutorials I’ve encountered, so far: http://net.tutsplus.com/tutorials/php/object-oriented-php-for-beginners/ — uses a house and a blue print as analogy. Continue Reading →
Regular expressions in PHP Looking at regular expressions with all the strange symbols and characters can be pretty intimidating. Continue Reading →