我在弹性beanstalk php中使用以下代码生成日志文件,但我收到此错误。但是相同的代码正在另一台服务器上运行。我怎样才能使它工作?
错误:
$(document).ready(function() {
$("#dino-example").owlCarousel({
items: 5,
singleItem: true,
afterMove: function (elem) {
$(".owl-item").removeClass('active'); //remove it from every item
var current = this.currentItem; //get currentItem
$(elem).find(".owl-item").eq(current).addClass('active'); //add active class
}
});
$(".owl-item:first").addClass('active'); //add active class to first owl-item on DOM ready
});
$(document.body).on('click', '.get' ,function(){
var ipVal=$(".owl-item.active").find('input[type=text]').val();
//find input present in active item and get its value
alert(ipVal);
});
代码:
Error opening file in write mode!
答案 0 :(得分:1)
确保您的php
用户www-data
有权在$path.'/logs/
文件夹或chmod
logs
文件夹中写入0777
权限< / p>