PHP problem, urgent request, thank you big God!
This post was last edited by u011627263 on 2013-08-16 10:02:57
Guys, look at this code.
$obj = new COM ("Makedm_activexdll.dll");
$file = __file__;
$obj->dmmake ($_post[' Text1 '],$_post[' Text2 '), $file, $_post[' Text4 '],$_post[' Text22 ']);
$obj->dmmixtext ($file, $_post[' Text8 '],$_post[' Text9 '],$_post[' Text10 '],$_post[' Text11 '],$_post[' Text12 '],$_ post[' Text7 ');
$nType = $_post[' Text2 ');
$nScale = $_post[' Text4 ');
$nMargin = $_post[' Text22 ');
$szText =$_post[' Text8 '];
$lFontSize =$_post[' Text9 '];
$lTxtHeight =$_post[' Text10 '];
$lHmargin =$_post[' Text11 '];
$lVmargin =$_post[' Text12 '];
$lTxtCntOneLine =$_post[' Text7 '];
?>
I run, he says my second line has a problem, I don't know if it's a makedm_activexdll.dll file, or there's a problem with it, Dmmake and Dmmixtext are the functions in my makedm_activexdll.dll generation. Please look, thank you very much, here are the questions
------Solution--------------------
If you are sure that your extension makedm_activexdll.dll can be used correctly in PHP,
You will need to copy the. dll file to the PHP installation directory \ext folder, and then modify the php.ini file to
;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions;
;;;;;;;;;;;;;;;;;;;;;;
On the configuration section, add a reference to the DLL file by format extension = A.dll
Restarting the Web server hosting PHP should be OK.