[PHP] PHP --with-java problem
I am trying to configue PHP with Java support. with PHP-4.1.2, JDK1.3.1_01 The installation goes smoothly. My php.ini file contains the follwing section for Java code [Java] java.class.path = /usr/local/src/php-4.1.2/ext/java/php_java.jar java.home = /usr/local/jdk1.3.1_01 java.library = /usr/local/jdk1.3.1_01/jre/lib/i386/server/libjvm.so ;java.library.path = .\ extension_dir = /usr/lib/php4 extension = libphp_java.so /code phpinfo() function output shows me Java section OK. BUT, when I run a simple example from 'ext/java/jver.php' (available with PHP distribution), Netscape gives me an error box with a message: The document contained no data. Try again later or contact the server's administrator. Here's the code for jver.php I'm trying to run: html headtitletest/title/head body h1Java Test/h1 ? // if this part is commented out --- // // the scritp displays h1Java Test/h1 $system = new Java(java.lang.System); print Java version=.$system-getProperty(java.version). br\n; print Java vendor=.$system-getProperty(java.vendor). p\n\n; print OS=.$system-getProperty(os.name). . $system-getProperty(os.version). on . $system-getProperty(os.arch). br\n; $formatter = new Java(java.text.SimpleDateFormat, , dd, 'at' h:mm:ss a ); print $formatter-format(new Java(java.util.Date)).\n; // - */ ? body /html Obviously, there's somthing still wrong with PHP/Java configuration Anybody has the same problem? Any suggestions? Any help is appreciated, Thanks -- zakd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] php and java problem
Hi ! I was able to determine the user's screen resolution, but I'd like to let php know that(the next page loaded should be in the right resolution, I'd like to pass a value to php, but I don't know how). Thanx Nikola -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] php and java problem
Nikola, I'm not a javascript user and new to php too. Is it possible to form your javascript result into a 'hidden' form value. That could then be read by the next php page. HTH George - Original Message - From: Nikola Veber [EMAIL PROTECTED] To: php forum [EMAIL PROTECTED] Sent: Sunday, September 30, 2001 10:36 PM Subject: [PHP] php and java problem Hi ! I was able to determine the user's screen resolution, but I'd like to let php know that(the next page loaded should be in the right resolution, I'd like to pass a value to php, but I don't know how). Thanx Nikola -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] php and java problem
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sunday 30 September 2001 21:36, Nikola Veber wrote: Hi ! I was able to determine the user's screen resolution, but I'd like to let php know that(the next page loaded should be in the right resolution, I'd like to pass a value to php, but I don't know how). pagethatdeterminesresolution.php determines the resolution, and has a link such as this one: a href=correctpage.php?Xres=640Yres=480Link/a (The numbers are pure fiction ofcourse, you need to get them.) This means that in correctpage.php you will have two variables, $Xres and $Yres that will represent the resolution. Alexander -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE7uG1AySJLuRUx8aQRAkf0AJwMutj7TZ3HCqFGEEyv0Gn8souqdACdFToE 20D9LSWxEYKAwOYvHD8psMU= =Ghac -END PGP SIGNATURE- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] php and java problem
Hi ! I was able to determine the user's screen resolution, but I'd like to let php know that(the next page loaded should be in the right resolution, I'd like to pass a value to php, but I don't know how). Thanx Nikola -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]