Re: Using DLL with PHP

From: Date: Tue, 10 Feb 2009 19:16:52 +0000
Subject: Re: Using DLL with PHP
References: 1 2 3 4 5 6 7 8 9 10 11  Groups: php.general 
Request: Send a blank email to php-general+get-288077@lists.php.net to get a copy of this message
Dan Shirah wrote: >> It doesn't appear that your function accepts a parameter. What does >> this do: >> >> //VB >> Public Function hello(ByVal name As String) As String >> hello = "Hello " & name & "!" >> End Function >> >> //PHP >> echo $new_com->hello("Dan"); >> >> -- >> Thanks! >> -Shawn >> http://www.spidean.com >> > > Shawn I tried what you suggested but it returns the following: > > *Fatal error*: Cannot pass parameter 1 by reference > Just guessing as I haven't used the PHP COM stuff, but what do you get if you change ByVal to ByRef? -- Thanks! -Shawn http://www.spidean.com

« previous php.general (#288077) next »