Writing xml from an .exe file

Hi,
So, is it possible to post to php in an .exe file instead of a .swf displayed inside a browser?
If so, how? I figured if you just created the .exe on the server with the .php file in the same folder
it would read it and work fine.
This doesn't seem to be the case... any ideas? Does it always have to go through a browser page?
thanks

It is possible to call a PHP file from an EXE. Make sure that you have th PHP file in the webroot of your webserver (IIS or Apache). Also, make sure that you use the server path..for example: http://localhost/myapp/myphpfile.php. It should work!

Similar Messages

  • Generating Deeply nested XML from a flat file

    Hi All,
    I am working on a MQ to IDOC scenario.
    I am getting a flat file as input. I need to convert it into XML( so that XI can understand it).
    But conversion is into a "Deeply Nested XML from a Flat File" at sender side (JMS Adapter).
    Any inputs on this.
    Regards,
    Vikas

    You can only convert flat file into xml structure with 3 levels.
    If you need to convert flat file into deep nested xml structure, you have to do java mapping or xslt or abap mapping. There is a tool, I think it's called conversion agent by itemfield (bought by SAP), which can do pretty everything with conversion. Never used it though.
    Jayson

  • Xml from a path file

    Hi,
    I try to create a XML OBJECT from a stream, but i can't make .
    Someone know a way to create a object XML from a path file (xml) ?
    PS: I try to create a TABLE with the information in a XML File.
    Please,
    I really need some help!

    Hi
    You need to read that file from disk into a stream.
    std::string inStr = "C:\yourPath.xml"
    InterfacePtr<IPMStream> m_stream(StreamUtil::CreatePointerStreamRead(const_cast<char*>(inStr.c_str()), inStr.size()));
    Then you need to pase that stream
    I'm using DOM parser
    InterfacePtr<IK2ServiceRegistry> serviceRegistry(gSession, UseDefaultIID());
    InterfacePtr<IK2ServiceProvider> xmlDOMProvider(serviceRegistry->QueryServiceProviderByClassID(kDOMParserService, kDOMParserServiceBoss));
    InterfacePtr<IDOMServices> domServices(xmlDOMProvider, UseDefaultIID());
    IIDXMLDOMDocument* m_root = domServices->Parse(m_stream);
    m_stream->Close();
    And then for each node create a table cell.
    Maybe there's a easier way to do that. Maybe by using some import filter.
    Regards
    Bartek

  • Failed to load XML from the package file "" due to error 0xC00CE556 "Invalid at the top level of the document.Line.

    Using Installation wizard to deploy SSIS packages from DEV server to QA server package store cause this error;
    Failed to load XML from the package file "" due to error 0xC00CE556 "Invalid at the top level of the document. Line 773, Column 93". This happens when loading a package and the file cannot be opened or loaded correctly into XML document.  This can be the
    result of either providing an incorrect file name to the LoadPackage method or the XML file specified having an incorrect format.  Please who have the idea of how this issue can be resolved?BI Developer

    Hi ,
       for this Error one and only one solution 
    go to view Code, line number and Column number shown in error message,
    and Remove code from there till last and save it,  it happens when we are moving Package from one server to another server. and VS adds some lines of code at the bottom of package
    something like this 
    andles="1" allownudging="1" isannotation="0" dontautolayout="0" groupcollapsed="0" tabstop="1" visible="1" snaptogrid="0"&gt;
        &lt;control&gt;
          &lt;ddsxmlobjectstreaminitwrapper binary="00080000921400008c040000" /&gt;
        &lt;/control&gt;
        &lt;layoutobject&gt;
          &lt;ddsxmlobj&gt;
            &lt;property name="LogicalObject" value="{BBFB0E
    Remove this code and save package it will work.  
    hope this will help to Developers who are searching for same ......... :) 

  • Can I copy XML from one RDL file to another

    Hi
    I have created one report, worked on it as a prototype for a project - added datasets , params etc
    I now want to start again - from a template that we have just created - with professional layout, images etc - but want to copy the datasets, parameters from the original prototype to a new report (created from the template).
    Can I just copy sections of the XML from the original RDL file to the new one ?- like the Datasets and parameters sections 
    Regards
    Greg

    Hi,
    Yes, you can.
    If you copy less or more then need you'll see an error.

  • How do I install Photoshop from the .exe files I got from Adobe?

    I downloaded Photoshop CS2 from Adobe's site.  That download gave me 5 .exe files, including CreativeSuiteCS2Disc1.exe, CreativeSuiteCS2Disc2.exe, and CreativeSuiteCS2Disc3.exe. 
    When I clicked on CreativeSuiteCS2Disc1.exe, files were extracted and installation began.  I put in my serial number and other information, and things seemed to be going fine.  Then a window popped up with the message "Please insert Disk 2."  Well, I don't have a Disk 2.
    My download included a file "CS2_install_Win.pdf."  In those instructions, it says "the InstallShield wizard may return an error, "Please insert disk [ number ]." If this error occurs, click OK in the dialog box and then double-click the disk image to which the installer refers to manually extract the disk and complete the installation."  So, I clicked on CreativeSuiteCS2Disc2.exe, which overwrote the extracted files from CreativeSuiteCS2Disc1.exe.  But the box saying "Please insert Disk 2" didn't go away. No matter how many times I clicked "OK" it just stayed there.  
    Still, CreativeSuiteCS2Disc2.exe ran, and when it was done I got a message that installation was complete.  But, when I tried to run CS2, I got an error that my serial number and organization were invalid or not installed properly.  I know they were installed because I put them in when I ran CreativeSuiteCS2Disc2.exe
    So, given that following the pdf instructions that came from the download don't seem to work, can anyone out there offer me better instructions on how to do this installation?  I was thinking of extracting each .exe file to a CD, then just inserting those CDs one at a time.  Will that work?

    Missing personalization infopoints to permissions/ user privileges issues which are to be expected with such old versions on contemporary operating systems. Run as admin, turn off security stuff, try compatibility modes. Actualyl burning the discs will of course work, but you might look into simply mounting folders/ disc images as virtual drives e.g. using Daemon Tools Lite or your disc burning software's own disc mounter.
    Mylenium

  • How do I instal Windows 7 in bootcamp from an .exe file?

    I have to instal Windows 7 on my mac for school. Since I'm a student Microsoft has given me a free download of Windows, but is was an .exe file.
    I guess I will have to find a way to make an image file of it, but I have no idea how.... Can anyone help?

    Sounds like you have a Volume License of Windows that was downloaded from Microsoft.
    You should be able to unzip the .exe (yes, I know it sounds incorrect, but the .exe is a self-extracting archive) using unzip command in terminal or you could try renaming the .exe to .zip, then unzipping it. Never tried it using your specific file, but it is worth a shot.
    Try Googling "Extract .exe on Mac" if you need clarification.
    Hope that helps!

  • Process Class:How to give and get data from an exe file continuously???

    hi,,,
    I am trying to run an executable file from my program to give it input and read its output....
    And i am having problems...
    The exe file takes one input and appends to it "1235" (ITS A TEST CASE).
    When it is only for a single input , the program rums perfectly.. but when it is within a loop it does not
    Pls help
    Here is the code for that EXE file. (its in C)
    #include<stdio.h>
    int main()
    char a[10];
    int i;
    int k=1235;
    while(1){
    scanf("%s",a);
    if(a[0]=='s')
    break;
    printf("%s%d\n",a,k);
    }Note that when i remove the loop here, my code is able to get and give it data.
    My JAVA program::
    import java.io.*;
    public class Main {
      public static void main(String[] args) throws IOException {
            try {
          String line;
          Process p = Runtime.getRuntime().exec
            ("C:\\users\\Untitled3.exe");
           BufferedWriter   out=new BufferedWriter(new OutputStreamWriter(p.getOutputStream()));
              out.write("dfgsfs\n");
              time= java.lang.System.nanoTime();
              out.flush();
          BufferedReader input =new BufferedReader(new InputStreamReader(p.getInputStream()));
         while ((line = input.readLine()) != null) {
            System.out.println(input.readLine());
          input.close();
        catch (Exception err) {
          err.printStackTrace();
    }PLS HELP

    I see a problem in your C code. You're not flushing stdout after you printf and that usually means java is not seeing whats your C program is printing.
    removing the loop probably works because stdout is being flushed right before exit.
    I used a perl script to test your stuff and found that flushing made the trick
    #!/usr/bin/perl
    open(OUTFILE,">>./output.txt");
    $| = 1;
    while (<STDIN>) {
        if (m/.*error.*/) {
            print STDERR  $_;
        } else {
            print STDOUT  $_;
        print OUTFILE $_;
        if (m/exit/) {
            last;
    close(OUTFILE);
    exit;notice "$| =1;" that autoflushes in perl (just in case you were wondering where my flush call went)
    Enjoy!

  • Error saving xml from model to file

    Hello.
    I am trying to create an xml file based on example GEO_DIM.dtd
    I have a dataserver
    jdbc:snps:xml?d=/oracle/product/odi_1/oracledi/demo/xml/GEO_DIM.dtd&s=MY_GEO_SCHEMA&lf=/logs/demo_geo_dim.log&ll=31
    xml model works fine. I can do Insert into and populate the whole model with data.
    When I try to save it on the disk using (on target)
    create xmlfile ' /tmp/test_demo_geo.xml' from schema MY_GEO_SCHEMA
    I get an error
    ODI-1272: The Logical Schema has not been set on source for populate_demo_geo.
    Caused By: java.lang.NullPointerException
    at com.sunopsis.jdbc.driver.xml.SnpsXmlPreparedStatementRedirector.executeUpdate(SnpsXmlPreparedStatementRedirector.java:625)
    What this driver wants from me?
    I just want to write the xml I’ve created to the disk.
    I’ve tried to do this CREATE XMLFILE command on source, but, it doesn’t help either. I just receive
    java.lang.NullPointerException
    at com.sunopsis.jdbc.driver.xml.SnpsXmlPreparedStatementRedirector.executeUpdate(SnpsXmlPreparedStatementRedirector.java:625)
    at com.sunopsis.jdbc.driver.xml.SnpsXmlPreparedStatement.executeUpdate(SnpsXmlPreparedStatement.java:113)
    Please, It just makes me mad, sorry…

    Hi Lembit,
    Thanks for posting current syntax to write the xml file.
    Even i am triying the same to write out an xml file from my xml schema.
    I executed my interface which inserted 3 records into target XML schema and inserted data i can in the XML model data store.
    I wrote a procedure to write XML schema data including newly inserted 3 records, i went through,but all record of XML model is written into file.
    my create xml command looks like create xml file "D:\temp\XML\gan_out.xml" from schema DEPT_TRG_SCH.
    Now i have around 10 records in the XML datastore in target XML model. I want to write an XML file each record from XML data store.
    Please help,
    Thanks,

  • Writing XML Object to a File

    Hi, I am using InDesign JavaScript to make an XML object in memory. When my script is done, I want to write the XML to a file. When I run the code below, the file is created, but the XML is not written to the file. Any help would be appreciated. Thanks. Rick
    #target indesign
    var partsMap = <partsMap />;
    savePartsMap (partsMap);
    function savePartsMap (partsMap) {
        var partsFile;
        // Make a File object for the parts map XML file.
        partsFile = new File("E:\\Test.xml");
        // Open the map file.
        partsFile.open("w");
        partsFile.write(partsMap);
        partsFile.close();

    Add partsFile.encoding = 'UTF-8'; right after your File instantiation.
    I'm not sure but you also might want to write partsMap.toXMLString() instead of the partsMap.toString() you're implicitly writing.
    Jeff

  • Open browser pop up from an exe file

    Hi
    Can you help me with this?:
    I have to open an internet browser pop up from a movie, that
    is an exe file...
    And I don´t know how to do it... :(
    I´ve seen the manuals, but all the instruccions are for
    a movie that is into an html file, and this is not my case...
    thanks a lot!
    Sofia

    Hi, LuigiL...
    but... with getURL() I can´t restrict the dimensions of
    the window....
    I need a window of 1008x650 pixels exactly with no scrollbar.
    How can I do it?
    thanks again

  • Writing data from array to file

    May i know how to write string from a array into a file.
    I have use string tokenizer to extract every line from a file using readline and use stringtokenizer to spilt the line using tab delimiter for processing.
    But if i want to write data from array to file with tab as a delimiter and how to go to the next line. How do i do that. Below is the task and i have state a simple example on a array i have and the file output that i want.
    Pls advice.. Thanks
    eg of a array
    array[0] = Data
    array[1] = One
    array[2] = Data
    array[3] = Two
    array[4] = Final
    array[5] = Data
    From the above array, i want to write to a file so that it will appear something as below
    Eg textfile.txt
    Data One
    Data Two
    Final Data
    PLs attached a simple code as a example as i am only begining to start useing the IO feature in java. Thanks

    Really thanks for your help,
    but u are mentioning that i have already know the number of countters in advance , that is to say the 2 * counters.
    But is there a way to solve this problem which i mean if i dun know the number of predefined counters. Maybe i should say, there is more than 2 counters and in another situation, the counters will only be defined during runtime. Actually the solution u give will work nicely with 2 counters. but wat if the counter is more than 4, i wll have to concatenate the string a lot of time. so is there any solution around this problem. That why i am wandering if tere is any solution to write to the file when the counters can be only determined in runtime
    Pls advice on the above with a code samples if possible.

  • Opening a PDF document from an exe file

    How can I open a PDF document from a executable file??
    A friend has told me to use this:
    fscommand ("exec", "anexo01.bat")
    but it opens a black pop up window before opening the
    program..... and it don´t seems to be a good solution.....
    can someone help me on this?
    thanks!!
    Sofia
    thanks for the help.

    > How can I open a PDF document from a executable file??
    > A friend has told me to use this:
    > -------------------------------------------------
    > fscommand ("exec", "anexo01.bat")
    > -------------------------------------------------
    > but it opens a black pop up window before opening the
    program..... and it
    > don´t seems to be a good solution.....
    > can someone help me on this?
    You can't avoid the echo box, unfortunate but that's the
    compromise if you go with
    the BAT file method.
    For many years I have been using Flash Jester tool call
    JStart. Works like charm
    all the way, no extra pop up windows :)
    http://flashjester.com/?section=tricks_jtools_jstart
    JStart will allow you to not only launch a program, but use
    parameters to make the
    program open files, perform special actions and just about
    anything you can use
    parameters for. You can also choose to launch files with
    their default associated
    program.
    Another solution is provided by by Rick Turoczy, it's pretty
    old but should still
    work. Perhaps give it a try.
    http://www.flashgeek.com/tutorials/07_launchapp_01.asp
    Easy to use tool that allow you to launch basically anything
    from the projector.
    As long as there is system default application supporting
    particle file.
    Best Regards
    Urami
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • Writing XML Document to a file or the console

    How do i write an XML document to a file & to the console.
    Document doc = new Document
    doc = (Document)Class.forName("org.apache.xerces.dom.DocumentImpl").newInstance();
    Element root = doc.createElement("PERSON");
    Element item = doc.createElement("NAME");
    item.appendChild(doc.createTextNode("Vaskar"));
    root.appendChild(item);
    How do i write this doc object to the console

    if you use XMLDocument object which implements Document then you would be able to use the method print that is part of the xmlDocument class
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Vaskar Dasgupta ([email protected]):
    How do i write an XML document to a file & to the console.
    Document doc = new Document
    doc = (Document)Class.forName("org.apache.xerces.dom.DocumentImpl").newInstance();
    Element root = doc.createElement("PERSON");
    Element item = doc.createElement("NAME");
    item.appendChild(doc.createTextNode("Vaskar"));
    root.appendChild(item);
    How do i write this doc object to the console<HR></BLOCKQUOTE>
    null

  • Writing data from a CSV file in to table

    Hi All,
    I have a CSV (Comma Separated Values) file and i want to write its data in to the table.
    How can i get data from a CSV file.

    As Karthick suggested, you can use External Tables or Sql Loader functionality
    You can check this link for example on Sql Loader http://surachartopun.com/2007/10/example-sql-loader-some-data-into.html

Maybe you are looking for