[SOLVED] calling a java class from php.
Posted: Fri Mar 19, 2004 12:43 pm
Have created a java class which will read the contents of a file and add it contents into a database. my problem is how to call this java.class from php and have it reconize which file to read ($file_name). Below the copy part of the file being uploaded.
above the line that will copy a uploaded file, now what it should be doing after that is calling a java class which basicly reads the contents of the file.
the java.class
Code: Select all
@copy($file, "$absolute_path/$file_name") or $endresult = "<font size="2">Couldn't Copy File To Server</font>";the java.class
Code: Select all
all imports
public filename (int tam)
{ reglenght = tam
}
// some more code
line.substring =(0.39).trim
// and so on with lots and lots more code