[PHP] PHP with Java

2001-10-18 Thread Aku

Hi,

I learn PHP with Java and I try PHP script from help, like below;

getProperty("java.version")." \n";
 print "Java vendor=".$system->getProperty("java.vendor")." \n\n";
 print "OS=".$system->getProperty("os.name")." ".
 $system->getProperty("os.version")." on ".
 $system->getProperty("os.arch")." \n";
 $formatter = new Java("java.text.SimpleDateFormat",",  dd,  'at' h:mm:ss 
a ");
 print $formatter->format(new Java("java.util.Date"))."\n";
?>

error like;
Fatal error: Unable to create Java Virtual Machine in c:\new\java\ex01.php on line 2

Thanks for help.

Hotma MS
[EMAIL PROTECTED]
(sorry about my english)



[PHP] Error POP3 Class

2001-10-22 Thread Aku

Hello,

I try pop3 class to access pop3 server, why error result like,
"Fatal error: Maximum execution time of 30 seconds exceeded in
c:\new\sample\oh\pop3.php on line 23"
before finish.

file: pop3.php

  /* Private methods - DO NOT CALL */
  Function GetLine(){
   for($line="";;){
if(feof($this->connection))
 return(0);
$line.=fgets($this->connection,100);  /*
this is line 23 */
$length=strlen($line);
if($length>=2 && substr($line,$length-2,2)=="\r\n")
 return(substr($line,0,$length-2));
   }
  }

Thanks,
Hotma MS



-- 
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]