Re: Re: I retreated to 5.2.6 where everything worked for months...HELP!

Re: Re: I retreated to 5.2.6 where everything worked for months...HELP!

am 03.09.2009 23:39:07 von Fred Silsbee

--- On Thu, 9/3/09, Fred Silsbee wrote: =
> From: Fred Silsbee =0A> Subject: Re: [PHP-WIN] Re:=
I retreated to 5.2.6 where everything worked for months...HELP!=0A> To: R=
Quadling@googlemail.com, php-windows@lists.php.net=0A> Date: Thursday, Sept=
ember 3, 2009, 4:20 PM=0A> =0A> =0A> --- On Thu, 9/3/09, Fred Silsbee silsbee@yahoo.com>=0A> wrote:=0A> =0A> > From: Fred Silsbee hoo.com>=0A> > Subject: Re: [PHP-WIN] Re: I retreated to 5.2.6 where=0A> ev=
erything worked for=A0 months...HELP!=0A> > To: RQuadling@googlemail.com=0A=
> > Date: Thursday, September 3, 2009, 3:44 PM=0A> > =0A> > --- On Thu, 9/3=
/09, Richard Quadling =0A> > wrote:=0A> > =0A> > =
> From: Richard Quadling =0A> > > Subject: Re: [P=
HP-WIN] Re: I retreated to 5.2.6=0A> where=0A> > everything worked for=A0 m=
onths...HELP!=0A> > > To: "Fred Silsbee" =0A> > > Da=
te: Thursday, September 3, 2009, 8:34 AM=0A> > > 2009/9/3 Richard Quadling =
:=0A> > > > 2009/9/3 Fred Silsbee hoo.com>:=0A> > > >> one remaining problem:=0A> > > >>=0A> > > >> Warning: =
mssql_connect()=0A> > [function.mssql-connect]:=0A> > > message: Login fail=
ed for user 'sa'. (severity=0A> 14) in=0A> > > C:\Inetpub\wwwroot\handle_lo=
g_book_mssql.php on=0A> line=0A> > 8=0A> > > >>=0A> > > >> Warning: mssql_c=
onnect()=0A> > [function.mssql-connect]:=0A> > > Unable to connect to serve=
r:=0A> LANDON\SQLEXPRESSLMKIII=0A> > in=0A> > > C:\Inetpub\wwwroot\handle_l=
og_book_mssql.php on=0A> line=0A> > 8=0A> > > >> Something went wrong while=
connecting=0A> to=0A> > MSSQL=0A> > > >>=0A> > > >> Found this in php.net =
search...did not=0A> help!=0A> > > >> [13 Jan 9:19am UTC] bloodjazman at gm=
ail=0A> dot=0A> > com=0A> > > >> Problem solved when change Default=0A> Lan=
guage=0A> > = > > > English in properties SQL=0A> > > >> Server Managem=
ent Studio=0A> > > >> [14 Jan 7:46am UTC] bloodjazman at gmail=0A> dot=0A> =
> com=0A> > > >> recomended check php.ini=0A> > > >>=0A> > > >> mssql.allow=
_persistent =3D On=0A> > > >> mssql.compatability_mode =3D Off=0A> > > >> m=
ssql.min_error_severity =3D 10=0A> > > >> mssql.min_message_severity =3D 10=
=0A> > > >> mssql.secure_connection =3D Off=0A> > > >>=0A> > > >>=0A> > > >=
>=0A> > > >>=0A> > > >> --- On Thu, 9/3/09, Fred Silsbee ..com>=0A> > > wrote:=0A> > > >>=0A> > > >>> From: Fred Silsbee @yahoo.com>=0A> > > >>> Subject: Re: I retreated to 5.2.6=0A> where=0A> > >=
everything worked for months...HELP!=0A> > > >>> To: php-windows@lists.php=
..net=0A> > > >>> Date: Thursday, September 3, 2009,=0A> 4:13=0A> > AM=0A> >=
> >>>=0A> > > >>> new_black_scholes.php is now working=0A> but=0A> > I=0A>=
> > found a bug in=0A> > > >>> IE8=0A> > > >>>=0A> > > >>> I deleted all h=
istory but had to=0A> reboot=0A> > to=0A> > > completely clear=0A> > > >>> =
all files hidden in history temp=0A> files=0A> > > >>>=0A> > > >>> first I =
had to : (not sure if this=0A> did=0A> > it!=0A> > > >>> IIS: properties->h=
ome=0A> > > >>>=0A> > >=0A> directory->configuration  =A0C:\PHP\php5isa=
pi.dll=0A> > > >>> with GET,HOST,POST,DEBUG=0A> > > >>>=0A> > > >>> changed=
to:=0A> > > >>> IIS: properties->home=0A> > > >>>=0A> > >=0A> directory->c=
onfiguration  =A0C:\PHP\php5isapi.dll=0A> > > >>> with ALL=0A> > > >>>=
=0A> > > >>> --- On Wed, 9/2/09, Fred Silsbee=0A> =
=0A> > > >>> wrote:=0A> > > >>>=0A> > > >>> > From: Fred Silsbee ee@yahoo.com>=0A> > > >>> > Subject: I retreated to 5.2.6=0A> where=0A> > >=
everything worked=0A> > > >>> for months...HELP!=0A> > > >>> > To: php-win=
dows@lists.php.net=0A> > > >>> > Date: Wednesday, September 2,=0A> 2009,=0A=
> > 2:59=0A> > > AM=0A> > > >>> > I tried 5.3 and found out it=0A> had no=
=0A> > > >>> > php_mssql.=0A> > > >>> > Then I retreated to 5.2.10.=0A> > >=
>>> >=0A> > > >>> > Trying to get back to where I=0A> had=0A> > > everythi=
ng worked,=0A> > > >>> I=0A> > > >>> > downloaded 5.2.6:=0A> > > >>> > (1) =
I uninstalled cgi 1.5=0A> > > >>> > (2) php.ini  =A0has:=0A> > > >>> >=
=0A> > > >>> > extension_dir =3D "C:\PHP\ext"=0A> > > >>> > ; doc_root =3D=
=0A> "C:\inetpub\wwwroot"=0A> > > >>> > commented out=0A> > > >>> > doc_roo=
t = > > > >>> >=0A> > > >>> > ALL extensions are uncommented=0A> > > >>=
> >=0A> > > >>> > I only need:=0A> > > >>> > extension=3Dphp_mssql.dll=0A> =
> > >>> >=0A> > > >>> > ; **You CAN safely turn this=0A> off for=0A> > IIS,=
=0A> > > in fact,=0A> > > >>> you=0A> > > >>> > MUST.**=0A> > > >>> >=A0 cg=
i.force_redirect =3D 0=0A> > > >>> >=0A> > > >>> > ntwdblib and php.ini mov=
ed to=0A> > > >>> > C:\WINDOWS=0A> > > >>> > C:\WINDOWS\system=0A> > > >>> =
> C:\WINDOWS\system32=0A> > > >>> >=0A> > > >>> > IIS: properties->home=0A>=
> > >>> >=0A> > >=0A> directory->configuration  =A0C:\PHP\php5isapi.dl=
l=0A> > > >>> > with GET,HOST,POST,DEBUG=0A> > > >>> >=0A> > > >>> > I also=
tried:=0A> > > >>> > php5ts.dll=0A> > > >>> > phpnsapi.dll=0A> > > >>> > o=
nly php5isapi.dll seemed to=0A> work!=0A> > > >>> > added to XP Prof SP3 pa=
th:=0A> > > ;C:\PHP;C:\PHP\ext=0A> > > >>> >=0A> > > >>> > also created (ju=
st in case)=0A> PHPRC=0A> > > environment=0A> > > >>> variable=0A> > > >>> =
> (alongside path)=0A> > > >>> > containing C:\PHP;C:\PHP\ext=0A> > > >>> >=
=0A> > > >>> > I gave IUSR_LANDON all powers=0A> > > >>> >=0A> > > >>> >=0A=
> > > ________________________________________results=0A> > > >>> > this wo=
rks:http://207.254.225.224:8080/phpinfo.php=0A> > > >>> >=0A> > > >>> > htt=
p://207.254.225.224:8080/new_black_scholes.php=0A> > > >>> > initial displa=
y works until I=0A> > select=0A> > > "DEMO"...then:=0A> > > >>> >=0A> > > >=
>> > The page cannot be displayed=0A> > > >>> > There is a problem with a=
=0A> program on=0A> > the=0A> > > page you are=0A> > > >>> > trying to reac=
h, and the page=0A> cannot=0A> > be=0A> > > displayed.=0A> > > >>> >=0A> > =
> >>> > Here is new_black_scholes.php=0A> > > >>> > > > >>> > def=
ine( "ITMAX",100);=0A> > > >>> > define( "EPS",3.0e-7);=0A> > > >>> > =A0 =
=A0 // If the submit button=0A> has=0A> > been=0A> > > pressed=0A> > > >>> =
>   =A0 $StockPrice = > $ExercisePrice=0A> > = > > > >>> $RiskF=
reeRateInterest=0A> > > >>> > = > > $InstantaneousVarianceRateStocksRet=
urn=0A> > > =3D "";=0A> > > >>> >   =A0 $TimetoExpirationOption=0A> =3D=
=0A> > > $ValueCallOption = > > > >>> > $ValuePutOption =3D $DeltaCalls=
  > = > > > $DeltaPuts=A0 =3D "";=0A> > > >>> >=0A> > > >>> > =A0 =
=A0 if=0A> (isset($_POST['reset']))=0A> > > >>> > =A0 =A0 {=0A> > > >>> >=
=0A> > > >>> >   =A0 $m_s =3D 100.;=0A> > > >>> >   =A0 $m_e =3D 10=
0.;=0A> > > >>> >   =A0 $m_rf =3D .12;=0A> > > >>> >   =A0 $m_sigma=
=3D .1;=0A> > > >>> >   =A0 $m_time =3D 365.;=0A> > > >>> >   =A0=
=0A> Black_Scholes_Main($m_s,=0A> > $m_e,=0A> > > $m_rf,=0A> > > >>> > $m_s=
igma,$m_time, $m_c, $m_p,=0A> > > $m_deltacalls,=0A> > > >>> $m_deltaputs);=
=0A> > > >>> >   =A0 $StockPrice =3D $m_s;=0A> > > >>> >   =A0 $Exe=
rcisePrice =3D $m_e;=0A> > > >>> >   =A0 $RiskFreeRateInterest = > =
> $m_rf;=0A> > > >>> >     > > > $InstantaneousVarianceRateStocksRe=
turn = > > > >>> $m_sigma;=0A> > > >>> >   =A0 $TimetoExpirationOpt=
ion=0A> = > > > $m_time;=0A> > > >>> >   =A0 $ValueCallOption =3D=
=0A> $m_c;=0A> > > >>> >   =A0 $ValuePutOption =3D $m_p;=0A> > > >>> > =
  =A0 $DeltaCalls = > $m_deltacalls;=0A> > > >>> >   =A0 $Delta=
Puts = > $m_deltaputs;=0A> > > >>> > =A0 =A0 }=0A> > > >>> > =A0 =A0 el=
seif=0A> > (isset($_POST['submit']))=0A> > > >>> > =A0 =A0 {=0A> > > >>> > =
  =A0 $m_s = > $_POST['StockPrice'];=0A> > > >>> >   =A0 $m_e =
= > > $_POST['ExercisePrice'];=0A> > > >>> >   =A0 $m_rf = > > =
> $_POST['RiskFreeRateInterest'];=0A> > > >>> >   =A0 $m_sigma = > =
> > >>> >=0A> > > $_POST['InstantaneousVarianceRateStocksReturn'];=0A> > > =
>>> >   =A0 $m_time = > > > $_POST['TimetoExpirationOption'];=0A> >=
> >>> >     > Black_Scholes_Main($m_s,=0A> > $m_e,=0A> > > $m_rf,=
=0A> > > >>> > $m_sigma,$m_time, $m_c, $m_p,=0A> > > $m_deltacalls,=0A> > >=
>>> $m_deltaputs);=0A> > > >>> >   =A0 $StockPrice =3D $m_s;=0A> > > >=
>> >   =A0 $ExercisePrice =3D $m_e;=0A> > > >>> >   =A0 $RiskFreeRa=
teInterest = > > $m_rf;=0A> > > >>> >     > > > $InstantaneousV=
arianceRateStocksReturn = > > > >>> $m_sigma;=0A> > > >>> >   =A0 $=
TimetoExpirationOption=0A> = > > > $m_time;=0A> > > >>> >   =A0 $Va=
lueCallOption = > $m_c;=0A> > > >>> >   =A0 $ValuePutOption =3D $m_=
p;=0A> > > >>> >   =A0 $DeltaCalls = > $m_deltacalls;=0A> > > >>> >=
  =A0 $DeltaPuts = > $m_deltaputs;=0A> > > >>> > =A0 =A0 }=0A> > >=
>>> > function=0A> Black_Scholes_Main($m_s,=0A> > $m_e,=0A> > > $m_rf,=0A>=
> > >>> $m_sigma,=0A> > > >>> > $m_time, &$m_c, &$m_p,=0A> > > &$m_deltaca=
lls,=0A> > > >>> > &$m_deltaputs) {=0A> > > >>> > =A0 =A0 =A0 =A0 $m_c =3D=
=0A> > black_scholes($m_s,  > > > $m_e,=0A> > > >>> $m_rf,=0A> > > >>> =
> $m_sigma,=A0 $m_time/365.,=0A> $nd1,=0A> > $nd2);=0A> > > >>> > =A0 =A0 =
=A0 =A0 $m_p =3D $m_e /=0A> > pow(1.+$m_rf,=0A> > > $m_time/365.)=0A> > > >=
>> -=0A> > > >>> > $m_s + $m_c;=0A> > > >>> > =A0 =A0 =A0 =A0 $m_deltacalls=
= > $nd1;=0A> > > >>> > =A0 =A0 =A0 =A0 $m_deltaputs =3D $nd1=0A> -=0A=
> > 1.;=0A> > > >>> > }=0A> > > >>> > function black_scholes( $s,  > $e=
,  > > > $rf,=A0 $sigma,=0A> > > >>> $time,=0A> > > >>> > &$nd1, &$nd2)=
{=0A> > > >>> > =A0 =A0 =A0 =A0 $num = > > > >>> >=0A> > log($s/$e)+$t=
ime*($rf+.5*$sigma*$sigma);=0A> > > >>> > =A0 =A0 =A0 =A0 $d1 = > > > $=
num/($sigma*sqrt($time));=0A> > > >>> > =A0 =A0 =A0 =A0 $d2 =3D $d1 -=0A> >=
> $sigma*sqrt($time);=0A> > > >>> > =A0 =A0 =A0 =A0 $c =3D $s*myerf($d1)=
=0A> - $e=0A> > *=0A> > > myerf($d2) *=0A> > > >>> > exp(-$rf*$time);=0A> >=
> >>> > =A0 =A0 =A0 =A0 $nd1 =3D myerf($d1);=0A> > > >>> > =A0 =A0 =A0 =A0=
$nd2 =3D myerf($d2);=0A> > > >>> >=0A> > > >>> > =A0 =A0 =A0 =A0 return $c=
;=0A> > > >>> > }=0A> > > >>> > function gammln($xx)=0A> > > >>> > {=0A> > =
> >>> >=0A> > > >>> >=0A> > > $cof=3Darray(76.18009173,-86.50532033,24.0140=
9822,=0A> > > >>> >=0A> > > >>> >=0A> > > -1.231739516,0.120858003e-2,-0.53=
6382e-5);=0A> > > >>> >=0A> > > >>> > =A0 =A0 =A0 =A0 $x=3D$xx-1.0;=0A> > >=
>>> > =A0 =A0 =A0 =A0 $tmp=3D$x+5.5;=0A> > > >>> > =A0 =A0 =A0 =A0 $tmp -=
= > > ($x+0.5)*log($tmp);=0A> > > >>> > =A0 =A0 =A0 =A0 $ser=3D1.0;=0A>=
> > >>> > =A0 =A0 =A0 =A0 for=0A> ($j=3D0;$j<=3D5;$j++)=0A> > {=0A> > > >>=
> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 $x += > 1.0;=0A> > > >>> > =A0 =A0 =
=A0 =A0 =A0 =A0 =A0 =A0 $ser=0A> += > > > $cof[$j]/$x;=0A> > > >>> > =
=A0 =A0 =A0 =A0 }=0A> > > >>> > =A0 =A0 =A0 =A0 return=0A> > > -$tmp+log(2.=
50662827465*$ser);=0A> > > >>> > }=0A> > > >>> >=0A> > > >>> > function gse=
r(  > &$gamser,  > > $a,  > > > $x, &$gln)=0A> > > >>> > {=0A> =
> > >>> >=0A> > > >>> > =A0 =A0 =A0 =A0 $gln=3Dgammln($a);=0A> > > >>> > =
=A0 =A0 =A0 =A0 if ($x <=3D 0.0)=0A> {=0A> > > >>> > =A0 =A0 =A0 =A0 =A0 =
=A0 =A0 =A0 if ($x=0A> <=0A> > 0.0)=0A> > > echo "x less=0A> > > >>> than=
=0A> > > >>> > 0 in routine GSER";=0A> > > >>> > =A0 =A0 =A0 =A0 =A0 =A0 =
=A0   > > $gamser=3D0.0;=0A> > > >>> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=
=0A> return;=0A> > > >>> > =A0 =A0 =A0 =A0 } else {=0A> > > >>> > =A0 =A0 =
=A0 =A0 =A0 =A0 =A0   > $ap=3D$a;=0A> > > >>> > =A0 =A0 =A0 =A0 =A0 =A0=
=A0   > > $sum=3D1.0/$a;=0A> > > >>> >   =A0   =A0 $del=3D$sum=
;=0A> > > >>> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 for=0A> > > ($n=3D1;$n<=3DI=
TMAX;$n++)=0A> > > >>> {=0A> > > >>> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =
  > =A0   > > $ap=0A> > > +=3D 1.0;=0A> > > >>> > =A0 =A0 =A0 =A0 =
=A0 =A0 =A0 =A0 =A0   > =A0   > > $del=0A> > > *=3D $x/$ap;=0A> > >=
>>> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0   > =A0   > > $sum=0A> >=
> +=3D $del;=0A> > > >>> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0   > =A0=
  > > if=0A> > > (abs($del)=0A> > > >>> <=0A> > > >>> > abs($sum)*EPS)=
{=0A> > > >>> >=0A> > > >>> >=0A> > $gamser=3D$sum*exp(-$x+$a*log($x)-($gl=
n));=0A> > > >>> >=0A> > > >>> return;=0A> > > >>> > =A0 =A0 =A0 =A0 =A0 =
=A0 =A0 =A0 =A0   > =A0   > > }=0A> > > >>> > =A0 =A0 =A0 =A0 =A0 =
=A0 =A0 =A0 }=0A> > > >>> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 echo=0A> "a=3D$=
a=0A> > too=0A> > > large, ITMAX = > > > >>> > $itmax too small in rout=
ine=0A> GSER=0A> > > >>> > ";=0A> > > >>> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=
=0A> return;=0A> > > >>> > =A0 =A0 =A0 =A0 }=0A> > > >>> > }=0A> > > >>> >=
=0A> > > >>> >=0A> > > >>> > function gcf(=0A> > > &$gammcf,$a,$x,&$gln)=0A=
> > > >>> > {=0A> > > >>> > =A0 =A0 =A0 =A0 $gold=3D0.0;=0A> > > >>> > =A0 =
=A0 =A0 =A0 $fac=3D1.0;=0A> > > >>> > =A0 =A0 =A0 =A0 $b1=3D1.0;=0A> > > >>=
> > =A0 =A0 =A0 =A0 $b0=3D0.0;=0A> > > >>> > =A0 =A0 =A0 =A0 $a0=3D1.0;=0A>=
> > >>> >=0A> > > >>> > =A0 =A0 =A0 =A0 $gln=3Dgammln($a);=0A> > > >>> > =
=A0 =A0 =A0 =A0 $a1=3D$x;=0A> > > >>> > =A0 =A0 =A0 =A0 for=0A> > ($n=3D1;$=
n<=3DITMAX;$n++)=0A> > > {=0A> > > >>> > =A0 =A0 =A0 =A0 =A0 =A0 =A0   =
> $an=3D(double)=0A> > $n;=0A> > > >>> > =A0 =A0 =A0 =A0 =A0 =A0 =A0   =
> > $ana=3D$an-$a;=0A> > > >>> > =A0 =A0 =A0 =A0 =A0 =A0 =A0   > > > $a=
0=3D($a1+$a0*$ana)*$fac;=0A> > > >>> > =A0 =A0 =A0 =A0 =A0 =A0 =A0   > =
> > $b0=3D($b1+$b0*$ana)*$fac;=0A> > > >>> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =
  > > $anf=3D$an*$fac;=0A> > > >>> > =A0 =A0 =A0 =A0 =A0 =A0 =A0   =
> > > $a1=3D$x*$a0+$anf*$a1;=0A> > > >>> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=
=0A> > > $b1=3D$x*$b0+$anf*$b1;=0A> > > >>> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =
=A0 if=0A> ($a1) {=0A> > > >>> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0   =
> =A0   > > > $fac=3D1.0/$a1;=0A> > > >>> > =A0 =A0 =A0 =A0 =A0 =A0 =A0=
=A0 =A0   > =A0   > > > $g=3D$b1*$fac;=0A> > > >>> > =A0 =A0 =A0 =
=A0 =A0 =A0 =A0 =A0 =A0   > =A0   > > if=0A> > > >>> (abs(($g-$gold=
)/$g)=0A> > > >>> > < EPS) {=0A> > > >>> >=0A> > > >>> >=0A> > $gammcf=3Dex=
p(-$x+$a*log($x)-($gln))*$g;=0A> > > >>> >=0A> > > >>> return;=0A> > > >>> =
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0   > =A0   > > }=0A> > > >>> >=
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0   > =A0   > > > $gold=3D$g;=0A=
> > > >>> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 }=0A> > > >>> > =A0 =A0 =A0 =A0=
}=0A> > > >>> > =A0 =A0 =A0 =A0 echo "a too large,=0A> ITMAX=0A> > too=0A>=
> > small in=0A> > > >>> routine=0A> > > >>> > GCF=0A> > > >>> > ";=0A> > =
> >>> > }=0A> > > >>> > function gammp($a,$x)=0A> > > >>> > {=0A> > > >>> >=
=0A> > > >>> > =A0 =A0 =A0 =A0 if ($x < 0.0 ||=0A> $a=0A> > <= > > > 0.=
0) {=0A> > > >>> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 echo=0A> > "Invalid=0A> =
> > arguments in=0A> > > >>> routine=0A> > > >>> > GAMMP=0A> > > >>> > ";=
=0A> > > >>> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 return=0A> 0.;=0A> > > >>> >=
=A0 =A0 =A0 =A0 }=0A> > > >>> > =A0 =A0 =A0 =A0 if ($x <=0A> ($a+1.0)) {=
=0A> > > >>> > =A0 =A0 =A0 =A0 =A0 =A0 =A0   > > > gser($gamser,$a,$x,$=
gln);=0A> > > >>> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 return=0A> > $gamser;=
=0A> > > >>> > =A0 =A0 =A0 =A0 } else {=0A> > > >>> > =A0 =A0 =A0 =A0 =A0 =
=A0 =A0   > > > gcf($gammcf,$a,$x,$gln);=0A> > > >>> > =A0 =A0 =A0 =A0 =
=A0 =A0 =A0 =A0 return=0A> > > 1.0-$gammcf;=0A> > > >>> > =A0 =A0 =A0 =A0 }=
=0A> > > >>> > }=0A> > > >>> >=0A> > > >>> > function gammq($a,$x)=0A> > > =
>>> > {=0A> > > >>> >=0A> > > >>> > =A0 =A0 =A0 =A0 if ($x < 0.0 ||=0A> $a=
=0A> > <= > > > 0.0) echo=0A> > > >>> "Invalid=0A> > > >>> > arguments =
in routine GAMMQ=0A> > > >>> > ";=0A> > > >>> > =A0 =A0 =A0 =A0 if ($x <=0A=
> ($a+1.0)) {=0A> > > >>> > =A0 =A0 =A0 =A0 =A0 =A0 =A0   > > > gser($g=
amser,$a,$x,$gln);=0A> > > >>> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 return=0A>=
> > 1.0-$gamser;=0A> > > >>> > =A0 =A0 =A0 =A0 } else {=0A> > > >>> > =A0 =
=A0 =A0 =A0 =A0 =A0 =A0   > > > gcf($gammcf,$a,$x,$gln);=0A> > > >>> > =
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 return=0A> > $gammcf;=0A> > > >>> > =A0 =A0=
=A0 =A0 }=0A> > > >>> > }=0A> > > >>> > function erfc($x)=0A> > > >>> > {=
=0A> > > >>> >=0A> > > >>> > =A0 =A0 =A0 =A0 return $x < 0.0=0A> ?=0A> > > =
1.0+gammp(0.5,$x*$x)=0A> > > >>> :=0A> > > >>> > gammq(0.5,$x*$x);=0A> > > =
>>> > }=0A> > > >>> > function erf($x)=0A> > > >>> > {=0A> > > >>> >=0A> > =
> >>> > =A0 =A0 =A0 =A0 return $x < 0.0=0A> ?=0A> > > -gammp(0.5,$x*$x) :=
=0A> > > >>> > gammp(0.5,$x*$x);=0A> > > >>> > }=0A> > > >>> > function mye=
rf($argin) {=0A> > > >>> > =A0 =A0   =A0return=0A> > > .5*(1.+erf($argi=
n/sqrt(2.0)));=0A> > > >>> > }=0A> > > >>> >=0A> > > >>> > ?>=0A> > > >>> >=
=0A> > > >>> > > action=3D"new_black_scholes.php"=0A> > > >>> met=
hod=3D"post">=0A> > > >>> > =A0 =A0

