Home >Backend Development >PHP Tutorial > 请教在php中怎么调用MFC的activeX控件?小弟我在html里可以调用但在.php网页里就不能调用了

请教在php中怎么调用MFC的activeX控件?小弟我在html里可以调用但在.php网页里就不能调用了

WBOY
WBOYOriginal
2016-06-13 12:45:581244browse

请问在php中如何调用MFC的activeX控件?我在html里可以调用但在.php网页里就不能调用了

<!doctype html><br />
<html lang="en"><br />
<head><br />
	<meta charset="UTF-8"><br />
	<title>Document</title><br />
		<br />
	<script type="text/javascript"><br />
		function func(localuser,remotecomputer)<br />
		{<br />
			var direfilename = localuser + remotecomputer + ".txt";<br />
			var command = "-directory z:\\"+direfilename;<br />
			myobj.run(command);<br />
			//myobj.run(arg);<br />
			//myobj.xxxxx();<br />
		}<br />
	</script><br />
</head><br />
<body><br />
	<div style="display:none;"><br />
 <OBJECT id="myobj" classid="CLSID:895B917E-885A-4DA0-BF89-12A03C205AB7"></OBJECT> <br />
</div><br />
<br />
	<a onclick="func('tom','127.0.0.1');">test</a><br />
</body><br />
</html>


上面这个代码是我做完控件并且注册后写的html例子,保存成XXX.html后测试也是成功的。但是如果把这个文件保存成XXX.php插件就会有问题(均放在apache中测试)。请问怎么才能在.php的文件中像这样调用activeX控件??

HTML PHP MFC activex 控件
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn