Changes

ITunes

39 bytes added, 10:22, 11 March 2015
m
Pre-Setup Process
<pre>
<?php
 
# simple script for download and extract iTunes MSI packages
# require wget nad 7z in %path%
$url = 'https://www.apple.com/itunes/download/';
$dom = new DOMDocument();
$dom->loadHTML(stahnidownload($url));
$xpath = new DOMXPath($dom);
$iframe = $xpath->query("//iframe");
$iframe_url = $iframe->item(0)->getAttribute('src');
$dom->loadHTML(stahnidownload($iframe_url));
$xpath = new DOMXPath($dom);
$downloads = $xpath->query("//input[@type='hidden']");
}
function stahnidownload($url){
$ch = curl_init();
$timeout = 10;
18
edits