This was not found.

'); } if(!file_exists('gallery.html')) { $flickr = json_decode(file_get_contents('flickr.json'), TRUE); $flickr['method'] = "flickr.photosets.getPhotos"; $flickr['extras'] = "media,url_m,url_l"; $flickr['per_page'] = "500"; $flickr['format'] = "json"; $flickr['nojsoncallback'] = "1"; $url = sprintf('https://www.flickr.com/services/rest/?%s',http_build_query($flickr)); $r = json_decode(file_get_contents($url), TRUE); $photos = array(); foreach($r['photoset']['photo'] as $photo) { if($photo['media'] != 'photo') { continue; } $et = sprintf( '%s
%s
', $photo['url_l'], // href $photo['url_m'], // src $photo['width_m'], // width $photo['height_m'], // height '', // alt $photo['title'] // caption ); array_push($photos, $et); } $gs = ' '; $t = sprintf( '%s', join("\n", $photos), $gs ); file_put_contents('gallery.html', $t); } $stat = stat($try_html); $meta = json_decode(file_get_contents($try_json), TRUE); $meta['author'] = &$org; $meta['publisher'] = &$org; $meta['dateModified'] = date("c", $stat['mtime']); $meta['datePublished'] = date("c", $stat['ctime']); $meta['copyrightYear'] = date("Y", $stat['mtime']); $meta['url'] = ('index' == $maybe) ? $site['url'] : sprintf("%s?%s", $site['url'], $maybe); $meta['@id'] = $meta['url']; $meta['mainEntityOfPage'] = sprintf("%s#main", $meta['url']); if (!isset($meta['image']) or empty($meta['image'])) { $meta['image'] = 'https://static.wixstatic.com/media/80d0c2_39d26f9a66974eadbe85d107a0bb971d~mv2.png'; } $content = file_get_contents($try_html); $content = str_replace("INSERT_GALLERY_HERE", file_get_contents('gallery.html'), $content); $meta['text'] = $content; $site['author'] = &$org; $site['publisher'] = &$org; $site['url'] = sprintf("%s/", rtrim($site['url'], '/')); $site['mainEntity'] = &$meta; ?> <?php echo($meta['headline']); ?>