This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM php:7.2-fpm-alpine | |
#FROM php:7.3.0RC3-fpm-alpine3.8 | |
# install PHP extensions | |
RUN apk add --no-cache --virtual .build-deps \ | |
freetype-dev \ | |
libjpeg-turbo-dev \ | |
libpng-dev | |
RUN docker-php-ext-install \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Get Public Posts from External Site using REST API | |
*/ | |
$hostname = 'https://www.peterbooker.com'; | |
$num = 5; | |
$response = wp_remote_get( | |
add_query_arg( | |
array( |
OlderNewer