我有这个PHP代码 -
<?php include('res/scripts/php/content_type/form_contents/birth_date_form.php?type=register&query=birth_month'); ?>
Run Code Online (Sandbox Code Playgroud)
正如你可以看到我,包括?type与&query它,所以它是错误的或者有别的东西哪去错了.因为它向我显示以下错误---
Warning: include(res/scripts/php/content_type/form_contents/birth_date_form.php?type=register&query=birth_month) [function.include]: failed to open stream: No error in C:\xampp\htdocs\mysharepoint\1.1\res\scripts\php\content_type\register_form.php on line 82
Warning: include() [function.include]: Failed opening 'res/scripts/php/content_type/form_contents/birth_date_form.php?type=register&query=birth_month' for inclusion (include_path='.;\xampp\php\PEAR') in C:\xampp\htdocs\mysharepoint\1.1\res\scripts\php\content_type\register_form.php on line 82
Run Code Online (Sandbox Code Playgroud)
但删除后?type=register&query=birth_month,我没有错!那么你对此有什么建议,请告诉我.
提前致谢!
我用PHP创建了一个语法荧光笔,但我失败了!你看到我在创建脚本注释时(//)语法Highlighting(gray),我遇到了一些问题.所以我刚刚创建了一个缩短版的Syntax Highlighting Function来向你展示我的所有问题.每当PHP变量(即,根据我的语法荧光笔应该根据它应该$example得到的注释)之间插入时,请参见grayed.你看我正在用它preg_replace()来实现这个目标.但regex我目前使用的它似乎并不正确.我尝试了几乎所有我知道的东西,但它不起作用.请参阅下面的演示代码.
问题演示代码
<?php
$str = '
<?php
//This is a php comment $test and resulted bad!
$text_cool++;
?>
';
$result = str_replace(array('<','>','/'),array('[',']','%%'),$str);
$result = preg_replace("/%%%%(.*?)(?=(\n))/","<span style=\"color:gray;\">$0</span>",$result);
$result = preg_replace("/(?<!\"|'|%%%%\w\s\t)[\$](?!\()(.*?)(?=(\W))/","<span style=\"color:green;\">$0</span>",$result);
$result = str_replace(array('[',']','%%'),array('<','>','/'),$result);
$resultArray = explode("\n",$result);
foreach ($resultArray as $i) {
echo $i.'</br>';
}
?>
Run Code Online (Sandbox Code Playgroud)
问题演示屏幕

所以你看到我想要的结果是,$test在上面'Demo Screen'的注释字符串中也应该着色为gray!(见下文.)

任何人都可以帮我解决这个问题吗?
I'm Aware of highlight_string() function!
Run Code Online (Sandbox Code Playgroud)
提前致谢!
看到我有一个jquery代码,我认为它应该工作,但它仍然无法正常工作!所以请帮帮我.输入具有原始背景颜色#fff,我希望在聚焦时输入背景颜色应该变为#789具有淡入淡出效果.这是我所做的代码.
$('input.login_reg_input').focus(function () {
$(this).animate({
backgroundColor:fadeColor
}, 250, 'linear', function() { });
});
Run Code Online (Sandbox Code Playgroud)
我已经搜索了stackoverflow并且没有找到一个好的解决方案.所以请帮我解决这个问题.
提前致谢!
我正在尝试一些C++,但我太新了,你可以说这是我在C++的第一天.所以我试图创建一个函数,但我被阵列困住了!当我创建一个像这样的基于字符的数组:
char x[7][7] = {"sec","min","hr","day","week","month","year"};
Run Code Online (Sandbox Code Playgroud)
当我尝试从中获取数据时:
for (i=0;i<=7;i++){
cout << x[i] << "\n";
}
Run Code Online (Sandbox Code Playgroud)
我得到一些奇怪的结果!像这样 :

任何人都可以告诉我,我完全错了!请我是C++的新手,所以你能给我一个很好的解释.
我有以下jQuery代码 -
$('div#mid_number_of_mail').mouseover(function () {
setTimeout(function () {
$('div.element_popup' ,this).stop().animate({
opacity : '1'
}, 250, 'linear', function() { });
}, 5000);
});
Run Code Online (Sandbox Code Playgroud)
但我不知道为什么它不能正常工作.有人可以帮我这个代码吗?
提前致谢!