Php + Arquivos .class
#1
Posted 31/05/2004, 12:09
preciso fazer um script php que pegue uma classe de criptografia contina no arquivo itaucripto.class... é para o shopline...
meu servidor nao da suporte a java, entao vou ter q desenvolver o codigo em php...
mas nao sei como começar... primeiro preciso saber se vou conseguir fazer esta criptografia mesmo o servidor nao tendo o java abilitado...
alguem pode me ajudar ???
tenho um exemplo da criptografia em java...
t+
actos
#2
Posted 31/05/2004, 12:14
Tutoriais, código colaborativo (pastebin), curso de PHP, artigos e etc.
#3
Posted 31/05/2004, 14:51
Ps.: a parte que responde a sua pergunta esta em NEGRITO.
XLVII. PHP / Java Integration
Introdução
There are two possible ways to bridge PHP and Java: you can either integrate PHP into a Java Servlet environment, which is the more stable and efficient solution, or integrate Java support into PHP. The former is provided by a SAPI module that interfaces with the Servlet server, the latter by this Java extension.
The Java extension provides a simple and effective means for creating and invoking methods on Java objects from PHP. The JVM is created using JNI, and everything runs in-process.
Atenção
Este módulo é EXPERIMENTAL. Isso quer dizer que o comportamento neste módulo --- incluindo suas funções e seus nomes, e TUDO mais que está documentado sobre esse módulo --- poderá mudar em futuras versões do PHP, SEM QUALQUER NOTIFICAÇÃO. Esteja avisado, e use este módulo por sua própria conta e risco.
Requisitos
You need a Java VM installed on your machine to use this extension.
Instalação
To include Java support in your PHP build you must add the option --with-java[=DIR] where DIR points to the base install directory of your JDK. This extension can only be built as a shared dl. More build instructions for this extension can be found in php-src/ext/java/README.
Note to Win32 Users: In order to enable this module on a Windows environment with PHP <= 4.0.6, you must copy jvm.dll from the DLL folder of the PHP/Win32 binary package to the SYSTEM32 folder of your windows machine. (Ex: C:\WINNT\SYSTEM32 or C:\WINDOWS\SYSTEM32). For PHP > 4.0.6 you do not need any additional dll file.
Configuração durante execução
O comportamento dessas funções podem ser modificado pelas configurações do php.ini.
Tabela 1. Java configuration options
Name Default Changeable
java.class.path NULL PHP_INI_ALL
java.home NULL PHP_INI_ALL
java.library.path NULL PHP_INI_ALL
java.library JAVALIB PHP_INI_ALL
For further details and definition of the PHP_INI_* constants see ini_set().
Tipos Resource
Esta extensão não possui nenhum tipo resource.
Constantes Predefinidas
Esta extensão não possui nenhuma constante.
Mero mortal!
0 user(s) are reading this topic
0 membro(s), 0 visitante(s) e 0 membros anônimo(s)