=0A> > > >>> > =A0 =A0 =A0 =A0 Black=
Scholes=0A> Option=0A> > Price=0A> > > Calculator:=0A> > > >>> >=0A> > > >=
>> > =A0 =A0 =A0 =A0   =A0 temp=0A> website=0A> > under=0A> > > Redhat =
Fedora 9=0A> > > >>> > Linux:=0A> > > >>> >=0A> > > >>> > =A0 =A0 =A0 =A0 =
  =A0 the first 5=0A> > boxes=0A> > > require input(try=0A> > > >>> 100=
..=0A> > > >>> > 100. .12 .1 365.):=0A> > > >>> >=0A> > > >>> > =A0 =A0

=
=0A> > > >>> > =A0 =A0

=0A> > > >>> > =A0 =A0 =A0 =A0 StockPrice=0A> (re=
quired):=0A> > > >>> >=0A> > > >>> > =A0 =A0 =A0 =A0 type=3D"tex=
t"=0A> > > size=3D"20"=0A> > > >>> maxlength=3D"40"=0A> > > >>> > name=3D"S=
tockPrice"=0A> > > >>> >   =A0   =A0 value=3D" echo=0A> > =
> $StockPrice;=0A> > > >>> > ?>" />=0A> > > >>> > =A0 =A0

