JHtml::_('bootstrap.framework');
JHtml::_('jquery.framework');
require_once('idna_convert.class.php');
$IDN = new idna_convert();
$domain = 'xn--j1ail.xn--p1ai';
$domain = $IDN->decode($domain);
echo $domain;
<?php
$file = file_get_contents('./file.json');
$content = json_decode($file, true);
$n = array("Min" => 1, "Sec" => 1);
array_push($content, $n);
header('Content-Type: application/json; charset=utf8');
echo json_encode($obj);
the order of attribute specifications in a start-tag or empty-element tag is not significant
var page = require('webpage').create();
page.open('http://www.ya.ru', function() {
page.render('yaru.png');
phantom.exit();
});
var system = require('system');
var args = system.args;
var url = args[0];
либо напрямую транслировать код html прямиком в блок.
по его границам (png)