This file will setup Wordpress, MySQL & PHPMyAdmin with a single command. Add the code below to a file called "docker-compose.yaml" and run the command
$ docker-compose up -d
# To Tear Down
$ docker-compose down --volumes
$username = "some-username"; | |
$password = "some-password"; | |
$remote_url = 'http://www.somedomain.com/path/to/file'; | |
// Create a stream | |
$opts = array( | |
'http'=>array( | |
'method'=>"GET", | |
'header' => "Authorization: Basic " . base64_encode("$username:$password") | |
) |