=0A> > > >>> =
> =A0 =A0

=0A> > > >>> > =A0 =A0 =A0 =A0 ExercisePrice=0A> > (required):=
=0A> > > >>> >=0A> > > >>> > =A0 =A0 =A0 =A0 type=3D"text"=0A> >=
> size=3D"20"=0A> > > >>> maxlength=3D"40"=0A> > > >>> > name=3D"ExerciseP=
rice"=0A> > > >>> >   =A0   =A0 value=3D" echo=0A> > > $Ex=
ercisePrice;=0A> > > >>> ?>"=0A> > > >>> > />=0A> > > >>> >

=0A> > > >>=
> > =A0 =A0

=0A> > > >>> > =A0 =A0 =A0 =A0 Risk Free Rate of=0A> > > Int=
erest(required):=0A> > > >>> >=0A> > > >>> > =A0 =A0 =A0 =A0 typ=
e=3D"text"=0A> > > size=3D"20"=0A> > > >>> maxlength=3D"40"=0A> > > >>> > n=
ame=3D"RiskFreeRateInterest"=0A> > > >>> >   =A0   =A0 value=3D" hp=0A> echo=0A> > > >>> $RiskFreeRateInterest;=0A> > > >>> > ?>" />=0A> > >=
>>> > =A0 =A0

