RE: [PHP-WIN] Setting the Local Value of a Directive

From: Date: Tue, 19 Dec 2000 15:38:09 +0000
Subject: RE: [PHP-WIN] Setting the Local Value of a Directive
Groups: php.windows 
Request: Send a blank email to php-windows+get-4535@lists.php.net to get a copy of this message
Thanks for the help. I have tried ini_set(). Unfortunately, sometimes it works, but most of the time it doesn't. I usually get the following error: Fatal error: Unable to create Java Virtual Machine in /httpd/htdocs/jtest.php on line 22 Any more ideas on this? I am going to attach a document that I got off of another listserv from Mark Nold. It is a php file that gives instructions on setup and use of the Java extension. This provides information on setup and an excellent example. Pull this file up in a browser, follow the instructions, and you will be able to see if you have everything properly configured. David <<javatest.php>> > -----Original Message----- > From: Adam Bear [SMTP:bbbbear@china.com] > Sent: Sunday, December 17, 2000 9:50 AM > To: McCandless, David W. > Subject: Re: [PHP-WIN] Setting the Local Value of a Directive > > I think maybe you can use ini_set() or ini_alter() function to set a > INI > configuration option's value.I don't think this is a good practice for > secure > reason ,but this is a way if no other way. > BTW, I download the Java extension JDK1.3 Win32 Binary from PHP.net, > and > I followed the instructions in README extactly, but it seems doesn't > work.under > Win2K+IIS. I use the tool Dependency Walker in Visual Studio 6.0 to check > the > dependence of PHP_JAVA.dll and find that the PHP_JAVA.dll required > functions in > PHP4ts.dll such as register_internal_class,ts_resource,php_error_cb,etc. > but I test > the php4ts.dll in various PHP version include PHP4.0.4b,PHP4.0.1,PHP4.0.2 > ,no one > of them can support all functions mentioned above. I don't know why, so I > very > want to know how you can setup Java extenstion accomplished on NT. Please > teach > me ASAP,I am anxious. > Thanks for the answer anyway. > > > > >Is there a way to set the local value of a directive for an extension > from > >within php code? For example, I want to set java.class.path from a php > file > >to ensure that the class path I need is available. Also, if this can be > >done, is this considered good or bad practice? > > > >By the way, has anyone had any problems with the Java extension? I have > >configured the extension and run it successfully on NT, but I am having > some > >problems with the extension on a Solaris Unix box. After setting the > >java.class.path directive in the ini file and verifying it with > phpinfo(), I > >am seeing it get wiped out later (i.e. reset to no value). This is why I > >want to try to set it from the php code before invoking the call to > Java(). > > > >I know I should ask this last bit on another list, but if anyone has any > >info on it too, I would appreciate it. > > > >Thanks, > >David > > > >-- > >PHP Windows Mailing List (http://www.php.net/) > >To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net > >For additional commands, e-mail: php-windows-help@lists.php.net > >To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.windows (#4535) next »