Is it possible to use php in java

Is it possible to use php in java.java in php is possible but is vice versa possible?
iwapsms

http://zez.org/article/articleview/26/

Similar Messages

  • Is it possible to use WMI in Java

    hi,
    Is it possible to use WMI in java.We can use C# code to fetch Windows information using WMI,but is it possible to do the same in Java?

    One easy solution is to generate a vbscript, launch it and capture the output.
    Example at [http://www.rgagnon.com/javadetails/java-0580.html]
    ok, it's ugly but unless you want to go with JNI then it's worth a look.
    Bye.
    RG.

  • Possible to use PHP with servlets?

    Hello all,
    This may be a weird question, but here goes. I have a java web app that uses Servlets with a JBoss appserve and Interbase db. I am interested in using a php library in my application, is it possible to write php code within my java code to be deployed in my app? Does that even make sense? (I must admit, i have no knowledge of PHP)
    Does anyone have any experience with something of this nature?
    Thanks,
    -Kevin

    No, it doesn't really make sense.
    You can have a PHP application and a Java application installed on the same server and have them interact, but that's probably a lot more hassle than it's worth.

  • Is it possible to use Microsoft's Java Packages in Forte4Java/JBuilder?

    Dear all,
    I am wondering whether it is possible to use those java packages installed by MS Visual J++ in Sun's Forte4Java or Borland's JBuilder? I found one of the java packages of Microsoft -- com.ms.com.* quite useful for calling ActiveX Components in java code and I have succeeded in calling my DLL COM under Visual J++ with the help of com.ms.com.Dispatch. But I have to use Forte4Java to write my Java program, therefore, it will be great if I can still use com.ms.com.* under Forte4Java. Is it possible? If so, how to do it? Please advise and thanks in advance...
    Tracy

    You can use any java package if you just add it to the classpath. In Forte this means adding it to the explorer pane, I am not sure about Builder.
    The problem will be when you try to run it. Any Microsoft class which uses some part of their runtime will require the Microsoft VM. If you have that, and are willing to be permenantly tied to it, then you will be in business.

  • Is it possible to use  closures in java 1.6

    I wan to to use closures they reduce lot of time .I know I can write closures in other languages like groovy , scala etc.But I have troubles using these langauges , I am wondering if I can use closures inside my java files , is this possible?

    Not in 1.6.0 but you will be able to in 1.7.
    You can get a very similar effect using inner classes which have been available since 1.1.x

  • How to use the Public Java API

    Is it possible to use the Public Java API to write a custom transformation in Java and use this in OWB. i.e. Say I have a Dateofbirth field in my source database and an Agegroup field in the target database, and I write a transformation in Java to take the Dateofbirth as an input parameter to the method and calculate the Agegroup e.g. 25-30, and return it from this method which then populates the Agegroup field in the target database. If so, how do I go about this?

    Martin,
    In general, yes you could... but you do not need to. You could use the UI to implement this requirement. The public Java API is there for you to manipulate metadata. How you implement your system, is independent of that.
    The way you would go about the case you just mentioned... you would write the Java code, deploy it into the database, wrap it in a PL/SQL procedure or function, and call it from OWB.
    Would this be a good idea...? I think no. Unless you have very complicated calculations that can only be performed in Java, I strongly encourage you use the PL/SQL language. Reason being: transformation will be much faster, because there is no need to translate PL/SQL into Java and back again.
    Hope this helps,
    Mark.

  • How to use Php a function in an insert transaction ?

    Hi,
    I want to insert a computed data (string) based on a date (dd-mm-aaaa hh:mm:ss).
    The result must be AAAAMM Year+month without spaces.
    So i tried this :
    $ins_agenda->addColumn("aaaa_mm", "string", "POST", "date({date_debut_effective},'Ym')");
    But it failed.
    Is it possible to use Php fonction with an appropriated syntax ?
    Thanks for your help. JM.

    I get this :
    tNG_fields.getColumnValue:
    Column date_debut_effective is not part of the current transaction
    In fact, date_debut_effective is the form field name, deb_eve is the database field name (transaction name).
    aaaa_mm is another database field in the same table, same transaction.
    aaaa_mm should only be computed with deb_eve data.
    When I use deb_eve as transaction field name in the trigger, the targeted database field (aaaa_mm) remain empty after the insert.
    The logic should like this :
    Form field (format datetime)
    -> database X field deb_eve (same format datetime)
    -> computed database X field aaaa_mm (format aaaamm or Ym)
    I use this : $ins_agenda_previsionnel->addColumn("aaaa_mm", "STRING_TYPE", "CURRVAL", ""); to fill aaaa_mm field.
    My code :
    before trigger
    // date de début effective vers date aaaamm
    function Trigger_Custom_aaaamm(&$tNG) {
    $date_field = $tNG->getColumnValue(deb_eve);
    $tNG->setColumnValue("aaaa_mm", date($date_field,'Ym') );
    insert transaction
    // Make an insert transaction instance
    $ins_agenda_previsionnel = new tNG_insert($conn_cnxWarh);
    $tNGs->addTransaction($ins_agenda_previsionnel);
    // Register triggers
    $ins_agenda_previsionnel->registerTrigger("STARTER", "Trigger_Default_Starter", 1, "POST", "");
    $ins_agenda_previsionnel->registerTrigger("BEFORE", "Trigger_Custom_aaaamm", 98);
    $ins_agenda_previsionnel->registerTrigger("AFTER", "Trigger_LinkTransactions3", 98);
    $ins_agenda_previsionnel->registerTrigger("ERROR", "Trigger_LinkTransactions3", 98); //liste IRP
    // Add columns
    $ins_agenda_previsionnel->setTable("agenda_previsionnel");
    $ins_agenda_previsionnel->addColumn("id_agent", "NUMERIC_TYPE", "VALUE", "{rsfiche_agent.id_agent}");
    $ins_agenda_previsionnel->addColumn("aaaa_mm", "STRING_TYPE", "CURRVAL", "");
    $ins_agenda_previsionnel->addColumn("titre", "STRING_TYPE", "VALUE", "ENTREE AGENT");
    $ins_agenda_previsionnel->addColumn("evenement", "STRING_TYPE", "VALUE", "Entrée Agent {Vue_Visu.prenom} {Vue_Visu.nom_complet} ");
    $ins_agenda_previsionnel->addColumn("deb_eve", "DATE_TYPE", "POST", "date_debut_effective");
    $ins_agenda_previsionnel->addColumn("fin_eve", "DATE_TYPE", "VALUE", "{Vue_Visu.date_fin_contrat}");
    $ins_agenda_previsionnel->addColumn("frequence", "STRING_TYPE", "VALUE", "1");
    $ins_agenda_previsionnel->setPrimaryKey("id_agenda", "NUMERIC_TYPE");

  • Is it possible to login into the Java instance without password's input, using only my Windows workstation authorization?

    Dear Sirs,
    I try to do an authorization to my NW 7.3 Java instance through my Windows domain authorization.
    I done:
    1) Create connection to LDAP-server and tested it.
    2) Add windows domain certificate to TrustedCAs
    3) Configure SPnego
    Now, I can to login in my NW7.3 Java instance with my windows password, but however I must to input password when I open NW7.3 Java homepage.
    Is it possible to login into the Java instance without password's input, using my windows workstation login/password?
    What I have to do for that?
    I use Windows XP on my workstation and IE 8.0.6 & Chrome 38.0.2125.
    Best regards,
    Alexey Lugovskoy

    Please check
    Using Kerberos Authentication on SAP NetWeaver AS Java - User Authentication and Single Sign-On - SAP Library (NW7.3)
    Using Kerberos Authentication for Single Sign-On - User Authentication and Single Sign-On - SAP Library (NW7.0)

  • Is it possible to use the JS coding in webdynpro java application!!!

    Hi Experts,
    Is it possible to use the JS coding in webdynpro java application by any means?
    If yes, kindly suggest the procedure or any pointers for the same.
    Thanks in advance.
    Regards,
    Anurag

    Hi,
    I'm not an expert in this matter, but I will post here what I know:
    In NW7 releases (at least 7.01.05) it is possible to run JS, also to capture any WD Event and run your own JS code after that, using IFRAME. I have jQuery running here, it would take some time till you create a "framework" to enable some easy usage. I just want to highlight that is possible, thou I think it's a lot of effort.
    Not sure about CE7.1 it seems iFrame is deprecated. Still, being deprecated should not "block" the usage, thou it's not recommended since this functionality can be removed in next releases.
    I've read that CE7.2 has JS support, and I think you should try having a word with Armin maybe..
    Hope it helps,
    Daniel

  • Is it possible to use portal service written in Java?

    Hello,
    I've written a certain portal service in Java and deployed it to the portal and it is working OK.
    My question is if it is possible for .NET developers to use it and it's method in their projects as I am using in my Java and DynPro projects.
    Roy

    Hi Roy,
    What you asked requires interoperability between two very different technology stacks - Java and .NET (which is basically what the .NET PDK does for you).
    What you need for this is a mechanism to "translate" between these two stacks. This can be done with various 3rd party tools (that you can buy from companies who specialize in this kind of tools).
    BUT
    The quick, easy and cheap way is to use the industry-standard of interoperability, which is, as Tsachi told you - Web-Services.
    Regards,
    Ofer

  • Is it possible to use "c/c++" developed library in java?

    hello all
    i have a convertor. which convert wav to mp3 and it is developed using "c". now i want to use that in java. is it possible? if possible then how?
    i am working in a project where the project (convertor) will be in server and client will access that from the client pc within a network. now i want to use that convertor which is developed using "c".
    anyone can tell me how can i do that??
    thanks
    bashar

    The previous answers are correct - you can do what you need by using JNI.
    However, there are serveral products, so-called "JNI wrappers" that allow you to call any C function from Java without learning JNI.
    Here is link to one of such products, and you can find others in google as well.
    http://www.excelsior-usa.com/xfunction.html
    Library for painless JNI programming

  • Is it possible to use Magnetic Strip Card in Java Card

    Can Any body knows that is it possible to use magnetic strip card instead of IC MicroProssesor card in Java Card technology ?
    is it possible to write java card applet on magnetic strip card ?
    Please Help me in this topic
    Thanx in advance

    If you mean having a combo of mag stripe and cpu/memory on a card, which support javacard tech, then yes.
    If you mean having a mag stripe only card which supports javacard, then no, it does not support javacard technology. Correct me if I am wrong but a mag stripe only holds a couple of bytes of datd doesn't it? Regardless no way enough for jcre, applets etc.
    Apu

  • Is it possible to extract the text and images using PHP

    Hi friends,
    Is it possible to extract the text and images using PHP, in the same order as it is in the PDF?
    Else is it possible extract the same as XML using PHP, or ASP
    I googled it but its in vain, any help is appreciated.
    Thanks in advance.

    Dear Mike,
    Thanks for your quick reply,
    I mean is it possible to parse the PDF line by line using the PHP.
    I extracted the whole text but couldn't the images. Since the PDF's images are decoded using various methods like DCTDecode, JPXDecode, etc.
    The text is decoded with FlateDecode, which i breaked using a function in PHP.
    Thanks,

  • Is it possible to cal web dynpro java application using portal application?

    Hi,
    is it possible to cal web dynpro java application using j2ee portal application?
    If possible, how can it be done the parameter mapping over context area?
    Regards.

    you can just append parameter to the url as usual.
    you will write some code in the controller to get the parameters and set them to the context.

  • Is it possible to use 32-bit firefox with 64-bit java plugin?

    Is it possible to use 32-bit firefox with 64-bit java plugin?
    I'd like to use 32-bit firefox and I already install 64-bit java plugin.
    Is that a right choice not to install 32-bit java plugin?
    Will these cause problem?
    Thanks in advance.
    Regards,
    Sean

    Nope - you need the 32bit Java to go with the 32bit Firefox if you want Java to run

Maybe you are looking for

  • Won't show my phone is connected to iTunes.

    I have updated the lastest version of iTunes, but when i connect my phone to my computer, there isn't any button like there were before, to see my phones infomations. So I can't synchronize my music to my phone.

  • What impact should I see when my Ipad mini is associated to my Wife's Apple ID

    I have a 64gb Ipad mini My wife has a 16gb Ipad with retina Both me and my wife have purchased tv shows in iTunes using my Ipad mini and have both downloaded content to that device. My Ipad mini shows in my wife's iTunes account as being associated w

  • Color calibration

    Does the Apple Cinema Display 24-inch monitor require color calibration like any other monitor? I have a Spyder2Express but have not used it yet with this new screen. Anyone who calibrate their 24-inch screen from Apple?

  • Video into a Macbook

    I can see from the Forum that you can watch video from a Macbook on a tv but is it possible to get video INTO a Macbook. I have a small security camera the connects to the TV with a RCA connector but I would like to have it on my Mac. Seanoge

  • Connection SQLite with Flex Web Based App??

    Hi! I have a problem, I create a Flex Web Based App in Flash Builder 4 and I need connect that app with my SQLite database... but I can't found the method that permit me create that connection. My question is... exist some method or some kind of code