=0A> > > >>> > =A0 =A0

=0A> > > >>> > =A0 =A0 =A0 =A0=
Instantaneous=0A> Variance=0A> > Rate=0A> > > of Stock's=0A> > > >>> Retur=
n=0A> > > >>> > (required):=0A> > > >>> >=0A> > > >>> > =A0 =A0 =A0 =A0 put=0A> type=3D"text"=0A> > > size=3D"20"=0A> > > >>> maxlength=3D"40"=0A> =
> > >>> >=0A> > > name=3D"InstantaneousVarianceRateStocksReturn"=0A> > > >>=
> >   =A0   =A0 value=3D" echo=0A> > > >>> >=0A> > $Instan=
taneousVarianceRateStocksReturn;=0A> > > ?>" />=0A> > > >>> >

=0A> > > =
>>> > =A0 =A0

=0A> > > >>> > =A0 =A0 =A0 =A0 Time to Expiration=0A> of=
=0A> > the=0A> > > Option(days)=0A> > > >>> > (required):=0A> > > >>> >=0A>=
> > >>> > =A0 =A0 =A0 =A0 type=3D"text"=0A> > > size=3D"20"=0A>=
> > >>> maxlength=3D"40"=0A> > > >>> > name=3D"TimetoExpirationOption"=0A>=
> > >>> >   =A0   =A0 value=3D" echo=0A> > > >>> $TimetoE=
xpirationOption;=0A> > > >>> > ?>" />=0A> > > >>> >

