大家好,我在我的网站上使用PHP,在我的系统上使用ubuntu linux.我在apache的error.log文件中得到了上述错误,即使在正确配置所有内容之后也是如此.我对此做了很多研究,但无法解决问题.有人可以帮我解决这个问题吗?以下是我的.htaccess文件abc directory.有人可以帮我这方面吗?
# -FrontPage-
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName abc.org
AuthUserFile /home/abc/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/abc/public_html/_vti_pvt/service.grp
Options -Indexes
RewriteEngine On
RewriteRule ^alumni$ alumni.php
RewriteRule ^student$ student.php
RewriteRule ^view_alumni_article/view/([0-9]+)$ view_alumni_article.php?op=view&article_id=$1
Run Code Online (Sandbox Code Playgroud) 我从url传递的值为:
user_data = {}
if (request.args.get('title')) :
user_data['title'] =request.args.get('title')
if(request.args.get('limit')) :
user_data['limit'] = request.args.get('limit')
Run Code Online (Sandbox Code Playgroud)
然后用它作为
if 'limit' in user_data :
limit = user_data['limit']
conditions['id'] = {'id':1}
int(limit)
print type(limit)
data = db.entry.find(conditions).limit(limit)
Run Code Online (Sandbox Code Playgroud)
它打印: <type 'unicode'>
但我不断收到type的limit是unicode,从查询产生一个错误!我正在将unicode转换为int,但为什么不转换?请帮忙!!!
我正在尝试将单词转换为语音.
直到现在我都试过这个:
<?php
$text = "Hello this is a test for voice api of google";
// Name of the MP3 file generated using the MD5 hash
$file = md5($text);
// Save the MP3 file in this folder with the .mp3 extension
$file = "audio/" . $file .".mp3";
if($file) {
echo "created";
} else {
echo "not created";
}
// If the MP3 file exists, do not create a new request
if (!file_exists($file)) {
$mp3 = file_get_contents( …Run Code Online (Sandbox Code Playgroud) 我正在使用bootstrap模态.触发器是这样的:
<a id="add-feed-button" role="button" data-toggle="modal" href="#add-feed-form" class="btn pull-right btn-success" style="margin-left:5px; margin-top:-4px;">Add new</a>
Run Code Online (Sandbox Code Playgroud)
和我的模态:
<div id="add-feed-form" class="form-feed modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
this is modal.
</div>
Run Code Online (Sandbox Code Playgroud)
问题是只有背景变黑,但没有模态出现.
我已经包含了bootstrap.js和bootstrap.min.css.我已经使用过多次模态,但这是一个奇怪的问题.
以下是我的代码,显示一个包含总费用摘要的网格面板.我想用平均值显示另一个摘要行.那有什么帮助吗?
Ext.require(['Ext.data.*', 'Ext.grid.*']);
Ext.onReady(function() {
Ext.define('NewEstimate', {
extend: 'Ext.data.Model',
fields: ['description', 'cost'],
validations: [{
type: 'length',
field: 'description',
min: 3
}, {
type: 'int',
field: 'cost',
min: 1
}]
});
var rowEditing = Ext.create('Ext.grid.plugin.RowEditing');
var store = Ext.create('Ext.data.Store', {
autoLoad: true,
autoSync: false,
model: 'NewEstimate',
proxy: {
type: 'rest',
url: 'app.php/users',
reader: {
type: 'json',
root: 'data'
},
writer: {
type: 'json'
}
},
listeners: {
write: function(store, operation){
var record = operation.records[0],
name = Ext.String.capitalize(operation.action),
verb;
if (name == …Run Code Online (Sandbox Code Playgroud) 我可以选择将日期存储在 mongo 中作为ISO 对象或将时间戳存储在 mongo 中。
哪一种更可取且更有益于使用,为什么?
我有一个表格:
<form action="<?php echo the_permalink(); ?>" method="POST">
<input type="text" name="name" value="" placeholder="Your First and Last Name *" />
<?php echo $firstnameError; ?>
<input type="text" name="email" value="" placeholder="Yoyr Email" />
<?php echo $emailError; ?>
<br>
<input type="text" name="company" value="" placeholder="Your Company Name" />
<input type="text" name="phone" value="" placeholder="Your Phone number" />
<textarea name="project" rows="4" cols="50" placeholder="Describe the scope of work and the most important features of the project *'"></textarea>
<?php echo $addressError; ?>
<br>
<input type="radio" name="budget" value="1500" />
<input type="radio" …Run Code Online (Sandbox Code Playgroud) 我正在Wordpress中实现一个主题.此主题有一个顶部导航菜单,每个父项下都有水平子菜单.它在当前查看的当前父项上放置一个"活动"类(否则它不会显示它的子子菜单项).我通过在functions.php中使用这两个函数,以某种方式设法在当前父项上维护"活动"类.
/**
* Wp Nav Menu Customizer.
*/
function special_nav_class($classes, $item){
if( in_array('current-menu-item', $classes) ){
$classes[] = 'active ';
}
return $classes;
}
add_filter('nav_menu_css_class' , 'special_nav_class' , 10 , 2);
class SH_Last_Walker extends Walker_Nav_Menu{
function display_element( $element, &$children_elements, $max_depth, $depth=0, $args, &$output ) {
$id_field = $this->db_fields['id'];
//If the current element has children, add class 'sub-menu'
if( isset($children_elements[$element->$id_field]) ) {
$classes = empty( $element->classes ) ? array() : (array) $element->classes;
$classes[] = 'has-sub-menu';
$element->classes =$classes;
}
// We don't want …Run Code Online (Sandbox Code Playgroud) 我是joomla的新手并试图弄清楚事物的流动.我来到了一个有电话的电话$db =& JFactory::getDBO();.这是什么意思&?
我有这样的div:
<div class='myclass'></div>
Run Code Online (Sandbox Code Playgroud)
有时我需要动态制作这些div并为其添加另一个类.我是这样做的
if(condition1)
appendClass = 'xyz'
if(condition2)
appendClass = 'abc'
if(condition3)
appendClass = 'usb'
$('main').append("<div class = myclass "+ appendClass +"/>")
Run Code Online (Sandbox Code Playgroud)
但是当我用萤火虫检查这个div时,我得到了这个
<div class="myclass" xyz=""/>
Run Code Online (Sandbox Code Playgroud)
应该是的
<div class="myclass xyz"/>
Run Code Online (Sandbox Code Playgroud)
我尝试使用append.replace(/"/g, '')但结果相同.请帮忙!!
我用这个new Date.getTime()来获得current timestamp在jquery.它给了我价值1380796448330
但当我检查PHP time()功能时,它给了我:1380796567
为什么两个值的长度有差异?