converting code using Java Vector to PHP

From: William Krick (wkrick_at_gmail.com)
Date: 09/29/04


Date: 29 Sep 2004 13:21:37 -0700

I've been given the task of converting some existing java code to PHP
so we can integrate it into our web based product.

The problem I'm facing is that the java code makes heavy use of Vector
objects to hold data. This in itself isn't a problem however the java
code makes heavy use of Vector.insertElementAt(). This method inserts
into the vector container at a desired location and shifts the indexes
of all the other items accordingly as necessary.

I don't see any way to really emulate this behavior in with PHP
arrays.

Any thoughts?

...
Krick



Relevant Pages

  • Re: [PHP] PHP Java extension--hopeless?
    ... >>Fortunately I've made contact with the guy who developed the Java code, ... >>and he has a vested interest in getting it to work with PHP too, ... > do this over HTTPS instead of plain old HTTP ... Or a servlet filter is fine in this situation that redirects to the ...
    (php.general)
  • Re: Save an Image to a file
    ... If you have that java code, ... I just found how to use command line arguments in PHP haha. ... Knute's idea to use perl might actually ...
    (comp.lang.java.programmer)
  • Re: Problem with "escaped characters" not all double quotes show up?
    ... it uses frames. ... but in PHP runing on a different server. ... problem is to get PHP to echo the java code. ... before the word Done closes that quote. ...
    (comp.lang.php)
  • Re: Call Java Method from PHP
    ... can i call Java method.That is java code from php,here what i m ... "All i m looking for just call the DB method from PHP that Read ... some body help. ...
    (comp.lang.php)
  • Re: converting code using Java Vector to PHP
    ... >The problem I'm facing is that the java code makes heavy use of Vector ... >into the vector container at a desired location and shifts the indexes ... >I don't see any way to really emulate this behavior in with PHP ...
    (comp.lang.php)