Return from a PHP Script

Hi,
I'm trying to get PHP and Flex to work with one another. I
know that my program is getting the result, because if I change the
XML to be invalid, my program will throw an error that says just
that. However... I can't use the data that I am getting back from
the PHP script. I have a the [httpService].lastResult.[blah].[blah]
bound to a datagrid, but no matter what I try it isn't showing up.
I've tried calling the httpService send() on both creationComplete
and a button click.
Any ideas what my problem could be? The documentation isn't
helping me any :(

Please post your code for your dataGrid and your PHP or a
sample of the returned XML. Without code, it is hard to say where
the problem is, but it seems like the issue is in your
[httpService].lastResult.[blah].[blah] syntax. It helps to set a
result event for PHP calls that you then bind to your dataGrid
rather than using the lastResult method which is hard to debug:
private function phpResult(evt:ResultEvent):void {
myDataGrid.dataProvider = evt.result;
But post your code and I'm sure we can figure out the
problem.
Vygo

Similar Messages

  • Populate fields from a php script

    Hi,
    I am trying to populate text fields from a PHP script right into Acrobat Reader.
    Lets not talk about database just yet, I just want to know how to take a variable in PHP right to the livecycle designer form.
    I have seen many things like submitform(), using http posts, etc but I cant get it to work.
    Thank you in advance.

    If you want to fill the LiveCycle Designer form, then you need to render it with the datafile.
    The datafile can be an XML file or a webservice or Database.
    You cannot directly fill the PDF from a PHP script. What you can do is, have a LiveCycle Process created in Workbench and then invoke the Process from PHP application by passing the information. The Livecycle process will merge the data with the template and return the PDF to the client application.
    There is an other feature in Acrobat PRO that you can import an XML file directly into a PDF but that is a manual effort. You can not link that to a PHP Script.
    Thanks
    Srini

  • Installing an AIR application generated from a PHP script using a badge

    I have written a PHP script to return a file with the Content-Type header set to application/vnd.adobe.air-application-installer-package+zip to simulate a response that looks like an AIR file.  The Content-Length and Content-Disposition headers are also being sent.  I am then writing the bytes of the file to the output.  This appears to work in the browser, as the file downloads and can be installed.  However, when the badge tries to use the URL, I get a Stream 2032 error.  Does the AIR badge not allow a URL without an .air extension, even if the response is in the correct format for an AIR file?  If this is allowed, are there other headers that need to be set for this to work?
    Thanks,
    Paul

    I figured it out.  The AIR installer was stripping out my query parameters.  I made the URL use slashes for the parameters with a rewrite instead of ? and & it worked.

  • Flex return value form php script

    if I have a php webservice function like this
    public function loginCheck($myusername, $mypassword) {
        return $rec_count;
    and and Declartion like this
        <accountloginservice:AccountloginService id="accountloginService"
                                                 fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)"
                                                 showBusyCursor="true"
        <s:CallResponder id="loginCheckResult" />
    and a button
        <s:Button id="loginButton" label="Log In" click="loginButton_clickHandler(event)"/>
    and a function trigger by a button like this
    protected function loginButton_clickHandler(event:MouseEvent):void {
                loginCheckResult.token = accountloginService.loginCheck(usernameLogin.text,passworkLogin.text) ;
                var check:int = parseInt(loginCheckResult.lastResult);
                if (check == 1){
    why the check variable always is NULL, and how to get the value of the php script???

    Please post your code for your dataGrid and your PHP or a
    sample of the returned XML. Without code, it is hard to say where
    the problem is, but it seems like the issue is in your
    [httpService].lastResult.[blah].[blah] syntax. It helps to set a
    result event for PHP calls that you then bind to your dataGrid
    rather than using the lastResult method which is hard to debug:
    private function phpResult(evt:ResultEvent):void {
    myDataGrid.dataProvider = evt.result;
    But post your code and I'm sure we can figure out the
    problem.
    Vygo

  • Retrieving a session variable from a php script and putting it in an applet

    I have a chat applet and i'm trying to have a session variable in one my php scripts be setted onto the user area of my chat. Would it start out by doing this?
    <object codetype="application/java"
    code = "ClientApplet.class"
    width = "300"
    height = "400"
    classid = "the name of the session variable">
    </object>

    No.
    Use the parameter tags.

  • Preventing PHP script from loading the actual page

    In my ActionScript 2 code it send the data to a php script but then loads the actual script into the browser which just shows a blank page. I don't want to load the processing script into the browser at all. How do I prevent this?
    Here's my actionscript:
    var submitListener:Object = new Object();
    submitListener.click = function(evt:Object) {
    fname2 = fname.text;
    lname2 = lname.text;
    var send_lv:LoadVars = new LoadVars();
    send_lv.fname = fname.text;
    send_lv.lname = lname.text;
    send_lv.email = email.text;
    send_lv.dept = dept.text;
    send_lv.campus = campus.text;
    send_lv.uaid = uaid.text;
    send_lv.phone = phone.text;
    send_lv.send("http://distance.uaf.edu/ferpa/process.php", "POST");
    gotoAndStop("certificate");
    submit_button.addEventListener("click", submitListener);

    create a 2nd lv instance, use the sendAndLoad() method applied to send_lv and use your 2nd lv instance as the sendAndLoad() 2nd parameter:
    var receiveLV:LoadVars=new LoadVars()
    send_lv.sendAndLoad("xxxx.php",receiveLV,"POST");
    p.s.  if you want to parse the return from your php script, use the onLoad() or onData() methods applied to receiveLV.

  • Calling stored procedure from php script.

    I have the following stored procedure in Oracle 8:
    CREATE OR REPLACE procedure kunde_create
    (iname1 in varchar2,
    iname2 in varchar2,
    iname3 in varchar2,
    ianrede in number,
    istrasse in varchar2,
    iland varchar2,
    iplz in varchar2,
    iort in varchar2,
    iortsteil in varchar2,
    itelefon in varchar2,
    iemail in varchar2,
    itelefax in varchar2,
    imobil in varchar2,
    ianrufer in varchar2,
    izusinfo in varchar2,
    izusatz2 in varchar2,
    okdnr out varchar2)
    is
    vkndnr number;
    vadrnr number;
    vkdnr varchar2(15);
    ikugru constant number:=4;
    minkdnr constant varchar2(15):='44000000';
    maxkdnr constant varchar2(15):='50000000';
    begin
    ..... SOME CODE ....
    okdnr:='something_to_output';
    commit;
    end kunde_create;
    I am trying to call this SP from a php script, in this way:
    $connection = ora_logon("username@db", "password");
    $cursor = ora_open($connection);
    ora_commitoff($connection);
    $cu=ora_parse($cursor, "begin KW.kunde_create ( :Sta_nameD, :Sta_name2D, :Sta_kugruD, :ianredeD, :Sta_straD, :Sta_landD, :Sta_plzD, :Sta_ortD, :Sta_ortsteilD, :Sta_telD, :Sta_mailD, :Sta_faxD, :Sta_tel2D, :Sta_anruD, :Sta_zusD, :Sta_zus2D ,:okdnr); end;");
    ora_bind($cursor, ":Sta_nameD", $Sta_nameD, 32, 1);
    ora_bind($cursor, ":Sta_name2D", $Sta_name2D, 32, 1);
    ora_bind($cursor, ":ianredeD", $ianredeD, 32, 1);
    ora_bind($cursor, ":Sta_straD", $Sta_straD, 32, 1);
    ora_bind($cursor, ":Sta_landD", $Sta_landD, 32, 1);
    ora_bind($cursor, ":Sta_plzD", $Sta_plzD, 32, 1);
    ora_bind($cursor, ":Sta_ortD", $Sta_ortD, 32, 1);
    ora_bind($cursor, ":Sta_ortsteilD", $Sta_ortsteilD, 32, 1);
    ora_bind($cursor, ":Sta_telD", $Sta_telD, 32, 1);
    ora_bind($cursor, ":Sta_mailD", $Sta_mailD, 32, 1);
    ora_bind($cursor, ":Sta_faxD", $Sta_faxD, 32, 1);
    ora_bind($cursor, ":Sta_tel2D", $Sta_tel2D, 32, 1);
    ora_bind($cursor, ":Sta_anruD", $Sta_anruD, 32, 1);
    ora_bind($cursor, ":Sta_zusD", $Sta_zusD, 32, 1);
    ora_bind($cursor, ":Sta_zus2D", $Sta_zus2D, 32, 1);
    ora_bind($cursor, ":okdnr", $okdnr, 32, 2);
    ora_exec($cursor); //Line 93
    This code brings me back this error:
    Warning: Can't find variable for parameter in /www/vaillant/htdocs/www_tisweb/html/php/testdb/connect.php on line 93
    I tried nearlly everything, but it doesnt work :(
    Can anybody help me please.
    Thanx in advance,
    Ahmed Adaileh

    I had to make a few modifications to get your example to work. The
    biggest change was to the ora_bind syntax. I also found I had to
    define a variable to hold the OUT value before doing the ora_exec.
    Otherwise I got the error you saw. I'm not sure why defining it first
    is necessary. I didn't dig deeply into PHP's oracle.c code.
    My final script is below. It displays "okdnr is something_to_output".
    I tested using PHP 4.3.3 against Oracle 9.2.
    The best general suggestion I can make is to use PHP's oci8 driver
    unless you need to be compatible with existing PHP code. There is an
    example of using OUT binds in oci8 to call a stored procedure at
    PHP and serveroutput
    -- CJ
    <?php
    // Changed connection details to suit my environment
    $connection = ora_logon("scott@MYDB", "tiger");
    $cursor = ora_open($connection);
    ora_commitoff($connection);
    // Changed schema to SCOTT to match who I'd created the procedure as
    $cu=ora_parse($cursor, "begin SCOTT.kunde_create ( :Sta_nameD, :Sta_name2D, :Sta_kugruD, :ianredeD, :Sta_straD, :Sta_landD, :Sta_plzD, :Sta_ortD, :Sta_ortsteilD, :Sta_telD, :Sta_mailD, :Sta_faxD, :Sta_tel2D, :Sta_anruD, :Sta_zusD, :Sta_zus2D ,:okdnr); end;");
    // Allocated the IN parameter variables
    $Sta_nameD      = 'a';
    $Sta_name2D     = 'a';
    $ianredeD       = 1;
    $Sta_straD      = 'a';
    $Sta_landD      = 'a';
    $Sta_plzD       = 'a';
    $Sta_ortD       = 'a';
    $Sta_ortsteilD  = 'a';
    $Sta_telD       = 'a';
    $Sta_mailD      = 'a';
    $Sta_faxD       = 'a';
    $Sta_tel2D      = 'a';
    $Sta_anruD      = 'a';
    $Sta_zusD       = 'a';
    $Sta_zus2D      = 'a';
    $Sta_kugruD     = 'a';
    // Changed ora_bind syntax to match
    // http://www.php.net/manual/en/function.ora-bind.php
    ora_bind($cursor, "Sta_nameD", ":Sta_nameD", 32, 1);
    ora_bind($cursor, "Sta_name2D", ":Sta_name2D", 32, 1);
    // Change ianredeD type to 2 to match procedure definition
    ora_bind($cursor, "ianredeD", ":ianredeD", 32, 2);
    ora_bind($cursor, "Sta_straD", ":Sta_straD", 32, 1);
    ora_bind($cursor, "Sta_landD", ":Sta_landD", 32, 1);
    ora_bind($cursor, "Sta_plzD", ":Sta_plzD", 32, 1);
    ora_bind($cursor, "Sta_ortD", ":Sta_ortD", 32, 1);
    ora_bind($cursor, "Sta_ortsteilD", ":Sta_ortsteilD", 32, 1);
    ora_bind($cursor, "Sta_telD", ":Sta_telD", 32, 1);
    ora_bind($cursor, "Sta_mailD", ":Sta_mailD", 32, 1);
    ora_bind($cursor, "Sta_faxD", ":Sta_faxD", 32, 1);
    ora_bind($cursor, "Sta_tel2D", ":Sta_tel2D", 32, 1);
    ora_bind($cursor, "Sta_anruD", ":Sta_anruD", 32, 1);
    ora_bind($cursor, "Sta_zusD", ":Sta_zusD", 32, 1);
    ora_bind($cursor, "Sta_zus2D", ":Sta_zus2D", 32, 1);
    // Changed okdnr type to 1 to match procedure definition
    ora_bind($cursor, "okdnr", ":okdnr", 32, 1);
    // Bound missing parameter
    ora_bind($cursor, "Sta_kugruD", ":Sta_kugruD", 32, 1);
    // Preallocated the output variable - I'm not sure why this is
    // necessary nor what size is needed.
    // When this line is commented out I get:
    //   Warning: Can't find variable for parameter in test01.php on line XX
    $okdnr = "a";
    ora_exec($cursor);
    print "okdnr is $okdnr";
    ?>

  • [SOLVED] PHP script returning a 255 errorcode

    Hello,
    I have a rather strange problem at hand currently.  I am using the stock binary PHP supplied in the repositories with sqlite3, pdo ,pdo-sqlite, and soap modules enabled.  Whenever I try to run a PHP script, however, no output is returned to STDOUT (although there should be) and when I execute it in ScITE, I get an exit code of 255.  The exact same script works on a FreeBSD server that I have access to and did work fine on SUSE linux, and also on this machine until two days ago.  It is intermittent, I briefly fixed the issue by rewriting the ?> brackets and saving the file, then by converting the EOLs from CRLF to LF using dos2unix, however both times the script reverted.  There are other PHP scripts that work fine, and even this one used to work OK.  I also want to mention that I had edited the file using DEV-PHP 2.2 for Windows but while the file was on the BSD server, and on Arch and SUSE.  Thank you all!
    Last edited by ibnpaul (2007-11-07 05:04:33)

    > ~/Development/1&1/Abuse/lgrp_beta  $  ./lgrp.php
    > ~/Development/1&1/Abuse/lgrp_beta  $  php -l lgrp.php
    Errors parsing lgrp.php
    > ~/Development/1&1/Abuse/lgrp_beta  $  ./lgrp
    LogGrep v0.3 -- Help
    Usage: lgrp [-option [parameter]]...
    This above code shows that calling ./lgrp.php does not work, we hit errors when trying to check syntax, and a copy of the script, lgrp, runs fine, as can be seet by the output.  Does anyone have any ideas?  Thanks again!

  • What data to return when submitting form to a php script?

    Been trying to figure this out for few days now. Been googling it up and found nothing.
    I made a form with livecycle designer, put a http submit button to post data to my php script and when I open it up on acrobat reader and try to submit it, I get an error about content-type not being correct etc.
    What kind of content-type should I be returning then? text/plain, text/html and application/pdf with 0 lenght content doesn't seem to cut it. Can I disable whole return-check as I really dont have anything to return? Or can I somehow send an "success/failure" pop-up or something?

    Thank you George,
    I added the line: header('x', TRUE, 204); to my PHP script per your suggestion and found that I get an error thrown "invalid server response" when using acrobat reader or acrobat pro 9. No new window is loaded and the pdf user's experience is not changed (except for the error message).
    Without the added line, I get the error "no input file page data" thrown.  Since I'm not returning anything to the browser that is expected but not wanted.
    In either case, the data fields are captured and saved by my PHP script. It seems that acrobat requires a response from the server otherwise it is not happy. I can't see a way that I can turn off error messages to avoid this.

  • Strange variables retrieved from php script

    Hi,
    I am experiencing a really strange thing when making my flash
    movie communicate with a php script.
    No matter what the animation is doing, just consider the
    following :
    see code below
    ticket is the object which receives the response from server
    which returns
    echo utf8_encode("reponse=ok")
    Each time when I run it , (ticket.retour.toString() != "ok")
    returns true, and the redirection url shows the following :
    http://xx.yy.zz.uu/jeu_avertissement.php?type=PROBLEME_CONNECTION&retour=ok&d=0.02&u=1&k=7 39f4db19af87cc0f2b72a6f63698500
    showing value of my retour var which is equal to .... ok
    I really don't understand! Could anybody explain me what
    happened. It looks like I saw a UFO.
    Thanks in advance,
    Pascal

    Damn it i found :D
    i had to write :
    for (i=0; i<_root.tab_result.liste_lenght; i++) {
    myCB.addItem(_root.tab_result['ville'+i],_root.tab_result['ville'+i]);
    I just hope it could help someone else ahahha
    Bye ;)
    Séb.

  • How does execute PHP Script from SAP?

    I've already installed SAPRFC and run SAP Function from PHP successfully. But failed when tried execute PHP script from SAP (SM59). Anyone can help me for a clear instruction for this problem?
    Thanks

    Hi Max,
    here is the Source:
    [code]
    #!/usr/bin/php -q
    <?php
    // SAPRFC - Server example
    // PHP server function RFC_READ_REPORT
    // Require: CGI version PHP, RFC destination defined in SAP R/3 (SM59)
    // http://saprfc.sourceforge.net
    // Interface definiton for RFC_READ_REPORT
    // (generated by saprfc.php - option Generate PHP)
       $DEF_RFC_READ_REPORT = array (
                             array (
                                     "name"=>"SYSTEM",
                                     "type"=>"EXPORT",
                                     "optional"=>"0",
                                     "def"=> array (
                                             array ("name"=>"","abap"=>"C","len"=>8,"dec"=>0)
                             array (
                                     "name"=>"TRDIR",
                                     "type"=>"EXPORT",
                                     "optional"=>"0",
                                     "def"=> array (
                                             array ("name"=>"NAME","abap"=>"C","len"=>40,"dec"=>0),
                                             array ("name"=>"SQLX","abap"=>"C","len"=>1,"dec"=>0),
                                             array ("name"=>"EDTX","abap"=>"C","len"=>1,"dec"=>0),
                                             array ("name"=>"VARCL","abap"=>"C","len"=>1,"dec"=>0),
                                             array ("name"=>"DBAPL","abap"=>"C","len"=>1,"dec"=>0),
                                             array ("name"=>"DBNA","abap"=>"C","len"=>2,"dec"=>0),
                                             array ("name"=>"CLAS","abap"=>"C","len"=>4,"dec"=>0),
                                             array ("name"=>"TYPE","abap"=>"C","len"=>3,"dec"=>0),
                                             array ("name"=>"OCCURS","abap"=>"C","len"=>1,"dec"=>0),
                                             array ("name"=>"SUBC","abap"=>"C","len"=>1,"dec"=>0),
                                             array ("name"=>"APPL","abap"=>"C","len"=>1,"dec"=>0),
                                             array ("name"=>"SECU","abap"=>"C","len"=>8,"dec"=>0),
                                             array ("name"=>"CNAM","abap"=>"C","len"=>12,"dec"=>0),
                                             array ("name"=>"CDAT","abap"=>"D","len"=>8,"dec"=>0),
                                             array ("name"=>"UNAM","abap"=>"C","len"=>12,"dec"=>0),
                                             array ("name"=>"UDAT","abap"=>"D","len"=>8,"dec"=>0),
                                             array ("name"=>"VERN","abap"=>"C","len"=>6,"dec"=>0),
                                             array ("name"=>"LEVL","abap"=>"C","len"=>4,"dec"=>0),
                                             array ("name"=>"RSTAT","abap"=>"C","len"=>1,"dec"=>0),
                                             array ("name"=>"RMAND","abap"=>"C","len"=>3,"dec"=>0),
                                             array ("name"=>"RLOAD","abap"=>"C","len"=>1,"dec"=>0),
                                             array ("name"=>"FIXPT","abap"=>"C","len"=>1,"dec"=>0),
                                             array ("name"=>"SSET","abap"=>"C","len"=>1,"dec"=>0),
                                             array ("name"=>"SDATE","abap"=>"D","len"=>8,"dec"=>0),
                                             array ("name"=>"STIME","abap"=>"C","len"=>6,"dec"=>0),
                                             array ("name"=>"IDATE","abap"=>"D","len"=>8,"dec"=>0),
                                             array ("name"=>"ITIME","abap"=>"C","len"=>6,"dec"=>0),
                                             array ("name"=>"LDBNAME","abap"=>"C","len"=>20,"dec"=>0)
                             array (
                                     "name"=>"PROGRAM",
                                     "type"=>"IMPORT",
                                     "optional"=>"0",
                                     "def"=> array (
                                             array ("name"=>"","abap"=>"C","len"=>40,"dec"=>0)
                             array (
                                     "name"=>"QTAB",
                                     "type"=>"TABLE",
                                     "optional"=>"0",
                                     "def"=> array (
                                             array ("name"=>"LINE","abap"=>"C","len"=>72,"dec"=>0)
    // Create list of PHP server functions
       $GLOBAL_FCE_LIST[RFC_READ_REPORT] = saprfc_function_define(0,"RFC_READ_REPORT",$DEF_RFC_READ_REPORT);
    // PHP server function
       function RFC_READ_REPORT ($fce)
           $REPORT = saprfc_server_import ($fce,"PROGRAM");
           saprfc_table_init ($fce,"QTAB");
           $fd = fopen ($REPORT,"r");
           if (!$fd)
               return ("NOTFOUND");     // raise exception "NOTFOUND"
           while (!feof($fd))
               $LINE = fgets ($fd,73);
               saprfc_table_append ($fce,"QTAB",array("LINE"=>$LINE));
           fclose ($fd);
           saprfc_server_export ($fce,"SYSTEM","PHP");
           return (true);
    // Call script with: ./server.php -a phpgw -g hostname -x sapgw00
       $rfc = saprfc_server_accept ($argv);
    // Dispatch one function call
       $rc = saprfc_server_dispatch ($rfc,$GLOBAL_FCE_LIST);
       saprfc_close ($rfc);
    ?>
    [/code]
    Regards
    Gregor
    Message was edited by: Gregor Wolf

  • Problems returning complex objects from a php data service

    either the data services tool is buggy or i am doing something wrong. here is the code:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
         xmlns:s="library://ns.adobe.com/flex/spark"
         xmlns:mx="library://ns.adobe.com/flex/halo"
         minWidth="1024" minHeight="768"
         xmlns:personservice="services.personservice.*"
         initialize="init()">
         <fx:Script>
              <![CDATA[
                   import mx.rpc.events.ResultEvent;
                   import mx.controls.Alert;
                   import mx.collections.ArrayCollection;
                   public var people:ArrayCollection;
                   private function init():void {
                        getPeopleInMyWorldResult.token = personService.getPeopleInMyWorld();
                   protected function getPeopleInMyWorldResult_resultHandler(event:ResultEvent):void {
                        people = new ArrayCollection(event.result as Array);
              ]]>
         </fx:Script>
         <fx:Declarations>
              <s:CallResponder id="getPeopleInMyWorldResult" result="getPeopleInMyWorldResult_resultHandler(event)"/>
              <personservice:PersonService id="personService"
                   destination="PersonService"
                   endpoint="http://localhost/photoapp/Test3-debug/gateway.php"
                   fault="Alert.show(event.fault.faultString)"
                   showBusyCursor="true"
                   source="PersonService"/>
         </fx:Declarations>
    </s:Application>
    <?php
    class Person {
         public $name;
         public $cars;
    class Car {
         public $year;
         public $make;
         public $model;
    class PersonService {
         public function getPeopleInMyWorld() {
              $person1 = new Person();
              $person1->name = "John Doe";
              $car1 = new Car();
              $car1->year = 2005;
              $car1->make = 'audi';
              $car1->model = 'A6 Quattro';
              $car2 = new Car();
              $car2->year = 1970;
              $car2->make = 'datsun';
              $car2->model = '510';
              $person1->cars = array($car1, $car2);
              $person2 = new Person();
              $person2->name = "Jane Doe";
              return array($person1, $person2);
    create a new "flex" project in FB Beta1 with a php server. Setup the application and php script as normal, then configure the return type for the getPeopleInMyWorld function. I created a new return type called "Person" and was quite please to see that FB automagically created a "Cars" class with the all the right properties.
    Unfortunately, if you run the code (try debug mode and put a breakpoint on the result handler) you'll notice that "john doe" has lost his cars and that you also get the silent (check console) error:
    TypeError: Error #1034: Type Coercion failed: cannot convert []@1226bc49 to mx.collections.ArrayCollection.
    any ideas??
    i can get this to work by using json, but it's extra work, the com.adobe.serializers.json.JSONDecoder has little documentation, and the method outlined above is just begging to work.
    so, how are the rest of you getting complex data back from your servers? json?? amfphp?? xml (but surely not)??
    also, since i'm here discussing data services, if any adobe ppl are about, please throw one extra voice behind the following feature requests:
    1) support for optional service call arguments (http://bugs.adobe.com/jira/browse/FB-19659)
    2) a button for automatically 'generating service calls' from within the data services panel.
    thanks,
    - e

    Thank you Gaurav for pointing me in the right direction. There was some debate in the blogs as to which data transferring method (amfphp, json, or xml) was best. See
    http://blogs.adobe.com/mikepotter/2006/07/php_and_flex_js.html
    and
    http://www.5etdemi.com/blog/archives/2006/12/clearing-the-fud-on-amfphps-speed-versus-json -and-xml/
    I used json yesterday
    php:  json_encode(array($p1, $p2));   // observation: you only have to encode once as opposed
                                          // to using amf on each array...
    FB:   private var jsonD:JSONDecoder = new JSONDecoder();
          var jsonString:String = {{{return result from service call}}}
          myPeople:ArrayCollection = jsonD.decode(jsonString, services.personservice.Person);
    Note that in FB you can use the services.personservice.Person class as an optional argument in the jsonD.decode function. This class can be automatically generated using FB's built-in data service's panel when you try to configure the return type (as I described above). The json data should unserialize correctly with Cars objects automagically created and everything (a huge time saver!!).
    It worked for me, though I'm not sure how deep the unserialization process is capable of going (objects within objects w/in objects, for example). Also I had some trouble with adobe's jsonDecoder; it had trouble eating (uhm parsing) hollow objects (i.e. objects with null properties), whereas the php_encode / php_decode handled these objects w/o fail.
    Anyway, will be reading up on amf. Tanx again Gaurav,
    - e

  • How to retrieve data from a web page through php scripts..........

    kindly suggest me the php parsing script so that i can fetch the data from a web page.....
    suppose we have a url.........
    http://abc.com/news/companydetails.aspx?sskicode=x&Exchange=y
    and the page contains the various fields.........like
    xyz 10
    xyz1 20
    xyz2 30 etc...
    then we have to retrive data from this page trough php script and insert it into database.....
    value of xyz , xyz1 n xyz2 should be retrived and further inserted into database.......
    thanx ......

    Should be nice..
    But its not working i think..

  • Error loading XML content, returned by PHP script

    JavaScript
    function loadXMLDoc(fname)
    var xmlDoc;
    // code for IE
    if (window.ActiveXObject)
    xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
    // code for Mozilla, Firefox, Opera, etc.
    else if (document.implementation && document.implementation.createDocument)
    xmlDoc=document.implementation.createDocument("","doc",null);
    else
    alert('Ваш броузер не может обработать необходимые скрипты. Воспользуйтесь браузерами IE 8, FireFox 3.х, Opera 9.х');
    xmlDoc.async=false;
    xmlDoc.load(fname);
    return(xmlDoc);
    PHP Script in XMLsrc.phtml
    error: loadXMLDoc("XMLsrc.phtml").documentElement is null
    It works in Opera 10.x (checked)

    JavaScript
    function loadXMLDoc(fname)
    var xmlDoc;
    // code for IE
    if (window.ActiveXObject)
    xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
    // code for Mozilla, Firefox, Opera, etc.
    else if (document.implementation && document.implementation.createDocument)
    xmlDoc=document.implementation.createDocument("","doc",null);
    else
    alert('Ваш броузер не может обработать необходимые скрипты. Воспользуйтесь браузерами IE 8, FireFox 3.х, Opera 9.х');
    xmlDoc.async=false;
    xmlDoc.load(fname);
    return(xmlDoc);
    PHP Script in XMLsrc.phtml
    error: loadXMLDoc("XMLsrc.phtml").documentElement is null
    It works in Opera 10.x (checked)

  • Calling PHP scripts from iphone code...

    I'm wondering how to best authenticate a PHP script, so that it will only run when called from a specific app...
    A very simple way I was thinking of was to have a username/password written inside the objective c code...
    So the PHP script checks that the username/password is valid (checks it against a table in a database)... Then runs the script...
    However this seems very unsafe to me as the username/password can be packet sniffed, or so it seems to me... Is SSL my only option?
    What is the best way to deal with this? Appreciate any feedback.

    Probably you can your question on the Eclipse plugin development forum:
    [http://kenai.com/projects/eplugin|http://kenai.com/projects/eplugin]
    [http://kenai.com/projects/eplugin2|http://kenai.com/projects/eplugin2]

Maybe you are looking for

  • Crystal Reports 9 Save/Save As Buttons Not Responding

    I'm trying to install Crystal Reports 9 on my laptop.  The installation process itself goes well but yet when I create a new report and click either the Save or Save As buttons, absolutely nothing happens.  No dialogue box pops up so I'm unable to Sa

  • Design Console in Linux

    Hey All, I've trying to run the Design Console under RHEL 5.. I've followed the instructions on setting this up (copied from a windows install, created a startup.sh script with all the classpaths, etc..). When I launch it, I get to the login screen,

  • PrinterJob.lookupPrintServices() issues

    We deploy and run JBoss 5.1.0GA on windows 2003.The JBoss is running as window service. On the machine, we configure two printers: 1. network printer 2. a shared printer on another Window XP machine. PrintService[] printServices = PrinterJob.lookupPr

  • Will this hard drive fit my MacBook?

    Hi! I've decided to upgradre my MacBook's hard drive when I install Leopard. I have a couple of questions. Hope some nice person will help me with some answers First. Will this fit my MacBook: Hitachi TravelStar 5K160 - Harddisk - 160 GB - internal h

  • How to trigger Availability check in Sales Order 'save' user exit.

    I have requirements which dictate that I change item categories of most of the line items in a user exit. If I do that the line items no longer confirm. I know that the availability check happens in 'move_Field_to_vbap' user exit. Is there any way I