=0A> > > >>> > =A0 =
=A0

=0A> > > >>> > =A0 =A0 =A0 =A0 Values of the Call=0A> > Option :=0A>=
> > >>> >=0A> > > >>> > =A0 =A0 =A0 =A0 type=3D"text"=0A> > > s=
ize=3D"20"=0A> > > >>> > maxlength=3D"40"  > > name=3D"ValueCallOption"=
=0A> > > >>> >   =A0   =A0     > > VALUE=3D" > > e=
cho=0A> > > >>> $ValueCallOption;=0A> > > >>> > ?>" />=0A> > > >>> >

=
=0A> > > >>> >

=0A> > > >>> > =A0 =A0

=0A> > > >>> > =A0 =A0 =A0 =A0=
Values of the Put=0A> option=0A> > :=0A> > > >>> >=0A> > > >>> > =A0 =A0 =
=A0 =A0 type=3D"text"=0A> > > size=3D"20"=0A> > > >>> > maxlengt=
h=3D"40"  > > name=3D"ValuePutOption"=0A> > > >>> >   =A0   =A0=
    > > VALUE=3D" > > echo=0A> > > >>> $ValuePutOption;=
=0A> > > >>> > ?>" />=0A> > > >>> >

=0A> > > >>> > =A0 =A0

