Re: PHP JAVA Error on linux

From: Date: Thu, 15 Jul 2004 00:17:43 +0000
Subject: Re: PHP JAVA Error on linux
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-190550@lists.php.net to get a copy of this message
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" <php4web@php4web.org> To: "php-general" <php-general@lists.php.net> 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" <php4web@php4web.org> > To: <jabber@raditha.com> > 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" <jabber@raditha.com> > > Cc: "php-general" <php-general@lists.php.net> > > 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 > > >

« previous php.general (#190550) next »