windows 5.2.10 PHP not working with phpinfo

windows 5.2.10 PHP not working with phpinfo

am 30.08.2009 22:05:51 von Fred Silsbee

I got 5.3 working but found out there was no php_mssql.dll for it.
Somebody (who didn;t know) said I had to return to 5.2.8 but I found no 5.2=
..8 so I am trying 5.2.10
_________________________________________problem:
under IE8:
http://72.47.28.128:8080/phpinfo.php
with:
phpinfo();
?>

I get :
The website cannot display the page=20
HTTP 500 =20
Most likely causes:
â€=A2The website is under maintenance.
â€=A2The website has a programming error.=20
___________________________________________

I installed :
php-5.2.10-Win32-VC6-x86.zip and put php.ini in C:\PHP and C:\PHP\ext
AND C:\WINDOWS, C:\WINDOWS\system and C:\WINDOWS\system32

I installed FastCGI 1.5 !

In php.ini I put :
________________________________

cgi.force_redirect =3D 0 // for CGI

extension_dir =3D "C:\PHP\ext"

commented out
;doc_root =3D "C:\inetpub\wwwroot" // for IIS/PWS
leaving
doc_root =
_________________________________________________
IIS 5.1 properties->configuration I added .php C:\PHP\php5ts.dll
GET,HEAD,POST,DEBUG

Maybe php-win.exe
_________________________________________________

I added to the XP Prof environment path ;C:\PHP\;C:\PHP\ext\

I created an environment variable (and rebooted) PHPRC =3D C:\PHP;C:\PHP\ex=
t


I never found any statement of the necessity of requiring CGI

The instructions ramble around

=0A

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

Re: windows 5.2.10 PHP not working with phpinfo

am 31.08.2009 02:11:45 von Ralph Deffke

use wamp 2 !!
http://www.wampserver.com/

no easier way under windows

ralph_deffke@yahoo.de

"Fred Silsbee" wrote in message
news:43633.64942.qm@web59909.mail.ac4.yahoo.com...
I got 5.3 working but found out there was no php_mssql.dll for it.
Somebody (who didn;t know) said I had to return to 5.2.8 but I found no
5.2.8 so I am trying 5.2.10
_________________________________________problem:
under IE8:
http://72.47.28.128:8080/phpinfo.php
with:
phpinfo();
?>

I get :
The website cannot display the page
HTTP 500
Most likely causes:
..The website is under maintenance.
..The website has a programming error.
___________________________________________

I installed :
php-5.2.10-Win32-VC6-x86.zip and put php.ini in C:\PHP and C:\PHP\ext
AND C:\WINDOWS, C:\WINDOWS\system and C:\WINDOWS\system32

I installed FastCGI 1.5 !

In php.ini I put :
________________________________

cgi.force_redirect = 0 // for CGI

extension_dir = "C:\PHP\ext"

commented out
;doc_root = "C:\inetpub\wwwroot" // for IIS/PWS
leaving
doc_root =
_________________________________________________
IIS 5.1 properties->configuration I added .php C:\PHP\php5ts.dll
GET,HEAD,POST,DEBUG

Maybe php-win.exe
_________________________________________________

I added to the XP Prof environment path ;C:\PHP\;C:\PHP\ext\

I created an environment variable (and rebooted) PHPRC = C:\PHP;C:\PHP\ext


I never found any statement of the necessity of requiring CGI

The instructions ramble around







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

Re: windows 5.2.10 PHP not working with phpinfo

am 31.08.2009 08:35:20 von hack988 hack988

Please set log_error=3Don,error_reporting=3DE_ALL,error_log=3Dsyslog in
php.ini and then,see error detail in syslog.

2009/8/31 Fred Silsbee :
> I got 5.3 working but found out there was no php_mssql.dll for it.
> Somebody (who didn;t know) said I had to return to 5.2.8 but I found no 5=
..2.8 so I am trying 5.2.10
> _________________________________________problem:
> under IE8:
> http://72.47.28.128:8080/phpinfo.php
> with:
> =A0 =A0 > =A0 =A0 =A0 phpinfo();
> =A0 =A0 ?>
>
> I get :
> The website cannot display the page
> HTTP 500
> =A0 Most likely causes:
> =95The website is under maintenance.
> =95The website has a programming error.
> ___________________________________________
>
> I installed :
> php-5.2.10-Win32-VC6-x86.zip and put php.ini in C:\PHP and C:\PHP\ext
> AND C:\WINDOWS, C:\WINDOWS\system and C:\WINDOWS\system32
>
> I installed FastCGI 1.5 !
>
> In php.ini I put :
> ________________________________
>
> cgi.force_redirect =3D 0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0// for CGI
>
> extension_dir =3D =A0"C:\PHP\ext"
>
> commented out
> ;doc_root =3D "C:\inetpub\wwwroot" // for IIS/PWS
> leaving
> doc_root =3D
> _________________________________________________
> IIS 5.1 properties->configuration I added .php =A0C:\PHP\php5ts.dll
> GET,HEAD,POST,DEBUG
>
> Maybe php-win.exe
> _________________________________________________
>
> I added to the XP Prof environment path ;C:\PHP\;C:\PHP\ext\
>
> I created an environment variable (and rebooted) PHPRC =3D C:\PHP;C:\PHP\=
ext
>
>
> I never found any statement of the necessity of requiring CGI
>
> The instructions ramble around
>
>
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

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

Re: windows 5.2.10 PHP not working with phpinfo

am 31.08.2009 10:54:44 von David Robley

hack988 hack988 wrote:

> Please set log_error=on,error_reporting=E_ALL,error_log=syslog in
> php.ini and then,see error detail in syslog.
>
> 2009/8/31 Fred Silsbee :
>> I got 5.3 working but found out there was no php_mssql.dll for it.
>> Somebody (who didn;t know) said I had to return to 5.2.8 but I found no
>> 5.2.8 so I am trying 5.2.10
>> _________________________________________problem: under IE8:
>> http://72.47.28.128:8080/phpinfo.php
>> with:
>> >> phpinfo();
>> ?>
>>
>> I get :
>> The website cannot display the page
>> HTTP 500
>> Most likely causes:
>> ?The website is under maintenance.
>> ?The website has a programming error.
>> ___________________________________________
>>
>> I installed :
>> php-5.2.10-Win32-VC6-x86.zip and put php.ini in C:\PHP and C:\PHP\ext
>> AND C:\WINDOWS, C:\WINDOWS\system and C:\WINDOWS\system32
>>
>> I installed FastCGI 1.5 !
>>
>> In php.ini I put :
>> ________________________________
>>
>> cgi.force_redirect = 0                  // for CGI
>>
>> extension_dir =  "C:\PHP\ext"
>>
>> commented out
>> ;doc_root = "C:\inetpub\wwwroot" // for IIS/PWS
>> leaving
>> doc_root =
>> _________________________________________________
>> IIS 5.1 properties->configuration I added .php  C:\PHP\php5ts.dll
>> GET,HEAD,POST,DEBUG
>>
>> Maybe php-win.exe
>> _________________________________________________
>>
>> I added to the XP Prof environment path ;C:\PHP\;C:\PHP\ext\
>>
>> I created an environment variable (and rebooted) PHPRC =
>> C:\PHP;C:\PHP\ext
>>
>>
>> I never found any statement of the necessity of requiring CGI
>>
>> The instructions ramble around
>>