=0A> > > =
>>> > =A0 =A0 =A0 =A0 Delta(calls):=0A> > > >>> >=0A> > > >>> > =A0 =A0 =A0=
=A0 type=3D"text"=0A> > > size=3D"20"=0A> > > >>> > maxlength=
=3D"40"  > name=3D"DeltaCalls"=0A> > > >>> >   =A0   =A0   =
  > > VALUE=3D" > > echo=0A> > > >>> $DeltaCalls;=0A> > > >>> =
> ?>" />=0A> > > >>> >

=0A> > > >>> > =A0 =A0

=0A> > > >>> > =A0 =A0=
=A0 =A0 Delta(puts):=0A> > > >>> >=0A> > > >>> > =A0 =A0 =A0 =A0 > type=3D"text"=0A> > > size=3D"20"=0A> > > >>> > maxlength=3D"40"  > n=
ame=3D"DeltaPuts"=0A> > > >>> >   =A0   =A0     > VALUE=3D"=
> echo=0A> > > $DeltaPuts;=0A> > > >>> > ?>" />=0A> > > >>> > >=0A> > > >>> > =A0 =A0 =0A> > > >>> > =A0 =A0=
=0A> > > >>> > =0A> > > >>> >=0A> > > >>> >=0A> =
> > >>>=0A> > >=0A> >=0A> _________________________________________________=
________results=0A> > > >>> >=0A> > > >>> > Please try the following:=0A> >=
> >>> >=0A> > > >>> > Open the 207.254.225.224:8080=0A> home=0A> > page,=
=0A> > > and then look=0A> > > >>> for=0A> > > >>> > links to the informati=
on you=0A> want.=0A> > > >>> > Click the Refresh button, or=0A> try=0A> > a=
gain=0A> > > later.=0A> > > >>> >=0A> > > >>> > HTTP 403.1 Forbidden: Execu=
te=0A> > Access=0A> > > Forbidden=0A> > > >>> > Internet Information Servic=
es=0A> > > >>> >=0A> > > >>> >=0A> > > >>>=0A> > >=0A> >=0A> --------------=
------------------------------------------------------------ ------=0A> > > =
>>> >=0A> > > >>> > Technical Information (for=0A> support=0A> > > personne=
l)=0A> > > >>> >=0A> > > >>> >=0A> > > >>> > Background:=0A> > > >>> > You =
have attempted to execute=0A> a=0A> > CGI,=0A> > > ISAPI, or other=0A> > > =
>>> > executable program from a=0A> directory=0A> > that=0A> > > does not=
=0A> > > >>> allow=0A> > > >>> > programs to be executed.=0A> > > >>> >=0A>=
> > >>> >=0A> > > >>> > More information:=0A> > > >>> > Microsoft Support=
=0A> > > >>> >=0A> > > ____________________________________________=0A> > >=
>>> > http://207.254.225.224:8080/handle_log_book_mssql.php=0A> > > >>> > =
yields:=0A> > > >>> >=0A> > > >>> > Warning: mssql_connect()=0A> > > [funct=
ion.mssql-connect]:=0A> > > >>> Unable=0A> > > >>> > to connect to server:=
=0A> > > LANDON\SQLEXPRESSLMKIII in=0A> > > >>> >=0A> > > C:\Inetpub\wwwroo=
t\handle_log_book_mssql.php on=0A> line=0A> > > >>> 8=0A> > > >>> > (mssql_=
connect(...)=0A> > > >>> > Something went wrong while=0A> > connecting to=
=0A> > > MSSQL (my=0A> > > >>> > message)=0A> > > >>> >=0A> > > >>>=0A> > >=
=0A> >=0A> _______________________________________________________=0A> > > =
>>> > all these worked before trying=0A> 5.3=0A> > > >>> >=0A> > > >>> >=0A=
> > > >>> >=0A> > > >>> >=0A> > > >>> >=0A> > > >>> >=0A> > > >>> >=0A> > >=
>>>=0A> > > >>>=0A> > > >>>=0A> > > >>>=0A> > > >>=0A> > > >>=0A> > > >>=
=0A> > > >>=0A> > > >> --=0A> > > >> PHP Windows Mailing List (http://www.p=
hp.net/)=0A> > > >> To unsubscribe, visit: http://www.php.net/unsub.php=0A>=
> > >>=0A> > > >>=0A> > > >=0A> > > > The mssql extension is reliant on an=
=0A> unsupported=0A> > and=0A> > > ancient ntwdblib.dll.=0A> > > >=0A> > > =
> Your upgrade options are :=0A> > > >=0A> > > > ODBC / PDO_ODBC with the S=
QL Native Client=0A> > > > or=0A> > > > php_sqlsvr.dll - the new MS SQL Ser=
ver=0A> extension=0A> > from=0A> > > Microsoft=0A> > > > http://www.microso=
ft.com/sqlserver/2005/en/us/PHP-Driver.aspx=0A> > > >=0A> > > >=0A> > > > -=
-=0A> > > > -----=0A> > > > Richard Quadling=0A> > > > "Standing on the sho=
ulders of some very=0A> clever=0A> > > giants!"=0A> > > > EE : http://www.e=
xperts-exchange.com/M_248814.html=0A> > > > Zend Certified Engineer : http:=
//zend.com/zce.php?c=3DZEND002498&r=3D213474731=0A> > > > ZOPA : http://uk.=
zopa.com/member/RQuadling=0A> > > >=0A> > > =0A> > > Sorry. Old URL.=0A> > =
> =0A> > > New one is http://www.microsoft.com/downloads/details.aspx?Famil=
yID=3Dccdf728b-1ea0-48a8-a84a-5052214caad9&displaylang=3Den= 0A> > > =0A> > =
> =0A> > > -- =0A> > > -----=0A> > > Richard Quadling=0A> > > "Standing on =
the shoulders of some very clever=0A> > giants!"=0A> > > EE : http://www.ex=
perts-exchange.com/M_248814.html=0A> > > Zend Certified Engineer : http://z=
end.com/zce.php?c=3DZEND002498&r=3D213474731=0A> > > ZOPA : http://uk.zopa.=
com/member/RQuadling=0A> > > =0A> > =0A> > BINGO! THANKS!!!=0A> > =0A> > No=
w I remember using this driver when I had 5.2.6=0A> working=0A> > before.=
=0A> > Problem is, in the docs two files are mentioned but=0A> exist=0A> > =
nowhere on my PHP stuff.=0A> > php5ts.dll=0A> > php5.dll=0A> > =0A> > Maybe=
I need to go back up to 5.2.8 or 5.2.9 or=0A> 5.2.10!=0A> > going ba=
ck to 5.2.10...nothing working cgi 1.5 back in sqlserver driver i=
nstalled =0A

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php