I have to make a directory and save the file, but there is an error that written in title. Help me to solve this error. My code is below.
function main() {
$scrapper = new Cloaked_Scraper();
// Prefix of URL's
$url_prefix = "link";
// URL
$urls = array("www.something.com?");
// Get ID from every URL and will save on index one of $url array
$urls[1] = ((explode("www.something.com?id=com.", $urls[0])));
$urls[0] = $url_prefix;
$urls[0];
$urls[1];
//mkdir("../temp/", 0777 /* The mode is 0777 by default, which means the widest possible access */);
// Destination folder where this file will save, and file name.
$output_dir[0] = "../temp/".$urls[0].$urls[1].".html";
$results = $scrapper->fetch($urls, $output_dir);
var_dump($results);
}
main();