Hmm, if there is a 500 error there should be entries in the apache error log
which probably give a pointer to the problem.



Cheers
--
David Robley

"I'll pay off that customs official," said Tom dutifully.
Today is Pungenday, the 24th day of Bureaucracy in the YOLD 3175.


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

Re: Re: windows 5.2.10 PHP not working with phpinfo

am 01.09.2009 10:39:12 von Ashley Sheridan

On Mon, 2009-08-31 at 02:11 +0200, Ralph Deffke wrote:
> use wamp 2 !!
> http://www.wampserver.com/
>
> no easier way under windows
>
> ralph_deffke@yahoo.de
>
> "Fred Silsbee" wrote in message
> news:43633.64942.qm@web59909.mail.ac4.yahoo.com...
> I got 5.3 working but found out there was no php_mssql.dll for it.
> Somebody (who didn;t know) said I had to return to 5.2.8 but I found no
> 5.2.8 so I am trying 5.2.10
> _________________________________________problem:
> under IE8:
> http://72.47.28.128:8080/phpinfo.php
> with:
> > phpinfo();
> ?>
>
> I get :
> The website cannot display the page
> HTTP 500
> Most likely causes:
> .The website is under maintenance.
> .The website has a programming error.
> ___________________________________________
>
> I installed :
> php-5.2.10-Win32-VC6-x86.zip and put php.ini in C:\PHP and C:\PHP\ext
> AND C:\WINDOWS, C:\WINDOWS\system and C:\WINDOWS\system32
>
> I installed FastCGI 1.5 !
>
> In php.ini I put :
> ________________________________
>
> cgi.force_redirect = 0 // for CGI
>
> extension_dir = "C:\PHP\ext"
>
> commented out
> ;doc_root = "C:\inetpub\wwwroot" // for IIS/PWS
> leaving
> doc_root =
> _________________________________________________
> IIS 5.1 properties->configuration I added .php C:\PHP\php5ts.dll
> GET,HEAD,POST,DEBUG
>
> Maybe php-win.exe
> _________________________________________________
>
> I added to the XP Prof environment path ;C:\PHP\;C:\PHP\ext\
>
> I created an environment variable (and rebooted) PHPRC = C:\PHP;C:\PHP\ext
>
>
> I never found any statement of the necessity of requiring CGI
>
> The instructions ramble around
>
>
>
>
>
>
>
I've always that EasyPHP is very easy to set up. Just click the
installer, tick the checkboxes for the modules you want to install, and
it's done.


Thanks,
Ash
http://www.ashleysheridan.co.uk




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

Re: windows 5.2.10 PHP not working with phpinfo

am 01.09.2009 18:55:14 von Fred Silsbee

thanks! I am new to this science! where is syslog? XP Prof event log? =
--- On Mon, 8/31/09, hack988 hack988 wrote: > =
From: hack988 hack988 =0A> Subject: Re: [PHP] window=
s 5.2.10 PHP not working with phpinfo=0A> To: "Fred Silsbee" ahoo.com>=0A> Cc: php-general@lists.php.net=0A> Date: Monday, August 31, 20=
09, 6:35 AM=0A> Please set=0A> log_error=3Don,error_reporting=3DE_ALL,error=
_log=3Dsyslog in=0A> php.ini and then,see error detail in syslog.=0A> =0A> =
2009/8/31 Fred Silsbee :=0A> > I got 5.3 working but=
found out there was no=0A> php_mssql.dll for it.=0A> > Somebody (who didn;=
t know) said I had to return to=0A> 5.2.8 but I found no 5.2.8 so I am tryi=
ng 5.2.10=0A> > _________________________________________problem:=0A> > und=
er IE8:=0A> > http://72.47.28.128:8080/phpinfo.php=0A> > with:=0A> >  =
  >       phpinfo();=0A> >     ?>=
