if (document.createEvent) {
n = document.createEvent("MouseEvents");
n.initMouseEvent("click", !0, !0, document.defaultView, 1, 0, 0, 0, 0, !1, !1, !1, !1, 1, null);
link.dispatchEvent(n);
} else {
n = document.createEventObject();
n.button = 1;
link.fireEvent("onclick", n);
}
<link rel='stylesheet' href='style.css'>
<link rel='stylesheet' href='<?php if (!$_COOKIE["big"]) { echo "style.css"; } else { echo "bigStyle.css"; }'>
$('#changeBig').click(function () {
document.cookie="big=true; path=/; expires=Mon, 01-Jan-2020 00:00:00 GMT";
location.reload();
});
$modules = array();
function addToModule($module, $func) {
$modules[$module][] = $func;
}
function getModule($module, $arguments) {
foreach($modules[$module] as $func) $func($arguments);
}
function one ($arguments) { include 'test.html'; }
addToModule('test', 'one');
function two ($arguments) { echo $arguments[1]->greating; }
addToModule('test', 'two');
getModule('test', array($var1, $var2, $var3));
<?php
include_once('idna_convert.class.php');
$url="localhost/profile(product™-secretarial-services).htm";
$converter = new idna_convert();
$domain = parse_url($url, PHP_URL_HOST);
$encoded_domain = $converter->encode($domain);
$url = str_replace($domain, $encoded_domain, $url);
$resource = curl_init();
curl_setopt($resource, CURLOPT_URL, $url);
curl_setopt($resource, CURLOPT_URL, $url);
curl_setopt($resource, CURLOPT_TIMEOUT, 30);
curl_setopt($resource, CURLOPT_MAXREDIRS, 10);
curl_setopt($resource, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($resource);
curl_close($resource);
?>