I also try by php cli is just work fine and tht by terminal
but when I try from net its not work please give me a hand
this command work fine from terminal
php -f /home/hrrajco/public_html/test/test.php
but from php file named test2.php is not work fine
<?
passthru("php -f /home/hrrajco/public_html/test/test.php");
?>

Please give me a hand
----- Original Message -----
From: "Alawi albaity" <[EMAIL PROTECTED]>
To: "php-general" <[EMAIL PROTECTED]>
Sent: Wednesday, July 14, 2004 10:04 PM
Subject: Re: [PHP] PHP JAVA Error on linux


> I just edit php.ini and increase it to 200
> its not work any suggestion
> does apache effect ? cuz its Usage memory limitid to 98M
>
> ----- Original Message -----
> From: "Alawi albaity" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, July 14, 2004 8:55 PM
> Subject: Re: [PHP] PHP JAVA Error on linux
>
>
> > I try this its also not work
> > <?
> > ini_set("memory_limit","80M");
> > echo '<pre>';
> >
> > // Outputs all the result of shellcommand "ls", and returns
> > // the last output line into $last_line. Stores the return value
> > // of the shell command in $retval.
> >
> > $last_line = system('/usr/java/j2sdk1.4.2_05/bin/java -cp
> > /home/hrrajco/public_html/test/lib/itext.jar
com.lowagie.tools.encrypt_pdf
> > /home/hrrajco/public_html/test/test.pdf
> > /home/hrrajco/public_html/test/encrypted.pdf user master 00000000 128',
> > $retval);
> >
> > // Printing additional info
> > echo '
> > </pre>
> > <hr>Last line of the output: '.$last_line.'
> > <hr>Return value: '.$retval;
> > ?>
> >
> > ----- Original Message -----
> > From: "raditha dissanayake" <[EMAIL PROTECTED]>
> > Cc: "php-general" <[EMAIL PROTECTED]>
> > Sent: Wednesday, July 14, 2004 6:19 PM
> > Subject: Re: [PHP] PHP JAVA Error on linux
> >
> >
> > >
> > > Alawi albaity wrote:
> > >
> > > >Java 2 SDK 1.4.2
> > > >
> > > >PHP 4.3.3
> > > >
> > > >linux fedora 1
> > > >
> > > >the command is work fine from terminal
> > > >
> > > >but its not work fine from php & give me this msg when I use exec
> system
> > passthru :
> > > >
> > > >Error occurred during initialization of VM Could not reserve enough
> space
> > for object heap
> > > >
> > > >
> > > What exactly are you refering to? are you trying to use the PHP Java
> > > extension or are you trying to execute an 'external java program'? if
> > > it's the latter you will need to increase the memory limit (default
> > > would be 8MB - not enough to start the JVM). If it's the former
> > > http://www.raditha.com/php/java.php might help.
> > >
> > >
> > >
> > >
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> > > --
> > > Raditha Dissanayake.
> > > ---------------------------------------------
> > > http://www.raditha.com/megaupload/upload.php
> > > Sneak past the PHP file upload limits.
> > >
> > > --
> > > 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
>
>
>

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

Reply via email to