=0A> >=0A> > I get :=0A> > The website cannot display the page=0A> > HTTP 5=
00=0A> >   Most likely causes:=0A> > â€=A2The website is under mai=
ntenance.=0A> > â€=A2The website has a programming error.=0A> > _______=
____________________________________=0A> >=0A> > I installed :=0A> > php-5.=
2.10-Win32-VC6-x86.zip and put php.ini in C:\PHP=0A> and C:\PHP\ext=0A> > A=
ND C:\WINDOWS, C:\WINDOWS\system and=0A> C:\WINDOWS\system32=0A> >=0A> > I =
installed FastCGI 1.5 !=0A> >=0A> > In php.ini I put :=0A> > ______________=
__________________=0A> >=0A> > cgi.force_redirect =3D 0     =C2=
=A0            //=0A> for CGI=0A> >=0A> > ext=
ension_dir =3D  "C:\PHP\ext"=0A> >=0A> > commented out=0A> > ;doc_root=
=3D "C:\inetpub\wwwroot" // for IIS/PWS=0A> > leaving=0A> > doc_root =3D=
=0A> > _________________________________________________=0A> > IIS 5.1 prop=
erties->configuration I added .php=0A>  C:\PHP\php5ts.dll=0A> > GET,HE=
AD,POST,DEBUG=0A> >=0A> > Maybe php-win.exe=0A> > _________________________=
________________________=0A> >=0A> > I added to the XP Prof environment pat=
h=0A> ;C:\PHP\;C:\PHP\ext\=0A> >=0A> > I created an environment variable (a=
nd rebooted) PHPRC=0A> =3D C:\PHP;C:\PHP\ext=0A> >=0A> >=0A> > I never foun=
d any statement of the necessity of=0A> requiring CGI=0A> >=0A> > The instr=
uctions ramble around=0A> >=0A> >=0A> >=0A> >=0A> >=0A> >=0A> > --=0A> > PH=
P General Mailing List (http://www.php.net/)=0A> > To unsubscribe, visit: h=
ttp://www.php.net/unsub.php=0A> >=0A> >=0A> =0A

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

Re: windows 5.2.10 PHP not working with phpinfo

am 02.09.2009 06:28:07 von Fred Silsbee

I looked high and low but no syslog I am currently working under XP Pr=
of SP3 --- On Mon, 8/31/09, hack988 hack988 wr=
ote: > From: hack988 hack988 =0A> Subject: Re: =
[PHP] windows 5.2.10 PHP not working with phpinfo=0A> To: "Fred Silsbee" redsilsbee@yahoo.com>=0A> Cc: php-general@lists.php.net=0A> Date: Monday, A=
ugust 31, 2009, 6:35 AM=0A> Please set=0A> log_error=3Don,error_reporting=
=3DE_ALL,error_log=3Dsyslog in=0A> php.ini and then,see error detail in sys=
log.=0A> =0A> 2009/8/31 Fred Silsbee :=0A> > I got 5=
..3 working but found out there was no=0A> php_mssql.dll for it.=0A> > Someb=
ody (who didn;t know) said I had to return to=0A> 5.2.8 but I found no 5.2.=
8 so I am trying 5.2.10=0A> > _________________________________________prob=
lem:=0A> > under IE8:=0A> > http://72.47.28.128:8080/phpinfo.php=0A> > with=
:=0A> >     >       phpinfo();=0A> > =C2=
=A0   ?>=0A> >=0A> > I get :=0A> > The website cannot display the page=
=0A> > HTTP 500=0A> >   Most likely causes:=0A> > â€=A2The website=
is under maintenance.=0A> > â€=A2The website has a programming error.=
=0A> > ___________________________________________=0A> >=0A> > I installed =
:=0A> > php-5.2.10-Win32-VC6-x86.zip and put php.ini in C:\PHP=0A> and C:\P=
HP\ext=0A> > AND C:\WINDOWS, C:\WINDOWS\system and=0A> C:\WINDOWS\system32=
=0A> >=0A> > I installed FastCGI 1.5 !=0A> >=0A> > In php.ini I put :=0A> >=
________________________________=0A> >=0A> > cgi.force_redirect =3D 0 =C2=
=A0                //=0A> for CGI=
=0A> >=0A> > extension_dir =3D  "C:\PHP\ext"=0A> >=0A> > commented out=
=0A> > ;doc_root =3D "C:\inetpub\wwwroot" // for IIS/PWS=0A> > leaving=0A> =
> doc_root = > > _________________________________________________=0A> =
> IIS 5.1 properties->configuration I added .php=0A>  C:\PHP\php5ts.dl=
l=0A> > GET,HEAD,POST,DEBUG=0A> >=0A> > Maybe php-win.exe=0A> > ___________=
______________________________________=0A> >=0A> > I added to the XP Prof e=
nvironment path=0A> ;C:\PHP\;C:\PHP\ext\=0A> >=0A> > I created an environme=
nt variable (and rebooted) PHPRC=0A> =3D C:\PHP;C:\PHP\ext=0A> >=0A> >=0A> =
> I never found any statement of the necessity of=0A> requiring CGI=0A> >=
=0A> > The instructions ramble around=0A> >=0A> >=0A> >=0A> >=0A> >=0A> >=
=0A> > --=0A> > PHP General Mailing List (http://www.php.net/)=0A> > To uns=
ubscribe, visit: http://www.php.net/unsub.php=0A> >=0A> >=0A> =0A =


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

Re: windows 5.2.10 PHP not working with phpinfo

am 02.09.2009 08:03:20 von hack988 hack988

Use Event Viewer and log type is :Application log

2009/9/2 Fred Silsbee :
> I looked high and low but no syslog
>
> I am currently working under XP Prof SP3
>
> --- On Mon, 8/31/09, hack988 hack988 wrote:
>
>> From: hack988 hack988
>> Subject: Re: [PHP] windows 5.2.10 PHP not working with phpinfo
>> To: "Fred Silsbee"
>> Cc: php-general@lists.php.net
>> Date: Monday, August 31, 2009, 6:35 AM
>> Please set
>> log_error=3Don,error_reporting=3DE_ALL,error_log=3Dsyslog in
>> php.ini and then,see error detail in syslog.
>>
>> 2009/8/31 Fred Silsbee :
>> > I got 5.3 working but found out there was no
>> php_mssql.dll for it.
>> > Somebody (who didn;t know) said I had to return to
>> 5.2.8 but I found no 5.2.8 so I am trying 5.2.10
>> > _________________________________________problem:
>> > under IE8:
>> > http://72.47.28.128:8080/phpinfo.php
>> > with:
>> > =A0 =A0 >> > =A0 =A0 =A0 phpinfo();
>> > =A0 =A0 ?>
>> >
>> > I get :
>> > The website cannot display the page
>> > HTTP 500
>> > =A0 Most likely causes:
>> > =95The website is under maintenance.
>> > =95The website has a programming error.
>> > ___________________________________________
>> >
>> > I installed :
>> > php-5.2.10-Win32-VC6-x86.zip and put php.ini in C:\PHP
>> and C:\PHP\ext
>> > AND C:\WINDOWS, C:\WINDOWS\system and
>> C:\WINDOWS\system32
>> >
>> > I installed FastCGI 1.5 !
>> >
>> > In php.ini I put :
>> > ________________________________
>> >
>> > cgi.force_redirect =3D 0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0//
>> for CGI
>> >
>> > extension_dir =3D =A0"C:\PHP\ext"
>> >
>> > commented out
>> > ;doc_root =3D "C:\inetpub\wwwroot" // for IIS/PWS
>> > leaving
>> > doc_root =3D
>> > _________________________________________________
>> > IIS 5.1 properties->configuration I added .php
>> =A0C:\PHP\php5ts.dll
>> > GET,HEAD,POST,DEBUG
>> >
>> > Maybe php-win.exe
>> > _________________________________________________
>> >
>> > I added to the XP Prof environment path
>> ;C:\PHP\;C:\PHP\ext\
>> >
>> > I created an environment variable (and rebooted) PHPRC
>> =3D C:\PHP;C:\PHP\ext
>> >
>> >
>> > I never found any statement of the necessity of
>> requiring CGI
>> >
>> > The instructions ramble around
>> >
>> >
>> >
>> >
>> >
>> >
>> > --
>> > PHP General Mailing List (http://www.php.net/)
>> > To unsubscribe, visit: http://www.php.net/unsub.php
>> >
>> >
>>
>
>
>
>

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

Re: windows 5.2.10 PHP not working with phpinfo

am 02.09.2009 19:59:47 von Fred Silsbee

THANKS! Here is my current situation (if you care to look at it (under=
the windows ) list I tried 5.3 and found out it had no php_mssql.=0AT=
hen I retreated to 5.2.10. Trying to get back to where I had everythin=
g worked, I downloaded 5.2.6:=0A(1) I uninstalled cgi 1.5=0A(2) php.ini h=
as: extension_dir =3D "C:\PHP\ext"=0A; doc_root =3D "C:\inetpub\wwwroo=
t" commented out=0Adoc_root = =0AALL extensions are uncomm=
ented I only need:=0Aextension=3Dphp_mssql.dll ; **You CAN safely=
turn this off for IIS, in fact, you MUST.**=0Acgi.force_redirect =3D 0=0A=
=0Antwdblib and php.ini moved to=0AC:\WINDOWS=0AC:\WINDOWS\system=0AC:\WIND=
OWS\system32 IIS: properties->home directory->configuration C:\PHP\p=
hp5isapi.dll=0Awith GET,HOST,POST,DEBUG I also tried:=0Aphp5ts.dll=0Ap=
hpnsapi.dll=0Aonly php5isapi.dll seemed to work!=0Aadded to XP Prof SP3 pat=
h: ;C:\PHP;C:\PHP\ext also created (just in case) PHPRC environment va=
riable (alongside path)=0Acontaining C:\PHP;C:\PHP\ext I gave IUSR_LAN=
DON all powers ________________________________________results= 0Athis =
works:http://207.254.225.224:8080/phpinfo.php http://20 7.254.225.224:8=
080/new_black_scholes.php=0Ainitial display works until I select "DEMO"...t=
hen: The page cannot be displayed=0AThere is a problem with a program =
on the page you are trying to reach, and the page cannot be displayed.=0A=
=0AHere is new_black_scholes.php=0A "EPS",3.0e-7);=0A // If the submit button has been pressed=0A $StockP=
rice =3D $ExercisePrice =3D $RiskFreeRateInterest =3D $InstantaneousVarianc=
eRateStocksReturn =3D "";=0A $TimetoExpirationOption =3D $ValueCallOptio=
n =3D $ValuePutOption =3D $DeltaCalls =3D $DeltaPuts =3D ""; if =
(isset($_POST['reset']))=0A { $m_s =3D 100.;=0A $m_e =3D 100=
..;=0A $m_rf =3D .12;=0A $m_sigma =3D .1;=0A $m_time =3D 365.;=0A =
Black_Scholes_Main($m_s, $m_e, $m_rf, $m_sigma,$m_time, $m_c, $m_p, $m_de=
ltacalls, $m_deltaputs);=0A $StockPrice =3D $m_s;=0A $ExercisePrice =
=3D $m_e;=0A $RiskFreeRateInterest =3D $m_rf;=0A $InstantaneousVarian=
ceRateStocksReturn =3D $m_sigma;=0A $TimetoExpirationOption =3D $m_time;=
=0A $ValueCallOption =3D $m_c;=0A $ValuePutOption =3D $m_p;=0A $De=
ltaCalls =3D $m_deltacalls;=0A $DeltaPuts =3D $m_deltaputs;=0A }=0A =
elseif (isset($_POST['submit']))=0A {=0A $m_s =3D $_POST['StockPric=
e'];=0A $m_e =3D $_POST['ExercisePrice'];=0A $m_rf =3D $_POST['RiskFr=
eeRateInterest'];=0A $m_sigma =3D $_POST['InstantaneousVarianceRateStock=
sReturn'];=0A $m_time =3D $_POST['TimetoExpirationOption'];=0A Black_=
Scholes_Main($m_s, $m_e, $m_rf, $m_sigma,$m_time, $m_c, $m_p, $m_deltacalls=
, $m_deltaputs);=0A $StockPrice =3D $m_s;=0A $ExercisePrice =3D $m_e;=
=0A $RiskFreeRateInterest =3D $m_rf;=0A $InstantaneousVarianceRateSto=
cksReturn =3D $m_sigma;=0A $TimetoExpirationOption =3D $m_time;=0A $V=
alueCallOption =3D $m_c;=0A $ValuePutOption =3D $m_p;=0A $DeltaCalls =
=3D $m_deltacalls;=0A $DeltaPuts =3D $m_deltaputs;=0A }=0Afunction Bl=
ack_Scholes_Main($m_s, $m_e, $m_rf, $m_sigma, $m_time, &$m_c, &$m_p, &$m_de=
ltacalls, &$m_deltaputs) {=0A $m_c =3D black_scholes($m_s, $m_e, $=
m_rf, $m_sigma, $m_time/365., $nd1, $nd2);=0A $m_p =3D $m_e / pow(=
1.+$m_rf, $m_time/365.) - $m_s + $m_c;=0A $m_deltacalls =3D $nd1;=0A=
$m_deltaputs =3D $nd1 - 1.;=0A}=0Afunction black_scholes( $s, $e, =
$rf, $sigma, $time, &$nd1, &$nd2) {=0A $num =3D log($s/$e)+$time*=
($rf+.5*$sigma*$sigma);=0A $d1 =3D $num/($sigma*sqrt($time));=0A =
$d2 =3D $d1 - $sigma*sqrt($time);=0A $c =3D $s*myerf($d1) - $e *=
myerf($d2) * exp(-$rf*$time);=0A $nd1 =3D myerf($d1);=0A $nd=
2 =3D myerf($d2); return $c;=0A}=0Afunction gammln($xx)=0A{=0A=
$cof=3Darray(76.18009173,-86.50532033,24.01409822,=0A =
-1.231739516,0.120858003e-2,-0.536382e-5); $x=3D$xx-1.0;=0A =
$tmp=3D$x+5.5;=0A $tmp -=3D ($x+0.5)*log($tmp);=0A $se=
r=3D1.0;=0A for ($j=3D0;$j<=3D5;$j++) {=0A $x +=3D 1.=
0;=0A $ser +=3D $cof[$j]/$x;=0A }=0A return -$=
tmp+log(2.50662827465*$ser);=0A} function gser( &$gamser, $a, $x, &=
$gln)=0A{ $gln=3Dgammln($a);=0A if ($x <=3D 0.0) {=0A =
if ($x < 0.0) echo "x less than 0 in routine GSER";=0A =
$gamser=3D0.0;=0A return;=0A } else {=0A =
$ap=3D$a;=0A $sum=3D1.0/$a;=0A $del=3D$su=
m;=0A for ($n=3D1;$n<=3DITMAX;$n++) {=0A =
$ap +=3D 1.0;=0A $del *=3D $x/$ap;=0A =
$sum +=3D $del;=0A if (abs($del) < abs(=
$sum)*EPS) {=0A $gamser=3D$sum*exp(-$x+$a*lo=
g($x)-($gln));=0A return;=0A =
}=0A }=0A echo "a=3D$a too large, ITM=
AX =3D $itmax too small in routine GSER=0A";=0A return;=0A =
}=0A} =0Afunction gcf( &$gammcf,$a,$x,&$gln)=0A{=0A $gold=
=3D0.0;=0A $fac=3D1.0;=0A $b1=3D1.0;=0A $b0=3D0.0;=0A =
$a0=3D1.0; $gln=3Dgammln($a);=0A $a1=3D$x;=0A =
for ($n=3D1;$n<=3DITMAX;$n++) {=0A $an=3D(double) $n;=
=0A $ana=3D$an-$a;=0A $a0=3D($a1+$a0*$ana)*$f=
ac;=0A $b0=3D($b1+$b0*$ana)*$fac;=0A $anf=3D$=
an*$fac;=0A $a1=3D$x*$a0+$anf*$a1;=0A $b1=3D$=
x*$b0+$anf*$b1;=0A if ($a1) {=0A $fac=
=3D1.0/$a1;=0A $g=3D$b1*$fac;=0A =
if (abs(($g-$gold)/$g) < EPS) {=0A $gamm=
cf=3Dexp(-$x+$a*log($x)-($gln))*$g;=0A retur=
n;=0A }=0A $gold=3D$g;=0A =
}=0A }=0A echo "a too large, ITMAX too small in r=
outine GCF=0A";=0A}=0Afunction gammp($a,$x)=0A{ if ($x < 0.0 |=
| $a <=3D 0.0) {=0A echo "Invalid arguments in routine GAMMP=
=0A";=0A return 0.;=0A }=0A if ($x < ($a+1.0))=
{=0A gser($gamser,$a,$x,$gln);=0A return $ga=
mser;=0A } else {=0A gcf($gammcf,$a,$x,$gln);=0A =
return 1.0-$gammcf;=0A }=0A} function gammq($a,$x)=
=0A{ if ($x < 0.0 || $a <=3D 0.0) echo "Invalid arguments in r=
outine GAMMQ=0A";=0A if ($x < ($a+1.0)) {=0A gser($ga=
mser,$a,$x,$gln);=0A return 1.0-$gamser;=0A } else {=
=0A gcf($gammcf,$a,$x,$gln);=0A return $gammc=
f;=0A }=0A}=0Afunction erfc($x)=0A{ return $x < 0.0 ? 1=
..0+gammp(0.5,$x*$x) : gammq(0.5,$x*$x);=0A}=0Afunction erf($x)=0A{ =
return $x < 0.0 ? -gammp(0.5,$x*$x) : gammp(0.5,$x*$x);=0A}=0Afunction=
myerf($argin) {=0A return .5*(1.+erf($argin/sqrt(2.0)));=0A} ?>=

=0A

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

=0A

=0A StockPric=
e (required): " name=3D"StockPrice"=0A value=3D"" />=
=0A

=0A

=0A ExercisePrice (required): ut type=3D"text" size=3D"20" maxlength=3D"40" name=3D"ExercisePrice"=0A =
value=3D"" />=0A

=0A

=0A R=
isk Free Rate of Interest(required): =3D"20" maxlength=3D"40" name=3D"RiskFreeRateInterest"=0A value=3D"<=
?php echo $RiskFreeRateInterest; ?>" />=0A

=0A

=0A Inst=
antaneous Variance Rate of Stock's Return (required): ype=3D"text" size=3D"20" maxlength=3D"40" name=3D"InstantaneousVarianceRate=
StocksReturn"=0A value=3D" sReturn; ?>" />=0A

=0A

=0A Time to Expiration of the Option=
(days) (required): =3D"40" name=3D"TimetoExpirationOption"=0A value=3D" toExpirationOption; ?>" />=0A

=0A

=0A Values of the Call Op=
tion : =3D"ValueCallOption"=0A VALUE=3D"=
" />=0A

=0A

=0A

=0A Values of the Put option : =
on"=0A VALUE=3D"" />=0A

=0A =

=0A Delta(calls): axlength=3D"40" name=3D"DeltaCalls"=0A VALUE=3D" taCalls; ?>" />=0A

=0A

=0A Delta(puts): type=3D"text" size=3D"20" maxlength=3D"40" name=3D"DeltaPuts"=0A =
VALUE=3D"" />=0A

=0A =0A =0A
___=
______________________________________________________result s Please t=
ry the following: Open the 207.254.225.224:8080 home page, and then lo=
ok for links to the information you want.=0AClick the Refresh button, or tr=
y again later. HTTP 403.1 Forbidden: Execute Access Forbidden=0AIntern=
et Information Services ---------------------------------------------- =
---------------------------------- Technical Information (for support =
personnel) =0ABackground:=0AYou have attempted to execute a CGI, ISAPI=
, or other executable program from a directory that does not allow programs=
to be executed. =0AMore information:=0AMicrosoft Support=0A__________=
__________________________________=0Ahttp://207.254.225.224: 8080/handle_log=
_book_mssql.php=0Ayields: Warning: mssql_connect() [function.mssql-con=
nect]: Unable to connect to server: LANDON\SQLEXPRESSLMKIII in C:\Inetpub\w=
wwroot\handle_log_book_mssql.php on line 8 (mssql_connect(...)=0ASomething =
went wrong while connecting to MSSQL (my message)=0A_______________________=
________________________________=0Aall these worked before trying 5.3 =
--- On Wed, 9/2/09, hack988 hack988 m> wrote: > From: hack988 hack988 =0A> Subject:=
Re: [PHP] windows 5.2.10 PHP not working with phpinfo=0A> To: "Fred Silsbe=
e" =0A> Cc: php-general@lists.php.net=0A> Date: Wedn=
esday, September 2, 2009, 6:03 AM=0A> Use Event Viewer and log type is=0A> =
:Application log=0A> =0A> 2009/9/2 Fred Silsbee :=0A=
> > I looked high and low but no syslog=0A> >=0A> > I am currently working =
under XP Prof SP3=0A> >=0A> > --- On Mon, 8/31/09, hack988 hack988 @dev.htwap.com>=0A> wrote:=0A> >=0A> >> From: hack988 hack988 htwap.com>=0A> >> Subject: Re: [PHP] windows 5.2.10 PHP not working=0A> wit=
h phpinfo=0A> >> To: "Fred Silsbee" =0A> >> Cc: php-=
general@lists.php.net=0A> >> Date: Monday, August 31, 2009, 6:35 AM=0A> >> =
Please set=0A> >>=0A> log_error=3Don,error_reporting=3DE_ALL,error_log=3Dsy=
slog in=0A> >> php.ini and then,see error detail in syslog.=0A> >>=0A> >> 2=
009/8/31 Fred Silsbee :=0A> >> > I got 5.3 working b=
ut found out there was no=0A> >> php_mssql.dll for it.=0A> >> > Somebody (w=
ho didn;t know) said I had to=0A> return to=0A> >> 5.2.8 but I found no 5.2=
..8 so I am trying 5.2.10=0A> >> >=0A> _____________________________________=
____problem:=0A> >> > under IE8:=0A> >> > http://72.47.28.128:8080/phpinfo.=
php=0A> >> > with:=0A> >> >     >> >     =C2=
=A0 phpinfo();=0A> >> >     ?>=0A> >> >=0A> >> > I get :=0A> >> >=
The website cannot display the page=0A> >> > HTTP 500=0A> >> >   Most=
likely causes:=0A> >> > â€=A2The website is under maintenance.=0A> >> =
> â€=A2The website has a programming error.=0A> >> > __________________=
_________________________=0A> >> >=0A> >> > I installed :=0A> >> > php-5.2.=
10-Win32-VC6-x86.zip and put php.ini=0A> in C:\PHP=0A> >> and C:\PHP\ext=0A=
> >> > AND C:\WINDOWS, C:\WINDOWS\system and=0A> >> C:\WINDOWS\system32=0A>=
>> >=0A> >> > I installed FastCGI 1.5 !=0A> >> >=0A> >> > In php.ini I put=
:=0A> >> > ________________________________=0A> >> >=0A> >> > cgi.force_re=
direct =3D 0              =0A>   =
 //=0A> >> for CGI=0A> >> >=0A> >> > extension_dir =3D  "C:\PHP\e=
xt"=0A> >> >=0A> >> > commented out=0A> >> > ;doc_root =3D "C:\inetpub\wwwr=
oot" // for=0A> IIS/PWS=0A> >> > leaving=0A> >> > doc_root = > >> >=0A>=
_________________________________________________=0A> >> > IIS 5.1 propert=
ies->configuration I added=0A> .php=0A> >>  C:\PHP\php5ts.dll=0A> >> >=
GET,HEAD,POST,DEBUG=0A> >> >=0A> >> > Maybe php-win.exe=0A> >> >=0A> _____=
____________________________________________=0A> >> >=0A> >> > I added to t=
he XP Prof environment path=0A> >> ;C:\PHP\;C:\PHP\ext\=0A> >> >=0A> >> > I=
created an environment variable (and=0A> rebooted) PHPRC=0A> >> =3D C:\PHP=
;C:\PHP\ext=0A> >> >=0A> >> >=0A> >> > I never found any statement of the n=
ecessity=0A> of=0A> >> requiring CGI=0A> >> >=0A> >> > The instructions ram=
ble around=0A> >> >=0A> >> >=0A> >> >=0A> >> >=0A> >> >=0A> >> >=0A> >> > -=
-=0A> >> > PHP General Mailing List (http://www.php.net/)=0A> >> > To unsub=
scribe, visit: http://www.php.net/unsub.php=0A> >> >=0A> >> >=0A> >>=0A> >=
=0A> >=0A> >=0A> >=0A> =0A

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

Re: windows 5.2.10 PHP not working with phpinfo

am 03.09.2009 15:47:19 von hack988 hack988

HTTP 403.1 Forbidden: Execute Access Forbidden
Internet Information Services

IIS: properties->home directory->configuration->execute permissions
set it to script and execute .


2009/9/3 Fred Silsbee :
> THANKS!
>
> Here is my current situation (if you care to look at it (under the window=
s ) list
>
> I tried 5.3 and found out it had no php_mssql.
> Then I retreated to 5.2.10.
>
> Trying to get back to where I had everything worked, I downloaded 5.2.6:
> (1) I uninstalled cgi 1.5
> (2) php.ini =A0 has:
>
> extension_dir =3D "C:\PHP\ext"
> ; doc_root =3D "C:\inetpub\wwwroot" =A0 =A0 =A0 =A0 =A0 =A0 =A0commented =
out
> doc_root =3D
>
> ALL extensions are uncommented
>
> I only need:
> extension=3Dphp_mssql.dll
>
> ; **You CAN safely turn this off for IIS, in fact, you MUST.**
> cgi.force_redirect =3D 0
>
> ntwdblib and php.ini moved to
> C:\WINDOWS
> C:\WINDOWS\system
> C:\WINDOWS\system32
>
> IIS: properties->home directory->configuration =A0 C:\PHP\php5isapi.dll
> with GET,HOST,POST,DEBUG
>
> I also tried:
> php5ts.dll
> phpnsapi.dll
> only php5isapi.dll seemed to work!
> added to XP Prof SP3 path: ;C:\PHP;C:\PHP\ext
>
> also created (just in case) PHPRC environment variable (alongside path)
> containing C:\PHP;C:\PHP\ext
>
> I gave IUSR_LANDON all powers
>
> ________________________________________results
> this works:http://207.254.225.224:8080/phpinfo.php
>
> http://207.254.225.224:8080/new_black_scholes.php
> initial display works until I select "DEMO"...then:
>
> The page cannot be displayed
> There is a problem with a program on the page you are trying to reach, an=
d the page cannot be displayed.
>
> Here is new_black_scholes.php
> > define( "ITMAX",100);
> define( "EPS",3.0e-7);
> =A0 =A0// If the submit button has been pressed
> =A0 =A0$StockPrice =3D $ExercisePrice =3D $RiskFreeRateInterest =3D $Inst=
antaneousVarianceRateStocksReturn =3D "";
> =A0 =A0$TimetoExpirationOption =3D $ValueCallOption =3D $ValuePutOption =
=3D $DeltaCalls  = $DeltaPuts  = "";
>
> =A0 =A0if (isset($_POST['reset']))
> =A0 =A0{
>
> =A0 =A0$m_s =3D 100.;
> =A0 =A0$m_e =3D 100.;
> =A0 =A0$m_rf =3D .12;
> =A0 =A0$m_sigma =3D .1;
> =A0 =A0$m_time =3D 365.;
> =A0 =A0Black_Scholes_Main($m_s, $m_e, $m_rf, $m_sigma,$m_time, $m_c, $m_p=
, $m_deltacalls, $m_deltaputs);
> =A0 =A0$StockPrice =3D $m_s;
> =A0 =A0$ExercisePrice =3D $m_e;
> =A0 =A0$RiskFreeRateInterest =3D $m_rf;
> =A0 =A0$InstantaneousVarianceRateStocksReturn =3D $m_sigma;
> =A0 =A0$TimetoExpirationOption =3D $m_time;
> =A0 =A0$ValueCallOption =3D $m_c;
> =A0 =A0$ValuePutOption =3D $m_p;
> =A0 =A0$DeltaCalls =3D $m_deltacalls;
> =A0 =A0$DeltaPuts =3D $m_deltaputs;
> =A0 =A0}
> =A0 =A0elseif (isset($_POST['submit']))
> =A0 =A0{
> =A0 =A0$m_s =3D $_POST['StockPrice'];
> =A0 =A0$m_e =3D $_POST['ExercisePrice'];
> =A0 =A0$m_rf =3D $_POST['RiskFreeRateInterest'];
> =A0 =A0$m_sigma =3D $_POST['InstantaneousVarianceRateStocksReturn'];
> =A0 =A0$m_time =3D $_POST['TimetoExpirationOption'];
> =A0 =A0Black_Scholes_Main($m_s, $m_e, $m_rf, $m_sigma,$m_time, $m_c, $m_p=
, $m_deltacalls, $m_deltaputs);
> =A0 =A0$StockPrice =3D $m_s;
> =A0 =A0$ExercisePrice =3D $m_e;
> =A0 =A0$RiskFreeRateInterest =3D $m_rf;
> =A0 =A0$InstantaneousVarianceRateStocksReturn =3D $m_sigma;
> =A0 =A0$TimetoExpirationOption =3D $m_time;
> =A0 =A0$ValueCallOption =3D $m_c;
> =A0 =A0$ValuePutOption =3D $m_p;
> =A0 =A0$DeltaCalls =3D $m_deltacalls;
> =A0 =A0$DeltaPuts =3D $m_deltaputs;
> =A0 =A0}
> function Black_Scholes_Main($m_s, $m_e, $m_rf, $m_sigma, $m_time, &$m_c, =
&$m_p, &$m_deltacalls, &$m_deltaputs) {
> =A0 =A0 =A0 =A0$m_c =3D black_scholes($m_s, =A0$m_e, =A0$m_rf, =A0$m_sigm=
a, =A0$m_time/365., $nd1, $nd2);
> =A0 =A0 =A0 =A0$m_p =3D $m_e / pow(1.+$m_rf, $m_time/365.) - $m_s + $m_c;
> =A0 =A0 =A0 =A0$m_deltacalls =3D $nd1;
> =A0 =A0 =A0 =A0$m_deltaputs =3D $nd1 - 1.;
> }
> function black_scholes( $s, =A0$e, =A0$rf, =A0$sigma, =A0$time, &$nd1, &$=
nd2) {
> =A0 =A0 =A0 =A0$num =3D log($s/$e)+$time*($rf+.5*$sigma*$sigma);
> =A0 =A0 =A0 =A0$d1 =3D $num/($sigma*sqrt($time));
> =A0 =A0 =A0 =A0$d2 =3D $d1 - $sigma*sqrt($time);
> =A0 =A0 =A0 =A0$c =3D $s*myerf($d1) - $e * myerf($d2) * exp(-$rf*$time);
> =A0 =A0 =A0 =A0$nd1 =3D myerf($d1);
> =A0 =A0 =A0 =A0$nd2 =3D myerf($d2);
>
> =A0 =A0 =A0 =A0return $c;
> }
> function gammln($xx)
> {
> =A0 =A0 =A0 =A0$cof=3Darray(76.18009173,-86.50532033,24.01409822,
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0-1.231739516,0.120858003e-2,-0.536382e-5);
>
> =A0 =A0 =A0 =A0$x=3D$xx-1.0;
> =A0 =A0 =A0 =A0$tmp=3D$x+5.5;
> =A0 =A0 =A0 =A0$tmp -=3D ($x+0.5)*log($tmp);
> =A0 =A0 =A0 =A0$ser=3D1.0;
> =A0 =A0 =A0 =A0for ($j=3D0;$j<=3D5;$j++) {
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0$x +=3D 1.0;
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0$ser +=3D $cof[$j]/$x;
> =A0 =A0 =A0 =A0}
> =A0 =A0 =A0 =A0return -$tmp+log(2.50662827465*$ser);
> }
>
> function gser( =A0&$gamser, =A0$a, =A0$x, &$gln)
> {
>
> =A0 =A0 =A0 =A0$gln=3Dgammln($a);
> =A0 =A0 =A0 =A0if ($x <=3D 0.0) {
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0if ($x < 0.0) echo "x less than 0 in routi=
ne GSER";
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0$gamser=3D0.0;
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0return;
> =A0 =A0 =A0 =A0} else {
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0$ap=3D$a;
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0$sum=3D1.0/$a;
> =A0 =A0 =A0 =A0$del=3D$sum;
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0for ($n=3D1;$n<=3DITMAX;$n++) {
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0$ap +=3D 1.0;
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0$del *=3D $x/$ap;
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0$sum +=3D $del;
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0if (abs($del) < abs($sum)*=
EPS) {
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0$gamser=3D=
$sum*exp(-$x+$a*log($x)-($gln));
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0return;
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0}
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0}
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0echo "a=3D$a too large, ITMAX =3D $itmax t=
oo small in routine GSER
> ";
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0return;
> =A0 =A0 =A0 =A0}
> }
>
>
> function gcf( &$gammcf,$a,$x,&$gln)
> {
> =A0 =A0 =A0 =A0$gold=3D0.0;
> =A0 =A0 =A0 =A0$fac=3D1.0;
> =A0 =A0 =A0 =A0$b1=3D1.0;
> =A0 =A0 =A0 =A0$b0=3D0.0;
> =A0 =A0 =A0 =A0$a0=3D1.0;
>
> =A0 =A0 =A0 =A0$gln=3Dgammln($a);
> =A0 =A0 =A0 =A0$a1=3D$x;
> =A0 =A0 =A0 =A0for ($n=3D1;$n<=3DITMAX;$n++) {
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0$an=3D(double) $n;
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0$ana=3D$an-$a;
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0$a0=3D($a1+$a0*$ana)*$fac;
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0$b0=3D($b1+$b0*$ana)*$fac;
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0$anf=3D$an*$fac;
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0$a1=3D$x*$a0+$anf*$a1;
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0$b1=3D$x*$b0+$anf*$b1;
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0if ($a1) {
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0$fac=3D1.0/$a1;
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0$g=3D$b1*$fac;
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0if (abs(($g-$gold)/$g) < E=
PS) {
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0$gammcf=3D=
exp(-$x+$a*log($x)-($gln))*$g;
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0return;
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0}
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0$gold=3D$g;
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0}
> =A0 =A0 =A0 =A0}
> =A0 =A0 =A0 =A0echo "a too large, ITMAX too small in routine GCF
> ";
> }
> function gammp($a,$x)
> {
>
> =A0 =A0 =A0 =A0if ($x < 0.0 || $a <=3D 0.0) {
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0echo "Invalid arguments in routine GAMMP
> ";
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0return 0.;
> =A0 =A0 =A0 =A0}
> =A0 =A0 =A0 =A0if ($x < ($a+1.0)) {
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0gser($gamser,$a,$x,$gln);
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0return $gamser;
> =A0 =A0 =A0 =A0} else {
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0gcf($gammcf,$a,$x,$gln);
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0return 1.0-$gammcf;
> =A0 =A0 =A0 =A0}
> }
>
> function gammq($a,$x)
> {
>
> =A0 =A0 =A0 =A0if ($x < 0.0 || $a <=3D 0.0) echo "Invalid arguments in ro=
utine GAMMQ
> ";
> =A0 =A0 =A0 =A0if ($x < ($a+1.0)) {
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0gser($gamser,$a,$x,$gln);
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0return 1.0-$gamser;
> =A0 =A0 =A0 =A0} else {
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0gcf($gammcf,$a,$x,$gln);
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0return $gammcf;
> =A0 =A0 =A0 =A0}
> }
> function erfc($x)
> {
>
> =A0 =A0 =A0 =A0return $x < 0.0 ? 1.0+gammp(0.5,$x*$x) : gammq(0.5,$x*$x);
> }
> function erf($x)
> {
>
> =A0 =A0 =A0 =A0return $x < 0.0 ? -gammp(0.5,$x*$x) : gammp(0.5,$x*$x);
> }
> function myerf($argin) {
> =A0 =A0 =A0 return .5*(1.+erf($argin/sqrt(2.0)));
> }
>
> ?>
>
>


> =A0 =A0


> =A0 =A0 =A0 =A0Black Scholes Option Price Calculator:
>
> =A0 =A0 =A0 =A0 =A0 =A0temp website under Redhat Fedora 9 Linux:
>
> =A0 =A0 =A0 =A0 =A0 =A0the first 5 boxes require input(try 100. 100. .12 =
..1 365.):
>
> =A0 =A0


> =A0 =A0


> =A0 =A0 =A0 =A0StockPrice (required):
>
> =A0 =A0 =A0 =A0 StockPrice"
> =A0 =A0 =A0 =A0value=3D"" />
> =A0 =A0


> =A0 =A0


> =A0 =A0 =A0 =A0ExercisePrice (required):
>
> =A0 =A0 =A0 =A0 ExercisePrice"
> =A0 =A0 =A0 =A0value=3D"" />
>


> =A0 =A0


> =A0 =A0 =A0 =A0Risk Free Rate of Interest(required):
>
> =A0 =A0 =A0 =A0 RiskFreeRateInterest"
> =A0 =A0 =A0 =A0value=3D"" />
> =A0 =A0


> =A0 =A0


> =A0 =A0 =A0 =A0Instantaneous Variance Rate of Stock's Return (required):
>
> =A0 =A0 =A0 =A0 InstantaneousVarianceRateStocksReturn"
> =A0 =A0 =A0 =A0value=3D" ; ?>" />
>


> =A0 =A0


> =A0 =A0 =A0 =A0Time to Expiration of the Option(days) (required):
>
> =A0 =A0 =A0 =A0 TimetoExpirationOption"
> =A0 =A0 =A0 =A0value=3D"" />
>


> =A0 =A0


> =A0 =A0 =A0 =A0Values of the Call Option :
>
> =A0 =A0 =A0 =A0 =3D"ValueCallOption"
> =A0 =A0 =A0 =A0 =A0 =A0VALUE=3D"" />
>


>


> =A0 =A0


> =A0 =A0 =A0 =A0Values of the Put option :
>
> =A0 =A0 =A0 =A0 =3D"ValuePutOption"
> =A0 =A0 =A0 =A0 =A0 =A0VALUE=3D"" />
>


> =A0 =A0


> =A0 =A0 =A0 =A0Delta(calls):
>
> =A0 =A0 =A0 =A0 =3D"DeltaCalls"
> =A0 =A0 =A0 =A0 =A0 =A0VALUE=3D"" />
>


> =A0 =A0


> =A0 =A0 =A0 =A0Delta(puts):
>
> =A0 =A0 =A0 =A0 =3D"DeltaPuts"
> =A0 =A0 =A0 =A0 =A0 =A0VALUE=3D"" />
>


> =A0 =A0
> =A0 =A0
>

>
> _________________________________________________________res ults
>
> Please try the following:
>
> Open the 207.254.225.224:8080 home page, and then look for links to the i=
nformation you want.
> Click the Refresh button, or try again later.
>
> HTTP 403.1 Forbidden: Execute Access Forbidden
> Internet Information Services
>
> ------------------------------------------------------------ -------------=
-------
>
> Technical Information (for support personnel)
>
>
> Background:
> You have attempted to execute a CGI, ISAPI, or other executable program f=
rom a directory that does not allow programs to be executed.
>
>
> More information:
> Microsoft Support
> ____________________________________________
> http://207.254.225.224:8080/handle_log_book_mssql.php
> yields:
>
> Warning: mssql_connect() [function.mssql-connect]: Unable to connect to s=
erver: LANDON\SQLEXPRESSLMKIII in C:\Inetpub\wwwroot\handle_log_book_mssql.=
php on line 8 (mssql_connect(...)
> Something went wrong while connecting to MSSQL (my message)
> _______________________________________________________
> all these worked before trying 5.3
>
>
>
>
>
>
>
> --- On Wed, 9/2/09, hack988 hack988 wrote:
>
>> From: hack988 hack988
>> Subject: Re: [PHP] windows 5.2.10 PHP not working with phpinfo
>> To: "Fred Silsbee"
>> Cc: php-general@lists.php.net
>> Date: Wednesday, September 2, 2009, 6:03 AM
>> Use Event Viewer and log type is
>> :Application log
>>
>> 2009/9/2 Fred Silsbee :
>> > I looked high and low but no syslog
>> >
>> > I am currently working under XP Prof SP3
>> >
>> > --- On Mon, 8/31/09, hack988 hack988
>> wrote:
>> >
>> >> From: hack988 hack988
>> >> Subject: Re: [PHP] windows 5.2.10 PHP not working
>> with phpinfo
>> >> To: "Fred Silsbee"
>> >> Cc: php-general@lists.php.net
>> >> Date: Monday, August 31, 2009, 6:35 AM
>> >> Please set
>> >>
>> log_error=3Don,error_reporting=3DE_ALL,error_log=3Dsyslog in
>> >> php.ini and then,see error detail in syslog.
>> >>
>> >> 2009/8/31 Fred Silsbee :
>> >> > I got 5.3 working but found out there was no
>> >> php_mssql.dll for it.
>> >> > Somebody (who didn;t know) said I had to
>> return to
>> >> 5.2.8 but I found no 5.2.8 so I am trying 5.2.10
>> >> >
>> _________________________________________problem:
>> >> > under IE8:
>> >> > http://72.47.28.128:8080/phpinfo.php
>> >> > with:
>> >> > =A0 =A0 >> >> > =A0 =A0 =A0 phpinfo();
>> >> > =A0 =A0 ?>
>> >> >
>> >> > I get :
>> >> > The website cannot display the page
>> >> > HTTP 500
>> >> > =A0 Most likely causes:
>> >> > =95The website is under maintenance.
>> >> > =95The website has a programming error.
>> >> > ___________________________________________
>> >> >
>> >> > I installed :
>> >> > php-5.2.10-Win32-VC6-x86.zip and put php.ini
>> in C:\PHP
>> >> and C:\PHP\ext
>> >> > AND C:\WINDOWS, C:\WINDOWS\system and
>> >> C:\WINDOWS\system32
>> >> >
>> >> > I installed FastCGI 1.5 !
>> >> >
>> >> > In php.ini I put :
>> >> > ________________________________
>> >> >
>> >> > cgi.force_redirect =3D 0
>> =A0 =A0//
>> >> for CGI
>> >> >
>> >> > extension_dir =3D =A0"C:\PHP\ext"
>> >> >
>> >> > commented out
>> >> > ;doc_root =3D "C:\inetpub\wwwroot" // for
>> IIS/PWS
>> >> > leaving
>> >> > doc_root =3D
>> >> >
>> _________________________________________________
>> >> > IIS 5.1 properties->configuration I added
>> .php
>> >> =A0C:\PHP\php5ts.dll
>> >> > GET,HEAD,POST,DEBUG
>> >> >
>> >> > Maybe php-win.exe
>> >> >
>> _________________________________________________
>> >> >
>> >> > I added to the XP Prof environment path
>> >> ;C:\PHP\;C:\PHP\ext\
>> >> >
>> >> > I created an environment variable (and
>> rebooted) PHPRC
>> >> =3D C:\PHP;C:\PHP\ext
>> >> >
>> >> >
>> >> > I never found any statement of the necessity
>> of
>> >> requiring CGI
>> >> >
>> >> > The instructions ramble around
>> >> >
>> >> >
>> >> >
>> >> >
>> >> >
>> >> >
>> >> > --
>> >> > PHP General Mailing List (http://www.php.net/)
>> >> > To unsubscribe, visit: http://www.php.net/unsub.php
>> >> >
>> >> >
>> >>
>> >
>> >
>> >
>> >
>>
>
>
>
>

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

Re: windows 5.2.10 PHP not working with phpinfo

am 04.10.2009 05:33:01 von Fred Silsbee

--- On Mon, 8/31/09, hack988 hack988 wrote:=
> From: hack988 hack988 =0A> Subject: Re: [PHP=
] windows 5.2.10 PHP not working with phpinfo=0A> To: "Fred Silsbee" ilsbee@yahoo.com>=0A> Cc: php-general@lists.php.net=0A> Date: Monday, Augus=
t 31, 2009, 6:35 AM=0A> Please set=0A> log_error=3Don,error_reporting=3DE_A=
LL,error_log=3Dsyslog in=0A> php.ini and then,see error detail in syslog.=
=0A> =0A> 2009/8/31 Fred Silsbee :=0A> > I got 5.3 w=
orking but found out there was no=0A> php_mssql.dll for it.=0A> > Somebody =
(who didn;t know) said I had to return to=0A> 5.2.8 but I found no 5.2.8 so=
I am trying 5.2.10=0A> > _________________________________________problem:=
=0A> > under IE8:=0A> > http://72.47.28.128:8080/phpinfo.php=0A> > with:=0A=
> >     >       phpinfo();=0A> >   =
  ?>=0A> >=0A> > I get :=0A> > The website cannot display the page=0A>=
> HTTP 500=0A> >   Most likely causes:=0A> > â€=A2The website is =
under maintenance.=0A> > â€=A2The website has a programming error.=0A> =
> ___________________________________________=0A> >=0A> > I installed :=0A>=
> php-5.2.10-Win32-VC6-x86.zip and put php.ini in C:\PHP=0A> and C:\PHP\ex=
t=0A> > AND C:\WINDOWS, C:\WINDOWS\system and=0A> C:\WINDOWS\system32=0A> >=
=0A> > I installed FastCGI 1.5 !=0A> >=0A> > In php.ini I put :=0A> > _____=
___________________________=0A> >=0A> > cgi.force_redirect =3D 0   =C2=
=A0              //=0A> for CGI=0A> >=0A=
> > extension_dir =3D  "C:\PHP\ext"=0A> >=0A> > commented out=0A> > ;d=
oc_root =3D "C:\inetpub\wwwroot" // for IIS/PWS=0A> > leaving=0A> > doc_roo=
t = > > _________________________________________________=0A> > IIS 5.1=
properties->configuration I added .php=0A>  C:\PHP\php5ts.dll=0A> > G=
ET,HEAD,POST,DEBUG=0A> >=0A> > Maybe php-win.exe=0A> > ____________________=
_____________________________=0A> >=0A> > I added to the XP Prof environmen=
t path=0A> ;C:\PHP\;C:\PHP\ext\=0A> >=0A> > I created an environment variab=
le (and rebooted) PHPRC=0A> =3D C:\PHP;C:\PHP\ext=0A> >=0A> >=0A> > I never=
found any statement of the necessity of=0A> requiring CGI=0A> >=0A> > The =
instructions ramble around=0A> >=0A> >=0A> >=0A> >=0A> >=0A> >=0A> > --=0A>=
> PHP General Mailing List (http://www.php.net/)=0A> > To unsubscribe, vis=
it: http://www.php.net/unsub.php=0A> >=0A> >=0A> thanks! Weeks =
back I got it to work by retreating to 5.2.6 and altering permissions =
in admin. This alteration may open the way for 5.3 to work! ____=
______________________________________________=0ADo You Yahoo!?=0ATired of =
spam? Yahoo! Mail has the best spam protection around =0Ahttp://mail.yahoo=
..com

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