Scripting airstatus.exe from PHP

Hi,
I've just written a small piece of PHP to get us out of a
hole for a couple of weeks until the permanent piece of software
we're waiting for gets delivered.
We can start and stop events with a Windows command lines of
the form:
"c:\program files\ AIRStatus\airstatus.exe" Live Beta 1234 3
<item_redacted>
"c:\program files\ AIRStatus\airstatus.exe" Pending Beta
1234 3 <item_redacted>
(where 1234 is the event ID)
Security isn't an issue as the system isn't exposed to the
Internet and is well protected. We installed Apache and PHP on the
box with the airstatus binary and wrote a script to generate
command lines from a simple web interface. If I set it to display
the last command generated on the web page and if I manually type
it into a command line airstatus functions as expected. If I use
the PHP "system( )" function to execute the airstatus command then
airstatus never returns (it definitely starts as I can see it in
the process section of the task manager) and Apache waits ages then
returns a 500 server error.
I would be very grateful for any suggestions as to what might
be going wrong.
Thanks,
Paul.

Hi Warren, I have no solution, but posting should bring this topic back to the top where somebody that does know can possibly see it again.

Similar Messages

  • Everytime i open a safe website I get this message ""ai-13.php" is a script application downloaded from the Internet. Are you sure you want to open it?" How do I get this to stop?

    Question
    Everytime I open a safe website I get this message "“ai-13.php” is a script application downloaded from the Internet. Are you sure you want to open it?" How do I get this to stop?

    WZZZ,
    Thanks, the following command (ran as root) worked for me!
    xattr -d com.apple.quarantine /Applications/Google\ Chrome.app
    Chrome is set to start on launch, so I'd get the following warning on every start/restart
    Google Chrome” is an application downloaded from the Internet. Are you sure you want to open it?

  • Dynamic xml from php script throws error: #1088 or #1085

    Hi,
    I'm importing xml formatted data from mysql via php script:
    [code]
    <?php
    require_once('require.php');
    $result = mysql_query("SELECT * FROM `songs`");
    if($result)
        header ("Content-Type: text/xml");
        echo"<?xml version=\"1.0\" encoding=\"utf-8\"?>\n";
        echo"<songComments>\n";
        while ($row = mysql_fetch_array($result))
            echo"<testimonial>\n";
            echo"<songComment>" . $row['title'] . "</songComment>\n";
            echo"</testimonial>\n";
        echo"</songComments>\n";
    ?>
    [/code]
    In one of my flash projects it's working just fine. But in the new one that I just sterted not anymore. And i have no idea why. I get this errors:
    TypeError: Error #1085: The element type "songComments\n" must be terminated by the matching end-tag "</songComments\n>".
    or:
    TypeError: Error #1088: The markup in the document following the root element must be well-formed.
    When I output that php into txt file and loaded in flash everything is fine, but not from php script directly.
    Could it have something to do with that I'm testing that mysql locally on my computer using WAMP ? Previous project got all data from mysql from server.

    Ho could I trace what flash sees?
    var url:URLLoader = new URLLoader();
    url.addEventListener(Event.COMPLETE, xmlLoaded);
    url.load(new URLRequest("getDataFromDB.php"));
    private function xmlLoaded(event:Event):void {
                myXML = new XML(event.target.data);
                trace(myXML);
    I  got rid of that \n everywhere or move them around  and it's still the same error 1088 or 1085

  • Calling startrfc.exe from within a vbs script

    Hello, can someone help me please
    I am trying to process xml idocs into SAP on a Windows 2008 server. I have written a vbs script to process the file and am trying to call STARTRFC.EXE from within the vbs script. However I keep getting an error that it cannot open the file. The code is shown below. I have changed the server name and gateway and user/passwd for security. I'm passing the filename as a variable (str_expfile) but it does not seem to be able to extract the actual file name from the variable. I know from past experience that you can pass it variables if its running on a unix box and in a shell. But for some reason it not decipering the variable name in the vbs script
    Set objShell = CreateObject("Wscript.Shell")
    str_startrfc = "D:\usr\sap\SID\SYS\exe\uc\NTAMD64\startrfc.exe -d SID -3 -h hostname -s 00 -g hostname -x sapgw00 -u user -p passwd -c 100 -l EN -t -F EDI_DATA_INCOMING -E PORT=MYPORT -E PATHNAME=str_expfile"
    objShell.Run str_startrfc, ,True
    The error I'm getting is shown below:
    ERROR file opened at 20110510 134219 GMT Daylight Time, SAP-REL 700,0,278 RFC-VER 3 1200864 MT-SL
    T:2584 Error in program 'startrfc': ======> Error at OPEN 'str_expfile' (check file)
    T:2584 Error in program 'startrfc': <* RfcReceive [1] : returns 3:RFC_SYS_EXCEPTION
    T:2584 Error in program 'startrfc': <* RfcCallReceive [1] : returns 3:RFC_SYS_EXCEPTION
    Thanks
    Regards
    Steve

    Hi Markus
    Unfortunately I can't do that because I need it to process hundreds of files one after another and I would have to hard code the file path each time. That's why I need it automated.
    Can startrfc.exe not take a variable for the pathname in a vb script? It works fine in a unix shell. We are migrating from unix to windows and I need to convert all my unix scripts into vb scripts.
    I notice there is a nother rfc type program available, can I use rfcexec.exe instead of startrfc.exe and would it take variables?
    Thanks
    Regards
    Steve

  • Exporting Text data from PHP to Oracle CLOB data (Carriage return - issue)

    This is my original text content in PHP - Data type - Longtext
    SECTION - 1
    This a test description.This a test description.
    This a test description.This a test description.
    This a test description. This a test description.I exported the above content from PHP as a SQL script file (insert into.. ) - export.sql [ insert into table_name (id, text_content) values (1, '') ]
    while exporting data from PHP table into export file.. it replaced the "Carriage return" with "\r\n\r\n" in the insert statement for text_content column
    When I run this INSERT statement in Oracle (for longtext, I have created a CLOB column in Oracle), the following text_content data is inserted into CLOB column in Oracle.
    SECTION - 2
    This a test description.This a test description.\r\n\r\nThis a test description.This a
    test description.\r\n\r\nThis a test description.This a test description.Now I have created a item named P1_TEXT_CONTENT of type TEXTAREA and try to fetch the CLOB data into this page item.
    BUT textarea displays the entire content including "\r\n\r\n" as mentioned in SECTION - 2
    I want to display the content in textarea (item - P1_TEXT_CONTENT) without "\r\n\r\n" same as the original content with "Carriage return" as mentioned in SECTION - 1
    What are the options we have?
    Thanks,
    Deepak

    DeepakJ wrote:
    I want to display the content in textarea (item - P1_TEXT_CONTENT) without "\r\n\r\n" same as the original content with "Carriage return" as mentioned in SECTION - 1
    What are the options we have?Run an update on the Oracle table following the inserts to replace the escaped CR/LFs with real ones:
    update foo
    set clob_column = replace(clob_column, '\r\n', chr(13) || chr(10));You might want to experiment to see which characters are actually necessary. As an OS X/Linux user I'd probably just use a single LF chr(10).

  • From PHP to JSP for a search-responder.php

    I have been asked to use the "search-as-you-type" solution offered up by Google at [http://code.google.com/p/search-as-you-type/|http://code.google.com/p/search-as-you-type/]. The documentation offered by Google is pretty much straight forward but of course the actual piece of code that gets the data is built in PHP and my client needs this to be used on a page serving up JSP.
    I am learning JSP and moving from PHP and ASP and learning quickly but not quick enough to finish the project.
    Would anyone be able and willing to help me convert the functions in the following PHP code into JSP?
    Thanks in advance to anyone who takes the time to help me.
    <?php
    * Copyright (C) 2006 Google Inc.
    * Licensed under the Apache License, Version 2.0 (the "License");
    * you may not use this file except in compliance with the License.
    * You may obtain a copy of the License at
    *      http://www.apache.org/licenses/LICENSE-2.0
    * Unless required by applicable law or agreed to in writing, software
    * distributed under the License is distributed on an "AS IS" BASIS,
    * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    * See the License for the specific language governing permissions and
    * limitations under the License.
    * Search-as-you-type sample Ajax responder
      // Adding a cache control so that browsers won't cache Ajax requests
      header("Cache-Control: no-cache");
      header("Content-Type: text/html; charset=UTF-8");
       * Get the sample data from the text file.
       * @return array Loaded data
      function GetData() {
        $data = array();
        $file = file("test-data.txt");
        foreach($file as $record) {
          $record = explode("|", trim($record));
          if (count($record) == 4) { // Ignore invalid lines
            $data[] = $record;
        return $data;
       * Get the results based on user's query.
       * @param string $query Query
       * @param array $data Sample data
       * @return array Result array
      function GetResults($query, $data) {
        $results = array();
        $queryLength = strlen($query);
        foreach ($data as $record) {
          if (substr(strtolower($record[0]), 0, $queryLength) == $query) {
            $result = array();
            $result['name'] = $record[0];
            $result['type'] = $record[1];
            $result['content'] = $record[2];
            $result['moreDetailsUrl'] = $record[3];
            $result['style'] =
              ($query == strtolower($record[0])) ? 'expanded' : 'normal';
            $results[] = $result;
        return $results;
      // Get the data and the query
      $data = GetData();
      $query = strtolower(ltrim($_GET['query']));
      // Build response
      $response = array();
      $response['query'] = $query;
      $response['results'] = GetResults($query, $data);
      if (count($response['results']) == 1) {
        $response['autocompletedQuery'] = $response['results'][0]['name'];
      // Output response
      echo "searchAsYouType.handleAjaxResponse(";
      echo json_encode($response);
      echo ");";
    ?>

    Thanks for your comment Gimbal2.
    I have already been thoroughly surprised at how different JSP is from PHP. I am finding quite hard to wrap my head around the whole process to be honest.
    I am beginning to see that JSP and PHP work in a totally different way than each other.
    I am not technically trying to translate or convert the PHP file as much as I am trying to build a file in JSP that does the same functions. The main functions of the PHP script are commented by Google and should be easily enough re-written in JSP in order to produce similar results.
    Since the output needs to be in a JSON format when passed to the .js file you'd think this would be better suited as a .jsp file as well or even a JAVA Applet, Servlet or even a bean. Since the whole site is already built in JSP for a multitude of other functions it seems likely that adding on more to read data from a source file and send it back to the .JS would be straight forward, but I could be wrong. But again I am not familiar enough with JAVA or JSP (yet) to make heads or tails of this.
    1. // Adding a cache control so that browsers won't cache Ajax requests
    2. * Get the sample data from the text file. @return array Loaded data
    3. * Get the results based on user's query.
    * @param string $query Query
    * @param array $data Sample data
    * @return array Result array
    4. // Get the data and the query
    5. // Build response
    6. // Output response

  • Passing params from SQL file to Shell Script and then from Shell to SQL Fil

    Afternoon guys,
    Have a fun question for all you gurus in shell scripting out there. I have a shell script that is calling 2
    different SQL programs. My objective is to pass a variable called request_number from one sql program
    to the shell script and then from the shell script back to another SQL program. I will explain why I
    need this to happen.
    Here is what the shell script looks like which calls sql programs student_load_a.sql and
    student_load_b.sql. Student_load_a.sql basically creates the control file (.ctl) which is needed for the
    SQL*Loader and then student_load_b.sql reads the table that was just loaded and does the main
    processing. My main objective here is to be passing the request_number which is being generated
    using an Oracle Sequence in student_load_a.sql and using this generated number in my main
    processing in student_load_b.sql to select records from the table based on request_number.
    Any ideas ?Any help or recommendations is welcome and appreciated.
    *1. Shell Script*
    # Accept system input parameters
    p_user_id=$1
    p_job_id=$2
    # Create control files for sqlload
    sqlplus.exe -s $p_user_id @$STUDENT_PATH/student_load_a.sql $p_job_id
    exit_status=$?
    # Do sqlloads
    sdesqlldr.exe userid=$p_user_id control=student_load-$p_job_id.ctl \
                                                 log=student_load-$p_job_id.log \
                                                 bad=student_load-$p_job_id.bad
    exit_status=$?
    # Main processing
    # sqlplus.exe -s $p_user_id @$STUDENT_PATH/student_load_b.sql $p_user_id $p_job_id $p_request_number
    sqlplus.exe -s $p_user_id @$STUDENT_PATH/student_load_b.sql $p_user_id $p_job_id
    exit_status=$?
    exit 0*2. student_load_a.sql (Would like to pass back the Sequence Number back to shell script and then use in student_load_b.sql*
    -- Accept system input parameters
    define p_job_id = &1
    spool student_load-$p_job_id.ctl
    select
    'append into table TMP_STUDENT_LOAD
    FIELDS TERMINATED BY '','' optionally enclosed by ''"''
    trailing nullcols
    (request_number CONSTANT ' || '''' || request_number_seq.nextval || ''',
    student_id)'
    from   dual
    spool off;
    exit 0;
    {code}
    *3. student_load_b.sql (This is a big file so I am only adding code that is relevant for the SQL)*
    {code}
    declare
      v_request_number    number(6);
      v_student_id                  number(7);
      cursor cur_student_load is
        select  student_id
        from   TMP_STUDENT_LOAD
        where  request_number = v_request_number
        order by 1;
    begin
        v_user_id := '&1';
        v_job_id := &2;
        -- This is the variable I would like to be be passing from shell script to student_load_b.sql
        -- v_request_number = '&3';
         open  cur_student_load;
         fetch cur_student_load into v_student_id;
          exit when cur_student_load%notfound;
          .... more logic of if then else in here
         close cur_student_load;
    end;
    {code}
    Edited by: RDonASnowyDay on Jan 29, 2010 4:03 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    How come you are mixing WinDoze script (*.exe) with Unix?
    You are aware that you will be passing the password along with the user id to the second sql script?
    I will assume Unix ksh:
    # Accept system input parameters
    p_user_id=$1
    p_job_id=$2
    # Create control files for sqlload
    p_seqno=`sqlplus -s $p_user_id @$STUDENT_PATH/student_load_a.sql $p_job_id`
    exit_status=$?
    # Do sqlloads
    sqlldr userid=$p_user_id control=student_load-$p_job_id.ctl \
           log=student_load-$p_job_id.log \
           bad=student_load-$p_job_id.bad
    exit_status=$?
    # Main processing
    # sqlplus -s $p_user_id @$STUDENT_PATH/student_load_b.sql $p_user_id $p_job_id $p_request_number
    sqlplus -s $p_user_id @$STUDENT_PATH/student_load_b.sql \
               $p_user_id $p_job_id $p_seqno
    exit_status=$?
    exit 0And the first sql script would look like this:
    -- student_load_a.sql
    -- Accept system input parameters
    set echo off pages 0 feed off lin 80 trims on ver off
    def p_job_id = &1
    col seqno NEW_VALUE seqno
    select request_number_seq.nextval seqno from dual;
    set term off
    spool student_load-$p_job_id.ctl
    select
    'append into table TMP_STUDENT_LOAD
    FIELDS TERMINATED BY '','' optionally enclosed by ''"''
    trailing nullcols
    (request_number CONSTANT ''&&seqno'',
    student_id)'
    from   dual
    spool off;
    exit 0;
    {code}
    :p                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Tree dataProvider from PHP

    Hello all!
    I see in the web many many many example how to populate a
    Tree, but, i cant find no example how to populate a Tree FROM PHP.
    I am using HTTPService and know how to use it but, i don't
    know the structure of nodes.
    In PHP file, i am doing this:
    echo "<node label='root'><node label='NODE
    1'><node label='child 1 of NODE 1' /><node label='child
    2 of NODE 1' /></node></node>";
    and, in the Tree, I am putting:
    dataProvider="{myHttpService.lastResult}"
    but, nothing happens, no result in Tree!
    What is the correct way?

    I've got my list populating correctly from XML generated by
    php but any time I click on a folder in the tree list I get an
    error:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute" creationComplete="dirListSvc.send();">
    <mx:Script>
    <![CDATA[
    import mx.controls.Alert;
    import mx.rpc.events.FaultEvent;
    import mx.rpc.events.ResultEvent;
    [Bindable]
    private var dirList:XML;
    [Bindable]
    public var selectedNode:XML;
    // Event handler for the Tree control change event.
    public function treeChanged(event:Event):void {
    selectedNode=Tree(event.target).selectedItem as XML;
    private function
    directoryResultHandler(event:ResultEvent):void
    dirList = event.result as XML;
    // Fault handler - displays the error
    private function
    directoryFaultHandler(event:FaultEvent):void
    Alert.show(event.fault.message, "Could not load dirList");
    ]]>
    </mx:Script>
    <mx:HTTPService
    id="dirListSvc"
    url="
    http://localhost/iqAssets/scripts/directory.php"
    resultFormat="e4x"
    result="directoryResultHandler(event);"
    fault="directoryFaultHandler(event);"
    />
    <mx:HDividedBox width="100%" height="100%">
    <mx:Tree x="10" y="10" labelField="@label"
    dataProvider="{dirList}" width="250" height="530"
    change="treeChanged(event)"/>
    <mx:Panel height="100%" width="50%"
    title="{selectedNode.@label}">
    <mx:Text text="{selectedNode.@path}" />
    <mx:Image source="{selectedNode.@path}" />
    </mx:Panel>
    </mx:HDividedBox>
    </mx:Application>

  • Recieving PDF's from PHP

    Hello, I want to instruct a server-side PHP script to
    generate a dynamic PDF using variables I submit from Flash.
    I then want to download that PDF back into my Flash
    application.
    Can I use "Loader" or "URLLoader" ?
    If so, how do I structure my code to render the PDF within
    Flash when it comes back from PHP ?
    ...or do I have to use Flash Remoting or other means to
    achieve my goal ?
    Thanks for any help.

    thanks, but is there a way to bring the PDF into Flash, so I
    can manipulate it's position etc. ?
    Flash remoting perhaps ?
    Thanks for any help.

  • Calling function from PHP fails..!

    Hi everybody.
    I'm developing a web application using oracle Portal and have made a 'dynamic' page from the Portal. In this page I have a form which execute a php script.
    In the php script I want to get the logged in userid.
    So I try to execute the following code in my php script:
    $plsql = "begin :userid := portal.wwsto_api_session.load_session('MY_DOMAIIN','SUBDOMAIN').get_attribute_as_varchar2('USERNAME'); end;";
    $stmt = OCIParse($conn,$plsql);
    OCIBindByName($stmt, ":userid", $user);
    OCIExecute($stmt);
    I have already set the session data in the dynamic page and have also tested that the session data is working.
    But, in the php script I get the following error messages:
    Warning: ociexecute(): OCIStmtExecute: ORA-06510.....
    ORA-06512: ved "PORTAL.WWCTX_SSO", line 1744 ORA-06510: PL/SQL: ....
    The error message refer to the OCIExecute(..) statement.
    I'm running PHP version 4.3.9 and Oracle 10g on windows 2003 server.
    Hope you can give me some hints!
    sh75.

    Well, the user is already logged in, and I assume that the session should still be valid even though the user goes to a new URL (within the same domain). Dont you agree?
    Steps in my application is as follows:
    1. Set session data in dynamic page
    2. User press submit bottom which call php-script
    3. php script tries to fetch session data set in (1) and does insert in a table
    4. php script redirect back to dynamic page (same as (1) )
    I thought this was trivial.....
    sh75

  • Webserver 7.0.9 make SOAP calls from PHP

    Hi,
    Making SOAP calls from PHP code uses opensll lib.
    On a windows server you should use : extension=php_openssl.dll in the php.ini file
    I tested it with a Ubuntu server using apache 2.2 , soap call is working from php code
    On Solaris 10 using iplanet 7.0.9 we have the following error : (see below)
    Does someone knows how to enable ?
    Thx , Ivan
    [27/Dec/2010:12:16:04] failure ( 7143): for host 10.66.10.46 trying to GET /ciscowebdialer/dialer.php?line=4012&destination=4014&deviceName=SEP002699EDDAE2, responder-fastcgi reports: FCGI1080: application error: PHP Notice: SoapClient::SoapClient() [function.SoapClient-SoapClient]: Unable to find the wrapper &quot;https&quot; - did you forget to enable it when you configured PHP? in /opt/oracle/webserver7/https-sol8/web-app/sol8/ciscowebdialer/dialer.php on line 6
    PHP Warning: SoapClient::SoapClient() [function.SoapClient-SoapClient]: I/O warning : failed to load external entity &quot;https://10.32.122.254:8443/webdialer/services/WebdialerSoapService?wsdl&quot; in /opt/oracle/webserver7/https-sol8/web-app/sol8/ciscowebdialer/dialer.php on line 6
    PHP Fatal error: SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://10.32.122.254:8443/webdialer/services/WebdialerSoapService?wsdl' in /opt/oracle/webserver7/https-sol8/web-app/sol8/ciscowebdialer/dialer.php on line 6
    PHP Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://10.32.122.254:8443/webdialer/services/WebdialerSoapService?wsdl' in /opt/oracle/webserver7/https-sol8/web-app/sol8/ciscowebdialer/dialer.php:6
    Stack trace:
    #0 /opt/oracle/webserver7/https-sol8/web-app/sol8/ciscowebdialer/dialer.php(6): SoapClient->SoapClient('https://10.32.1...', Array)
    #1 /opt/oracle/webserver7/https-sol8/web-app/sol8/ciscowebdialer/dialer.php(31): MakeCall('4012', '4014', 'SEP002699EDDAE2')
    #2 {main}
    thrown in /opt/oracle/webserver7/https-sol8/web-app/sol8/ciscowebdialer/dialer.php on line 6

    did you compile php by yourselves ? if yes, did you compile it with openssl support ? pl. make sure it is the case by running a simple script echoing phpinfo() .
    - sriram

  • Creating a array from variables passed from php

    I have passed variables from PHP to flash successfully but
    now need to firstly make them into an array. A next button and
    previous button has to trigger the step through the array.
    Any ideas?

    I have a PHP script and I get flash to load the variables
    from it. The code is as follows. Taken out the connection to DB for
    security.
    <?php
    $hostname_conn = "";
    $database_conn = "";
    $username_conn = "";
    $password_conn = "";
    // establish a SQL connection to the host - host, user, pass
    $conn = mysql_pconnect($hostname_conn, $username_conn,
    $password_conn) or trigger_error("The site database appears unable
    to provide a connection. Please contact support.
    ".mysql_error(),E_USER_ERROR); // or die("The site database appears
    unable to provide a SQL connection. Please contact support.");
    // connect to the right DB (there may be multiple db's on the
    server) dbName
    mysql_select_db($database_conn, $conn) or die("The site
    database appears to be unavailable. Please contact support.");
    $qCheck = "SELECT * FROM pics";
    $rsCheck = mysql_query($qCheck) or die("Check Failed :
    ".mysql_error());
    $cCheck = mysql_num_rows($rsCheck);?>
    &img=<?php
    while($row= mysql_fetch_assoc($rsCheck))
    print($row["img"]);
    ?>

  • After effects films automatic build from php databank

    hello,
    do everyone have a idea to make many films automaticly from an folder with many article-pictures and a text from php databank?!
    for example,
    i have many hundreds article and article-pictures and i would have for youtube for everyone of the article a single film in form of a diashow.
    one film have i build with after effects, but how can i now change the pictures and text automaticly to make films
    for the other articles?!
    thanks for your answers
    greets montihh

    You can write a script or search for one that automates slideshows from an image foler. You can also write a script or search for one that turns comma delimited text files into text layers. I use a script to create lower 1/3's .
    You can't directly go from a PHP page to text or image layers in After Effects, but you can go, very easily with the right script, from a file folder full of stills to and a text file with your copy to an animated slide show with titles. I'm not sure that it would be any more interesting than a slideshow made with iPhoto or any of the web based or Windows versions of auto slide show creation tools.

  • How to populate DataGird with data returned from php page?

    Hi, I'm new in Flex, I try to populate DataGrid with data from PHP, My code is
    <mx:HTTPService 
    id="personRequest" result="getPerson(event)" url=http://localhost/searchPerson.php useProxy="false" method="POST" showBusyCursor="true" resultFormat="e4x">
    </ mx:HTTPService>
    <mx:DataGrid 
    id="searchResult" dataProvider="{???what to paste here???}" y="30">
    </mx:DataGrid>
    private  
    function getPerson(evt:ResultEvent):void { var res:XMLList = evt.result..dane as XMLList;searchResults =
    new XMLListCollection(res); 
    output from PHP
    <person>
    <dane>
    <name>ABC</name>
    <street>XLXXLX</street>
    </dane>
    <dane>
    <name>DEF</name>
    <street>YAYAYAY</street>
    </dane>
    </person>
    If I set the dataProvider as "searchResults" it doesn't work. I probably have to set as dataprovider any ArrayCollection , but I don't know how to convert my XMLListCollection to it.
    Could anyone help me populate Datagrid with
    name | streer
    ABC, XLXXLX
    DEF, YAYAYAY
    Best Regards,
    Mariusz

    Thanks for your reply, but I'm afraid it doesn't work :-( Could you browse my code and check what I'm doing wrong???
    full mxml code:
    <?xml version="1.0" encoding="utf-8"?><mx:Application 
    xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" applicationComplete="personRequest.send()">
    <mx:Script><![CDATA[
         import mx.rpc.events.ResultEvent; 
         [Bindable]
         public var searchResultsXML:XML;  
         private  function getPerson(evt:ResultEvent):void 
          {          searchResultsXML = (evt.result
    as XML);
              trace(searchResultsXML);     }
    ]]></mx:Script>  
    <mx:HTTPService 
    id="personRequest" result="getPerson(event)" url=http://localhost/searchPerson.php useProxy="false"
    method="POST" showBusyCursor="true" resultFormat="e4x"></mx:HTTPService>
    <mx:DataGrid  id="searchResult" dataProvider="{searchResultsXML.dane}"></mx:DataGrid>
     </mx:Application> 
    trace statement returns:
    <person>
    <dane>
    <id>1</id>
    <nazwisko>Topczewski</nazwisko>
    <imie>Mariusz</imie>
    <imie2/>
    <miejscowosc>Bia?ystok</miejscowosc>
    <ulica>Nowogródzka</ulica>
    <dom>7B</dom>
    <lokal>25</lokal>
    </dane>
    <dane>
    <id>1</id>
    <nazwisko>Topczewski</nazwisko>
    <imie>Mariusz</imie>
    <imie2/>
    <miejscowosc>Bia?ystok</miejscowosc>
    <ulica>Sybiraków</ulica>
    <dom>15</dom>
    <lokal>27</lokal>
    </dane>
    </person>

  • Passing Variables From PHP to Java Applet ?

    I took one page of a project which was written entirely in PHP, and translated it into a JAVA applet, so as to support better GUI funcitonalities (immediate calculation and display of Time/Billing data, on LostFocus events...stuff like this).
    In any case - I need to pass four variables from the php scripts, to the Java Applet. I had initially, written them out from the php scripts to an html file on the server, and read them in from the applet doing something like this:
    .     this.m_TheURL = new URL(url);
         InputStream in = m_TheURL.openStream();
         DataInputStream data = new DataInputStream(new BufferedInputStream(in));
         while ((unparsed = data.readLine()) != null)
    // parsed the strings here and got my variables
    The URL I read from, was the same file I wrote out to from the PHP scripts. This worked fine - until I told my boss about it, and realised that this wasnt going to work - because the applet updates a MySql database, and issues regarding multiple users became apparent.
    The Applet has to get these variables from the previous PHP page, the same way it had - before my applet was an applet, and it was just another PHP script page.
    The PHP pages are passing variabes using CGI, and a PostGet function. My applet has to do the same thing.
    Anybody know how I can do this - safely ?

    Updated some code... in case people wanted to use it....
    <?php
    class JavaApplet {
         var $param;
         function setParam($name, $value) {
              $temp1 =  array("name" => $name, "value" => $value);
              $this->param = array_merge($this->param, $temp1);
         function delParam($name) {
             foreach ($this->param as $key => $value) {
                  if ($key = $name) {
                       unset( $this->param["$id"]);
         function echo_html() {
              echo '<applet code=TimeEntry.class width=600 height=90 >';
              foreach ($this->param as $value) {
                   foreach ($value as $key => $value2) {
                        echo '<param name="' . $key . '" value="' . $value2 . '">';
              echo '</applet>';
    $applet = &New JavaApplet;
    $applet->setParam("name1", "value");
    $applet->setParam("name2", "value");
    $applet->setParam("name3", "value");
    $applet->echo_html();
    ?>

Maybe you are looking for

  • How can I see my notes on my computer, but not through the projector?

    How can I see my presenter notes on my computer, but not projector them on the screen?

  • ML up-to-date claim nightmare

    I wanted to share with you guys my frustration and sheer displeasure with the ML up-to date program and the terrible experience I've had in dealing with Apple. On June 16th 2012 I paid for a 13" MPB from Best Buy using the the store pickup option fro

  • Question which is metal to use in the ipod (the back)

    which is metal to use in the ipod nano (the back) sorry i speak french.....

  • Running flash on gpu?

    Hi there, Is it possible to get flash to run on the graphics card? I currently can't play online flash videos like youtube at high res as it maxes out my puny processor, fps drops to around 2. A completely buffered flash video at full screen will jus

  • Using Open GL/ Advanced Drawing with HDR

    Hey all - I've just switched to using Vista and now have a new vid card (GTX285) so I'm using the OpenGL stuff for the first time. I can't get my head around how to use the Debugging section to get accurate results with linear data images. I'm lookin