çalışmıyorkomut ben php bu komut dosyasını çalıştırmadan Phantomjs
var page = require("webpage").create();
page.open("http://livescore.in/", function (status) {
if (status !== 'success') {
console.log('Unable to load the address!');
phantom.exit();
} else {
window.setTimeout(function() {
console.log(page.content);
phantom.exit();
}, 5000);
}
});
php dosyası, phantom.js, script.js aynı klasörde yalan.
PhantomJS sürümü - Sonuç olarak 2.2.1
, script süresiz yüklenir.
'\ script' nedir? Ben 'script' veya '\\ script', ama' \ script' beklemez. –
Komut dosyası, php yerine terminalden çalışırken doğru çalışıyor mu? Eğer değilse, bir seferde bir problemi çözmelisiniz. –