我得到这个错误,我不知道为什么.
Fatal error: Maximum execution time of 30 seconds exceeded in E:\web\autoopti\thanks.php on line 65
Run Code Online (Sandbox Code Playgroud)
我对PHP脚本的代码是:
<?php
$key = 129;
$email = $_REQUEST["payer_email"];
$first = $_REQUEST["first_name"];
$last = $_REQUEST["last_name"];
$acode = $_REQUEST["hash"];
$txt = $email . "|" . $email . "|" . $first . "|" . $last . "|" . $acode;
$outtxt = '';
for($i=0;$i<strlen($txt);)
{
for($j=o;$j<strlen($key);$j++,$i++)
{
$outtxt .= $txt{$i} ^ $key{$j};
}
}
echo "thanks";
?>
Run Code Online (Sandbox Code Playgroud)
错误消息所指的行是:
$outtxt .= $txt{$i} ^ $key{$j};
Run Code Online (Sandbox Code Playgroud)
所以,我猜这个代码行花了很长时间来完成它的工作.有人可以帮我解决这个问题吗?
谢谢
CLASSPATH将"/ Users/smcho/Desktop/clojure"作为其路径之一,并且此目录具有文件hello.clj.
运行clojure并运行(require'hello)会显示此错误消息.
java.io.FileNotFoundException: Could not locate hello__init.class or hello.clj on classpath: (NO_SOURCE_FILE:0)
当我将目录更改为"/Users/.../clojure",并运行相同的(require'hello)时,没有问题.的.在CLASSPATH上.
运行
java -cp /Users/smcho/bin/jar/clojure.jar:/Users/smcho/Desktop/clojure clojure.lang.Repl
也有效.
为什么clojure无法在CLASSPATH上找到源代码?
我正在运行Mac OS X和GNU Emacs 22.3.1.我使用瑞典语键盘.我无法输入括号{ },[ ]在Emacs.当我试图键入括号时,我得到括号.由于我对Mac和emacs都很陌生,所以我需要一点帮助来配置emacs才能做到这一点.
我是vc ++的新手,我必须创建一个简单的vc ++应用程序,以便我可以关闭或打开LED(或由电池供电的电子灯泡),如何从我的程序中取出控制,我想使用USB连接输出.
是否有可用于在程序中实现USB集成的库?
要创建自定义页眉和页脚,我使用了TCPDF header()和footer()函数,但是当我尝试使用该函数在页眉中包含图像时$this->image(),无法显示图像.文档中的其他图像工作正常.
我试图制作一个5维向量,我似乎无法让它工作.我知道如果我需要编写一个三维向量,我可以用以下方式编写它:
vector< vector< vector<string> > > block(27, vector< vector<string> > (27, vector<string>(27)));
然后我称之为: block[x][y][z] = “hello”;
我用以下方式编写了5维向量,它给了我错误.
vector< vector< vector< vector< vector<string> > > > > block(27, vector< vector< vector< vector<string> > > >(27, vector< vector< vector<string> > >(27, vector< vector<string> >(27, vector<string>(27)))));
你能告诉我如何以正确的方式写出5维矢量吗?非常感谢.
当我尝试构建我的项目时,我收到以下错误.
ld:/ Users/gin/Documents/development/GLFun/build/GLFun.build/Debug-iphonesimulator/GLFun.build/Objects-normal/i386/GLFunView-7A51E8797CBB3D72.o和/ Users/gin/Documents中的重复符号.objc_class_name_GLFunView /development/GLFun/build/GLFun.build/Debug-iphonesimulator/GLFun.build/Objects-normal/i386/GLFunView-7A51E8797CBB3D72.o
这个错误是什么?如何追踪错误的位置?XCode通常会突出显示有问题的代码,但对于此错误,它没有显示任何内容?它与Interface Builder没有任何关系吗?
我的研究表明,这可能是因为包含两次,但我不明白这是怎么可能的,因为我没有使用任何#include语句,我只使用#import语句.
这里有一些构建输出:
Ld build/Debug-iphonesimulator/GLFun.app/GLFun正常i386 cd/Users/gin/Documents/development/GLFun setenv MACOSX_DEPLOYMENT_TARGET 10.5 setenv PATH"/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/ usr/bin:/ bin:/ usr/sbin:/ sbin"/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform /Developer/SDKs/iPhoneSimulator3.1.3.sdk -L/Users/gin/Documents/development/GLFun/build/Debug-iphonesimulator -F/Users/gin/Documents/development/GLFun/build/Debug-iphonesimulator -filelist/Users /gin/Documents/development/GLFun/build/GLFun.build/Debug-iphonesimulator/GLFun.build/Objects-normal/i386/GLFun.LinkFileList -mmacosx-version-min = 10.5 -framework Foundation-framework UIKit -framework CoreGraphics -framework OpenGLES -framework QuartzCore -o /Users/gin/Documents/development/GLFun/build/Debug-iphonesimulator/GLFun.app/GLFun
这可能是我的服务器设置的方式,但我正在撞墙.我想要做的是说,如果$action没有值或者有一个不是"添加"或"删除"的值而不是有错误,那么继续运行脚本.但是,无论是什么,我都会收到错误$action.
$action = $_GET['a'];
if((!isset($action)) || ($action != "add" || $action != "delete")){
//header("location:index.php");
echo "error <br>";
}
Run Code Online (Sandbox Code Playgroud)
$action正在设置正确,如果运行类似的if($action =="add")工作.这是在我的本地主机上,所以可能是一个设置问题.
我有一个简单的winforms应用程序,我用linq-to-sql连接到我的数据库.
我直接从数据库生成了类,我有一个DataAccess类,它包装了我的datacontext,可以给我任何我需要的东西.
我有一个视图,使用对象数据源来填充DataGridView和一组相关的文本字段等...为我的实体(让我们称之为EmployeeView)
视图加载所有现有行,当我单击网格时,字段会相应更新.
如果我更改字段,更改将在记录更改后保留,但我不确定如何通过数据访问层保存更改.如何检测哪些记录是脏的并需要保存?我如何保存它们?添加新记录的最佳方法是什么?删除记录?
我可以在网上找到很多资源,但没有我需要的那些例子.任何人都可以帮助我解决一些基本模式,或者指向一个好地方吗?
php ×3
c++ ×2
classpath ×1
clojure ×1
cocoa ×1
cocoa-touch ×1
crud ×1
datagridview ×1
debugging ×1
doctrine-orm ×1
emacs ×1
if-statement ×1
java ×1
keyboard ×1
linq-to-sql ×1
macos ×1
orm ×1
tcpdf ×1
vector ×1
winforms ×1
xcode ×1
xor ×1