English 中文(简体)
Delphi for PHP - 源代码位置
原标题:
  • 时间:2008-12-26 09:29:24
  •  标签:

I just installed Delphi for PHP to get an idea on how it works and have created a simple app with a button that puts a text into a listbox when it is clicked. The app works if I copy all required files to my webserver and run it from there. It also works if I save the project in the standard path: "c:documents and settingsusernameMy DocumentsDelphi for PHP Projects"

但是,如果我将该项目保存在另一个目录中,则在从那里运行应用程序时不会触发ButtonClick事件。我在事件中设置了断点,以查看它是否停在那里,但它并没有停止。

表单的OnShow事件像平常一样。

It really seems to be the path where the project is located to make it either work or not. As I said, I have no experience with Delphi for PHP so far, it is probably just a simple solution that I don t see...

最佳回答

您的源应该位于Delphi 4 PHP安装的同一驱动器上,这是防止跨站脚本攻击的保护措施。

所以,如果您在 C:下安装 D4PHP,则您的代码也应该在 C:下。

这不是 Delphi 4 PHP 的限制,而是事情的工作方式。

问题回答

你需要使用部署向导来部署你的项目 ;)





相关问题
热门标签