Skip to content

Instantly share code, notes, and snippets.

@thomaskanzig
thomaskanzig / how-to-install-php-apache-mysql-phpMyAdmin-on-macos-monterey-using-homebrew.md
Last active June 20, 2024 02:07
How to install PHP + Apache + MySQL + phpMyAdmin on macOS Monterey using Homebrew

How to install PHP + Apache + MySQL + phpMyAdmin on macOS Monterey using Homebrew

This is a simple process with all instructions for the Development Environment on Mac OS X.
All steps will be launch in your Terminal (/Applications/Utilities/Terminal).

XCode Command Line Tools

If you don't already have XCode installed, it's best to first install the command line tools as these will be used by homebrew:

@ctsrc
ctsrc / README.md
Last active July 21, 2024 15:15 — forked from niw/README.en.md
Guide: Run FreeBSD 13.1-RELEASE for ARM64 in QEMU on Apple Silicon Mac (MacBook Pro M1, etc) with HVF acceleration (Hypervisor.framework)
@dipakcg
dipakcg / export.php
Created December 1, 2016 15:08
Export MySQL to Excel (.xls) using PHP
<?php
/***** EDIT BELOW LINES *****/
$DB_Server = "localhost"; // MySQL Server
$DB_Username = "username"; // MySQL Username
$DB_Password = "password"; // MySQL Password
$DB_DBName = "databasename"; // MySQL Database Name
$DB_TBLName = "tablename"; // MySQL Table Name
$xls_filename = 'export_'.date('Y-m-d').'.xls'; // Define Excel (.xls) file name
/***** DO NOT EDIT BELOW LINES *****/