Hi, I'm trying to run the crawler using XAMPP on Mac, but I keep getting this error:
Fatal error: Uncaught exception 'Exception' with message 'Error creating working directory '/var/folders/1v/6vbf_p4x13x2422y4mjpbrdh0000gp/T/phpcrawl_tmp_8131419303908/'' in /Applications/XAMPP/xamppfiles/htdocs/PHPCrawl_082/libs/PHPCrawler.class.php:868 Stack trace: #0 /Applications/XAMPP/xamppfiles/htdocs/PHPCrawl_082/libs/PHPCrawler.class.php(295): PHPCrawler->createWorkingDirectory() #1 /Applications/XAMPP/xamppfiles/htdocs/PHPCrawl_082/libs/PHPCrawler.class.php(560): PHPCrawler->initCrawlerProcess() #2 /Applications/XAMPP/xamppfiles/htdocs/PHPCrawl_082/libs/PHPCrawler.class.php(353): PHPCrawler->startChildProcessLoop() #3 /Applications/XAMPP/xamppfiles/htdocs/PHPCrawl_082/example.php(65): PHPCrawler->go() #4 {main} thrown in /Applications/XAMPP/xamppfiles/htdocs/PHPCrawl_082/libs/PHPCrawler.class.php on line 868
I use the setWorkingDirectory function before $crawler->go() like so:
$crawler->setWorkingDirectory("./tmp/");
where a tmp folder has been created in the same directory as the example.php.
So I tried tracing it and found out that at setWorkingDirectory function, the working_base_directory is not writable and it always returns false.
Need help on this.
You seem to have CSS turned off. Please don't fill out this field.
Anonymous
View and moderate all "Help" comments posted by this user
Mark all as spam, and block user from posting to "Forum"
Hi, I'm trying to run the crawler using XAMPP on Mac, but I keep getting this error:
Fatal error: Uncaught exception 'Exception' with message 'Error creating working directory '/var/folders/1v/6vbf_p4x13x2422y4mjpbrdh0000gp/T/phpcrawl_tmp_8131419303908/'' in /Applications/XAMPP/xamppfiles/htdocs/PHPCrawl_082/libs/PHPCrawler.class.php:868 Stack trace: #0 /Applications/XAMPP/xamppfiles/htdocs/PHPCrawl_082/libs/PHPCrawler.class.php(295): PHPCrawler->createWorkingDirectory() #1 /Applications/XAMPP/xamppfiles/htdocs/PHPCrawl_082/libs/PHPCrawler.class.php(560): PHPCrawler->initCrawlerProcess() #2 /Applications/XAMPP/xamppfiles/htdocs/PHPCrawl_082/libs/PHPCrawler.class.php(353): PHPCrawler->startChildProcessLoop() #3 /Applications/XAMPP/xamppfiles/htdocs/PHPCrawl_082/example.php(65): PHPCrawler->go() #4 {main} thrown in /Applications/XAMPP/xamppfiles/htdocs/PHPCrawl_082/libs/PHPCrawler.class.php on line 868
I use the setWorkingDirectory function before $crawler->go() like so:
$crawler->setWorkingDirectory("./tmp/");
where a tmp folder has been created in the same directory as the example.php.
So I tried tracing it and found out that at setWorkingDirectory function, the working_base_directory is not writable and it always returns false.
Need help on this.