Hi,

I am learning how to use the PHP Java extension. I used the example 
script/codes found in the PHP Java documentation:"
<?php

// get instance of Java class java.lang.System in PHP
  $system = new Java('java.lang.System');

  // demonstrate property access
  print 'Java version='.$system->getProperty('java.version').' <br>';
  print 'Java vendor=' .$system->getProperty('java.vendor').'  <br>';
  print 'OS='.$system->getProperty('os.name').' '.
              $system->getProperty('os.version').' on '.
              $system->getProperty('os.arch').' <br>';

  // java.util.Date example
  $formatter = new Java('java.text.SimpleDateFormat',
                        "EEEE, MMMM dd, yyyy 'at' h:mm:ss a zzzz");

  print $formatter->format(new Java('java.util.Date'));

?>"

And I got the correct output:
Java version=1.3.0
Java vendor=Sun Microsystems Inc.
OS=Windows 2000 5.0 on x86
Sunday, February 17, 2002 at 3:28:42 AM Greenwich Mean Time

However, the script also crashed Apache.exe each time it was run. It gave me 
the following error message: "Apache.exe has generated errors and will be 
closed by Windows. You will need to restart the program."

Does anyone know what is going on? Why Apache.exe kept crashing after runing 
this PHP script?

Thanks,

Zlutarch

_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


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

Reply via email to