Flex and Php

FLEX CODE
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute" applicationComplete="http.send()">
<mx:Button x="197" y="198" label="Button" click =
"testing()"/>
<mx:Script>
<![CDATA[
public function testing():void
mx.controls.Alert.show("this is the output " +
http.lastResult.happy);
]]>
</mx:Script>
<mx:HTTPService id = "http" method="POST" url =
"PHPDocument1.php" useProxy ="false">
</mx:HTTPService>
<mx:TextInput x="260" y="111" id="n"/>
<mx:TextInput x="182" y="45" id="last"/>
</mx:Application>
PHP CODE
<?php
$happy = "<happy>cheesey</happy>";
echo $happy;
?>
The problem I having is for some reason.. it won't even load
anything! it works with loading XML and TXT files but it doesn' t
work with Php or my Python scripts.. basically its unable to
communicate with server-side scripts. What could be the
problem?

Your testing function is not being called. You need to set
the result event like this:
<mx:HTTPService
id = "http"
method="POST"
result="testing(event)"
url = "
http://localhost/PHPDocument1.php"
useProxy ="false"/>
You can then get the result in two differnt ways:
public function testing(evt:ResultEvent):void
mx.controls.Alert.show("this is the output " +
http.lastResult.happy);
trace(evt.result.happy);
Using evt.result is often more flexible than http.lastResult
for me since you are able to decouple the result from the call. It
also is helpful for debugging if there is a problem.
Vygo

Similar Messages

  • Flex and php file uploader cross browser problems

    Hi, I have a problem in flex and php file uploader. It was
    working fine in Internet Explorer, but nothing would work in
    Firefox and in other browsers. Firefox and other browsers was not
    sending the session with the file upload and was producing a login
    error. On IE the session cookie is picked up and the upload request
    uses the authenticated session, no login error. I'm newbie in flex.
    Please help me. Thanks in advance!
    Here's my code:
    bgupload.mxml

    Hello, I am Gamaliel Arredondo, i have solved this problem, the error is in the code, you have a mistake in your code, check it out.
    The way to run the flex applications, in my case, i installed xampp, in the htdoc directory i put the folder with the files of the application and all is working very well, only when the apache is running because if it is stoped the application show error, please review your code and if you have problems you can contact me by e-mail ([email protected]) i also fought with that problem but i could find the solution, i hope to help you.

  • Problems with flex and php.

    Hello, my name is Gamaliel Arredondo, i have to develope a project in flash builder 4 using the data service to connect with php, the application has installed the zend framework automatically just like the tutorials said, I use xampp and i have the files in the htdoc location, all the path are correct but when i want to connect to my php classes i receive this message:
    Make sure that Zend Framework is installed correctly and  the parameter "amf.production" is not set to true in the amf_config.ini file  located in the project output folder.     /0/onResultÿÿÿÿ � Uflex.messaging.messages.AcknowledgeMessage correlationId clientId destination messageId timestamp timeToLive headers  body I797BFBCC-250A-A100-9954-68CD2AC82DF5 I2570DA6E-2F76-55E9-2249-000075B2C293  I590AA123-C3CE-5F48-6A94-00002F9B370A  126571301000      ‡G
    I have searched on internet in order to find a solution but i haven't found anything that can help me, so i would like to receive some of help, my email is [email protected], if you can help me i will thank you so much, have a nice day.

    Hello, I am Gamaliel Arredondo, i have solved this problem, the error is in the code, you have a mistake in your code, check it out.
    The way to run the flex applications, in my case, i installed xampp, in the htdoc directory i put the folder with the files of the application and all is working very well, only when the apache is running because if it is stoped the application show error, please review your code and if you have problems you can contact me by e-mail ([email protected]) i also fought with that problem but i could find the solution, i hope to help you.

  • Sharing an array between flex and php

    please provide some easy methods because i am new to
    php.

    please provide some easy methods because i am new to
    php.

  • Completely different AMF request packets for same remote service call from Flex to PHP using ZendAMF

    I was trying to debug why one of the remote-services in our Flex application was failing randomly. What I found was interesting. Completely different AMF request packets were sent for same remote service call from Flex to PHP.
    When the service call succeeds the AMF request packet looks like the following:
    POST /video/flex/bin-debug/gateway.php HTTP/1.1
    Host: localhost
    User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.15) Gecko/20110303 Firefox/3.6.15
    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    Accept-Language: en-us,en;q=0.5
    Accept-Encoding: gzip,deflate
    Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
    Keep-Alive: 115
    Cookie: PHPSESSID=j6u30i8uu6c3cvp8f4kipcpf05
    Referer: http://localhost/video/flex/bin-debug/main.swf/[[DYNAMIC]]/5
    Content-type: application/x-amf
    C    ontent-length: 305
    Flex Message (flex.messaging.messages.RemotingMessage)     operation = getMemberFromEvent    clientId = 2F997CD0-7D08-8D09-1A9B-0000422676C8    destination = MembereventService    messageId = B46AB58D-2241-83F0-41E4-9FE745565492    timestamp = 0    timeToLive = 0    body =     [      280    ]    hdr(DSId) = nil
    And when the service fails the AMF request packet looks like this:
    ServiceRequest: getMemberFromEvent; RemoteService; getMemberFromEvent
    (mx.messaging.messages::RemotingMessage)#0
      body = (Array)#1
        [0] 250
      clientId = "1AA4FAAB-AEA5-8109-4B0D-000002B3A9A1"
      destination = "MembereventService"
      headers = (Object)#2
        DSEndpoint = (null)
        DSId = "nil"
      messageId = "2F92E6C0-FE92-A09B-B150-9FE2F28D9738"
      operation = "getMemberFromEvent"
      source = "MembereventService"
      timestamp = 0
      timeToLive = 0
    Also, following is the error message on Flex when the service fails:
    {Fault code=Channel.Call.Failed, Fault string=error, Fault detail=NetConnection.Call.Failed: HTTP: Failed, Destination=MembereventService}
    We are using Swiz as the micro-architecture for Flex development and Zend AMF for remoting between Flex and PHP.
    Any ideas what is wrong here, what is causing Flex to send different request packets for the same service & what I can do to fix it?

    Hi, I know that your post is almost 5 years ago, but have you found the solution to this issue?
    Thanks.

  • Getting started with flex and Eclipse 3.1?

    Hi all,
    Im a java Eclipse RCP developer and I wanted to work on some small apps using flex.
    I have been searching around on the web for instructions on how to get everything set up, but most of them seem to skip a  few steps.
    I am using Eclipse ganymede (3.1), and have downloaded the flex sdk.  Is there a plugin or something for flex that creates the proper perspectives in eclipse?  Or what exactly do I need to do?
    Also, I see that flex uses mxml, if I want to use flex and java as opposed to flex and php or coldfusion (the only examples I saw) is that possible?  I guess Im slightly confused as to what exactly I am writing this app in... java?  Actionscript?  Php? ??
    Basically my goal is this:
    Use eclipse 3.1 (not flex builder)
    Write an RIA that can also use AIR
    Connect to a MySQL database on the backend
    I have very little experience (or need) for J2EE, but maybe I should use it?
    Can anyone point me to a good tutorial that will get me going to achieve my goal?  Or tell me what exactly I need to install, and how to put it together?
    Thank you!

    You need Flex Builder plugin version.
    Trial version here:
    http://www.adobe.com/cfusion/entitlement/index.cfm?e=flexbuilder3

  • Flex and Mysql

    Hi everyone,
    I am trying to see how i could have 15 numbers in a
    database, and this number will display 15 textbox with size=1.
    how can i do it with flex or Is there anyway I can do it
    using Flex and PHP or Ajax or Javascript? Please help me. Thank
    you.
    Cliffy

    Hi,
    I'm developing an application that use MySQL everywhere. I'm
    using a technology that connect Flex to Mysql using PHP. The name
    is AMFPHP.
    you can have all the information here:
    www,amfphp.org
    Intallation is very easy and there are video tutorials there.
    I'm using the version 1.9 beta and the performance is excellent.
    There are different aproches for that (Ajax, colfusion, and
    anothers gateways) but I recomend you AMFPHP. It's well documented
    and has been outside for a while.

  • Flex and zend , php services - soooo slow. any ideas?

    Hey Folks,
    I have a flex application that uses PHP services with the Zend framework.
    When I run it locally, the speed is great. My largest query returns data to my datagrid in 2-3 seconds.
    When I do run it locally, it is pulling from the production database.
    When I move the project to my dedicated server, the same query takes a painful 30 seconds.
    When I run the SQL query directly in MYSQL, it is back to around 2 seconds.  So the problem is not the query itself.
    So, any ideas why the results would take so much longer in my production environment? I purposely purchased dedicated server hosting because I thought it might of been server load.  That didn't help.  The queries are not complex at all. The most they return is under 200 rows.
    In summary: Why would my results set populate so much quicker on my development computer than on the production server?
    Using:
    Flash builder 4
    mysql
    php
    zendframweork
    Thank you for any assitance.
    -greg

    Your question seems to be outside of the scope of this forum.  But as someone who uses Zend_AMF and PHP for a backend I'll take a whack.  Have you analyzed your query, you may discover some inefficiencies there ?  This could be a problem if you have many joins, not leading you "WHERE" statement off with the most selective property and so on and so on try basic db optimizations if you haven't already.  Are you using an ORM of any kind ?  These can add to the time it takes to get results back, especially if you have lazy loading enabled instead of bringing back associated objects with your query and not on the fly.  The next step I would check would be for any type of serialization issues that might arise if you are doing so.  Even though a database usually isn't considered "large" until it has 10's of millions of rows, joins as I have verified the hardway, when done incorrectly without any type of keys or indexing can be particularly painful.

  • Flex mobile and PHP project

    Hi! Recently I've downloaded the Flash Builder for PHP to work with my Zend Server remotely located in OpenShift online. I did not  download and install the Zend Server physically on  my computer. Hence, when creating the Flex mobile and PHP project, I couldn't find my web root address. Now I have an error connecting to the MySQl database in the server from the Flash Builder. Can someone help me with this? I'm new to using these programs.
    I'm following this guide on building mobile apps:
    http://files.zend.com/help/Flash-Builder-for-PHP/Getting-Started/Mobile/build_a_mobile_(ph p)_application.htm#Step_13:_Preview_the_Mobile_Application_Using_the_Desktop_Emulator

    PHP is server side.
    If you want to have a app to function offline you would probably need sqlite and then code actionscript to synch data when the device regains it's connectivity.

  • Flex and Zend amf deployment resolved with proper solution

    Hi All,
    Although, I personally do not like using Zend for these issues itself. However, I faced this issue first time with flex 4.0 version when everyone used to run into
    channel disconnected error. you can find the link for that post here:
    http://forums.adobe.com/message/3366991.
    Now, with flash builder 4.6, things have changed slightly and so the deployment process. So, here are the right set of steps to be followed :
    1. after developing your flash project, export the release build(I assume if you are a flex user, you should know these steps already)
    2. Now, check your release folder, you must have got some files with amfconfig.ini and gateway.php and just one folder named history.
    3. copy all these files into a new folder say "My Release Build".
    4. Now, step 1 is get Zend framework in place, to achieve that:
    there are different ways. some will say : "make sure zend must already installed on your production server." that is an alternative but most likely,  the easier way to do this is : search your www(root folder on localhost),you will find a folder with name ZendFramework. Copy this folder to "My Release Build"
    5. Now, the services that you have used in your flex project, go to debug folder of your project which should be in your www(root folder on localhost) with name "yourprojectname-debug". copy services folder from this debug folder to "My Release Build"
    6. Now, open your amfconfig.ini from "My Release Build" and edit and make it look like following:
    [zend]
    webroot = http://www.yourwebsite.com
    ;you can edit above webroot to match the root folder of your website or use . to make it point to root.
    zend_path = ./ZendFramework/library
    [zendamf]
    amf.production = true
    amf.directories[]= services
    thats it. your amf config is fine.
    7. edit gateway.php:
    Now, remove everything from gateway.php and copy this as it is there:
    <?php
    ini_set("display_errors", 1);
    $dir = '.';
    $webroot = $_SERVER['DOCUMENT_ROOT'];
    $configfile = "amf_config.ini";
    //default zend install directory
    $zenddir = $webroot. '/ZendFramework/library';
    //Load ini file and locate zend directory
    if(file_exists($configfile)) {
        $arr=parse_ini_file($configfile,true);
        if(isset($arr['zend']['webroot'])){
            $webroot = $arr['zend']['webroot'];
            $zenddir = $webroot. '/ZendFramework/library';
        if(isset($arr['zend']['zend_path'])){
            $zenddir = $arr['zend']['zend_path'];
    // Setup include path
        //add zend directory to include path
    set_include_path(get_include_path().PATH_SEPARATOR.$zenddir);
    // Initialize Zend Framework loader
    require_once 'Zend/Loader/Autoloader.php';
    Zend_Loader_Autoloader::getInstance();
    // Load configuration
    $default_config = new Zend_Config(array("production" => false), true);
    $default_config->merge(new Zend_Config_Ini($configfile, 'zendamf'));
    $default_config->setReadOnly();
    $amf = $default_config->amf;
    // Store configuration in the registry
    Zend_Registry::set("amf-config", $amf);
    // Initialize AMF Server
    $server = new Zend_Amf_Server();
    $server->setProduction($amf->production);
    if(isset($amf->directories)) {
        $dirs = $amf->directories->toArray();
        foreach($dirs as $dir) {
            // get the first character of the path.
            // If it does not start with slash then it implies that the path is relative to webroot. Else it will be treated as absolute path
            $length = strlen($dir);
            $firstChar = $dir;
            if($length >= 1)
                $firstChar = $dir[0];
            if($firstChar != "/"){
                // if the directory is ./ path then we add the webroot only.
                if($dir == "./"){               
                    $server->addDirectory($webroot);
                }else{
                    $tempPath = $webroot . "/" . $dir;
                    $server->addDirectory($tempPath);
            }else{
                   $server->addDirectory($dir);           
    // Initialize introspector for non-production
    if(!$amf->production) {
        $server->setClass('Zend_Amf_Adobe_Introspector', '', array("config" => $default_config, "server" => $server));
        $server->setClass('Zend_Amf_Adobe_DbInspector', '', array("config" => $default_config, "server" => $server));
    // Handle request
    echo $server->handle();
    Now, upload your "My Release Build folder to your production server webroot"
    case 1: if you get "channel disconnected error, you have made some mistake and your path for zend or services folder is not right."
    In above case, "ZendFramework folder and services folder with all of other release files". To find out what is wrong, open this url :
    http://www.yourwebsite.com/gateway.php. if you see this lovely string there : "Zend Amf Endpoint". consider your are through with zend settings on server
    otherwse you will see relative errors.
    2. After fixing this step, try run your website, you will land into this error :
    Class “yourcorrectclassname” does not exist: Plugin by name ‘Classname’ was not found in the registry; used paths:
    : /home1/messoftc/public_html/oc/services/
    #0 /home1/messoftc/public_html/ZendFramework/library/Zend/Amf/Server.php(553): Zend_Amf_Server->_dispatch(‘fxnname’, Array, ‘classname’)
    #1 /home1/messoftc/public_html/ZendFramework/library/Zend/Amf/Server.php(629): Zend_Amf_Server->_handle(Object(Zend_Amf_Request_Http))
    #2 /home1/messoftc/public_html/oc/gateway.php(69): Zend_Amf_Server->handle()
    #3 {main}
    Now, this is a zend framework bug, it does not automatically detect the php classes in your services folder,those who have run into this, must have googled hard to find the solution and this bug is also logged officially on zend server jira log.
    so, what is the solution? simple and effective. open your gateway.php file from "My Release Build"
    Add this little line :
    $server->addDirectory(dirname(__FILE__) . '/services/');
    after this line :
    $server->setProduction($amf->production);
    reupload this file to your production, you should see your Flex, Zend, php & Mysql in action.
    Here is a sample link I have created :
    http://www.eiws.co.in/testzend.html
    you may also visit the endpoint file:
    http://eiws.co.in/gateway.php
    If anyone still faces this issue, can contact me at [email protected].
    Credits: "To all developers who share their knowledge with everyone and google and thousands of blogs who provide a medium to share this knowledge"

    Richard Bates of flexandair.com figured it out. In my php.ini file, I had the memory limit set at 8M. After, changing it to 32M, it worked. Thank you, Richard!
    -Laxmidi

  • Populating a Combobox using Remoting with AMF and PHP

    Hello all
    I am using Zend framework and Flex 3.4 to create a webapp. I am stuck at how to populate a combobox dynamically using the service I created in PHP.
    In some of examples I saw that result of database query was being converted into XML and then sent to Flex. This seems a little too time-consuming if I have to do it every time. I saw some examples in Adobe Docs about Remoting with AMF and PHP. That seems like a better approach although how it would be applicable here is beyond me right now.
    Can somebody guide me in correct direction?
    Thanks and Regards
    Shivik

    Try this: http://code.google.com/p/as3flexdb/ is very easy to use and it
    will help.
    All you need to populate a combo is:
    <mx:ComboBox dataProvider="{query.Records} /

  • Flash Builder 4 and PHP  Data/Services for beginners

    Hello,
    I'm new here, so I do not know if I posted my doubts in the right place.
    without much la la la go straight to the point.
    I am developing an application in flex / mysql / php / zend DataWizard and used the flex to create the data service.
    populei my dropdown with the desired data (cities) and populei my datagrid with their respective data (customer master), so far so good. That's when I came across a difficulty which already makes two weeks and try to solve anything. the little knowledge I have in programming know it's something silly, but I can not solve.
    Difficulty: I select a city in my dropdown and display all my customers registered in the same city in my datagrid. simple! I found some tutorials on the net talking about it, did exactly what her boss but unfortunately got no success (not populates the datagrid), may be doing algor be unable to realize. so it follows my code so they can help me. grateful!!
    FLEX CODE
    / / Populating DropDownList City
    protected function ddl_cidade_cadastro_solutions_creationCompleteHandler(event:FlexEvent):void
    getAllMunicipioResult.token = municipioService.getAllMunicipio();
    //Populating DataGrid
    protected function ddl_cidade_cadastro_solutions_changeHandler(event:IndexChangeEvent):void
    txt_recebe_cidade.text = ddl_cidade_cadastro_solutions.selectedItem.Cidade_PJ;
    getAllEmpresasResult.token = empresasService.getAllEmpresas(ddl_cidade_cadastro_solutions.selectedItem.Cidade_PJ);
    PHP CODE
    public function getAllEmpresas($q) {
    $stmt = mysqli_prepare($this->connection, "SELECT * FROM $this->tablename WHERE 'Cod_Cidade_PJ' LIKE '%$q%'");
    $this->throwExceptionOnError();
    mysqli_stmt_execute($stmt);
    $this->throwExceptionOnError();
    $rows = array();
    mysqli_stmt_bind_result($stmt, $row->Codigo, $row->CGC, $row->CEmpresa, $row->NomeFantasia, $row->RazaoSocial, $row->Endereco_PJ, $row->Bairro_PJ, $row->CEP_PJ, $row->Cod_Cidade_PJ, $row->Cidade_PJ, $row->Estado_PJ, $row->TelefoneDDD_PJ, $row->Telefone_PJ, $row->FaxDDD_PJ, $row->Fax_PJ, $row->Email_PJ, $row->RecEmail_PJ, $row->HomePage_PJ, $row->NumFunc, $row->CodPorte, $row->Porte, $row->CodRegiao, $row->Regiao, $row->CodCNAE, $row->CNAE, $row->Produto, $row->ExportaPais, $row->IndustriaSN, $row->AnuncianteSN, $row->RowNumber, $row->negrito);
    while (mysqli_stmt_fetch($stmt)) {
    $rows[] = $row;
    $row = new stdClass();
    mysqli_stmt_bind_result($stmt, $row->Codigo, $row->CGC, $row->CEmpresa, $row->NomeFantasia, $row->RazaoSocial, $row->Endereco_PJ, $row->Bairro_PJ, $row->CEP_PJ, $row->Cod_Cidade_PJ, $row->Cidade_PJ, $row->Estado_PJ, $row->TelefoneDDD_PJ, $row->Telefone_PJ, $row->FaxDDD_PJ, $row->Fax_PJ, $row->Email_PJ, $row->RecEmail_PJ, $row->HomePage_PJ, $row->NumFunc, $row->CodPorte, $row->Porte, $row->CodRegiao, $row->Regiao, $row->CodCNAE, $row->CNAE, $row->Produto, $row->ExportaPais, $row->IndustriaSN, $row->AnuncianteSN, $row->RowNumber, $row->negrito);
    mysqli_stmt_free_result($stmt);
    mysqli_close($this->connection);
    return $rows;

    Hi,
    The first issue will be the pathing differences between wamp/mamp/xampp, some use www as root others htdoc you need to setup the php services on your local machine rather than importing a project.
    The created services will have a connection array declared at the top of the code that points to the mysql server, in the project default debug folder you will have the config file that has the zend and webserver path
    top of service file
    ============
    var $username = "root";
    var $password = "";
    var $server = "localhost";
    var $port = "3306";
    var $databasename = "zend";
    var $tablename = "clients";
    var $connection;
    amfconfig.ini
    =========
    [zend]
    ;set the absolute location path of webroot directory, example:
    ;Windows: C:\apache\www
    ;MAC/UNIX: /user/apache/www
    webroot =C:/wamp/www
    ;set the absolute location path of zend installation directory, example:
    ;Windows: C:\apache\PHPFrameworks\ZendFramework\library
    ;MAC/UNIX: /user/apache/PHPFrameworks/ZendFramework/library
    ;zend_path =
    [zendamf]
    amf.production = false
    amf.directories[]=Zender-debug/services
    In your main project folder you have a .model folder the file there is an *.fml file that contains your channel endpoints etc.
    David.

  • Flex and JSON

    Hi All,
    I am trying to integrate JSON with my flex application as it
    seems to be much faster than using xml via web services . . .
    Below is some sample output being returned and I'm unsure how
    to access the data in nested arrays. I'm hoping someone can help me
    with some insight into breaking up the pieces.
    Almost forgot, I'm using the corelib JSON routines to get the
    data created by darron schall . . .
    I am trying to access the data in the different columns
    within the entrydata element. . . .
    Thanks for any help you can offfer. . . .
    Here is what it looks like in the debugger with the raw text
    below . . . .
    arr = Array (@709e7b1)
    [0...99]
    [0] = Object (@7075a11)
    @noteid = "4662"
    @position = "1"
    @siblings = "114"
    @unid = "AB7A73759B12E59D8625711B007D05D0"
    entrydata = Array (@709efc9)
    [0] = Object (@7075a39)
    @columnnumber = "0"
    @name = "$18"
    number = Object (@7075a89)
    [1] = Object (@7075ab1)
    @columnnumber = "1"
    @name = "$17"
    text = Object (@7075b01)
    [2] = Object (@7075b29)
    @columnnumber = "2"
    @name = "$12"
    text = Object (@7075b79)
    [3] = Object (@7075ba1)
    [4] = Object (@7075c19)
    [5] = Object (@7075c91)
    length = 6
    "@timestamp": "20080611T145442,97Z",
    "@toplevelentries": "115",
    "viewentry": [
    "@position": "1",
    "@unid": "AB7A73759B12E59D8625711B007D05D0",
    "@noteid": "4662",
    "@siblings": "115",
    "entrydata": [
    "@columnnumber": "0",
    "@name": "$18",
    "number": {
    "0": "70"
    "@columnnumber": "1",
    "@name": "$17",
    "text": {
    "0": "8190 , Agent"
    "@columnnumber": "2",
    "@name": "$12",
    "text": {
    "0": ""
    "@columnnumber": "3",
    "@name": "CompanyName",
    "text": {
    "0": ""
    "@columnnumber": "4",
    "@name": "$16",
    "text": {
    "0": "Agent 8190/PSCDM@PSCDM"
    "@columnnumber": "5",
    "@name": "$21",
    "text": {
    "0": "notil4/pscdm"
    "@position": "2",
    "@unid": "0F8346B29E38AF048625711B007D24FC",
    "@noteid": "46A6",
    "@siblings": "115",
    "entrydata": [
    "@columnnumber": "0",
    "@name": "$18",
    "number": {
    "0": "70"
    "@columnnumber": "1",
    "@name": "$17",
    "text": {
    "0": "8191 , Agent"
    "@columnnumber": "2",
    "@name": "$12",
    "text": {
    "0": "(office) 40191"
    "@columnnumber": "3",
    "@name": "CompanyName",
    "text": {
    "0": ""
    "@columnnumber": "4",
    "@name": "$16",
    "text": {
    "0": "[email protected]@PSCDM"
    "@columnnumber": "5",
    "@name": "$21",
    "text": {
    "0": "notil4/pscdm"
    "@columnnumber": "1",
    "@name": "$17",
    "text": {
    "0": "Zapper , Zulu"
    "@columnnumber": "2",
    "@name": "$12",
    "text": {
    "0": ""
    "@columnnumber": "3",
    "@name": "CompanyName",
    "text": {
    "0": ""
    "@columnnumber": "4",
    "@name": "$16",
    "text": {
    "0": "Zulu Zapper/PSCDM@PSCDM"
    "@columnnumber": "5",
    "@name": "$21",
    "text": {
    "0": "pscextil01/PSCEXT"
    }

    Watch the Online Video Course Flex 4.5 and PHP: Creating Data-Driven Applications

  • Adobe Dreamweaver CS3 with ASP coldfusion and PHP search?

    I am working through Adobe Dreamweaver CS3 with ASP
    coldfusion and PHP with the intent of creating a data base site
    that primarily requires a search engine on the index page. The
    search page in the book uses specific search criteria ensuring that
    there will always be a match to the data base but I need to create
    an input text field search engine. My Q, if there is no data within
    the data base that match the variable, will it return with an error
    requiring an argument in the code to respond to no matching data.
    Hopefully there are comprehensive online recourses for these search
    engines as they are so common. I am a complete newby to all aspects
    of web development and code so it will need to be a thorough
    explanation, an idiots guide. ANY HELP GREATLY APPRECIATED

    Rob,
    Let me try to answer your questions, understanding that my
    answers are laced with my experience and therefore my bias.
    1. For the most part the SQL that you write for Access, MS
    SQL or MySQL is going to be the same. I won't make that claim about
    Oracle or PostgreSQL because I have limited or no experience in
    those areas. To be sure when you head down the road with any DBMS
    there are finer points on 'value added' features (to over simplify
    things like MS SQL's Transact SQL), but for the most part when you
    are pulling out, inserting or deleting records the SQL that you
    write will be the same. In fact, I don't think I had to make any of
    the SQL in the book different to deal with the back end db.
    2. As for your host steering you away from MySQL, I don't
    know why that would be. It is MUCH more stable and robust than
    Access for web development. My research showed that you can use
    MySQL just fine with ASP though that clearly wouldn't be
    Microsoft's first choice.
    3. A quick aside, the fact that you are building ASP on a Mac
    would seem to indicate that you are developing on your production
    server. That's never a good idea. Go local if you can. If you have
    a newer Intel Mac you can use VM Fusion, Parallels or even Boot
    Camp to run Windows in a virtual environment and develop there,
    only moving your code to production when you are happy with it.
    There is of course the fact that they two environments would not be
    identical and you may need to change a few references, but it is
    still a better practice than developing on your live site. Some web
    hosts give you the ability to set up a subdomain. If yours does,
    you could set one up with a duplicate of your site and develop
    there.
    4. Let me try to pull your 'rant-let' apart into two issue. I
    begin with a question. I'm not sure what the Mac part has to do
    with it. The primary language I work in at my day job is
    ColdFusion. The majority of the most serious developers I know in
    the CF world work on Macs. I am forced into the PC world because of
    a cultural bias at the business school where I work. Having said
    that, the only time I have felt there was ANY difference in the
    tools, resources, choices I had was in any way affected by platform
    was when Adobe still had not released Flex Builder 2 for the Mac.
    Now that is behind us as well. This reaction of mine may be based
    on the fact that Access never comes into play in the work that I
    do. I regularly work with MS SQL and MySQL. (OK, so SQL Enterprise
    Manager, the MS tool of choice to talk to MS SQL is Windows only,
    but I only use that at the day job. But even there you can find
    cross-platform, free tools like Aqua Data Studio to talk from a Mac
    to MS SQL.) If I'm missing your point on the Mac, please let me
    know. Since the advent of the Intel Mac I think it is hands-down
    the best choice for a web developer. You can have Mac, Windows and
    Unix all on one machine. It doesn't get any better (providing you
    have the RAM :-)).
    As for the security question, it is somewhat analogous to the
    war on viruses and spyware. As the defenses get better, so do the
    attacks. Most languages have developed functions for vetting user
    input variables and best practices for building these things. It is
    mainly a user education issue. When I took over the book you are
    working out of, the one thing Jeffrey told me it needed was more
    security. I did my best to put more in under the constraints of the
    publisher. They didn't want the book to be any longer than the
    previous version. I did my best to modify the code used to include
    "string safe" functions and to add verbiage about the importance of
    security. It was clear that I could not add as much as was needed
    and I said so in the book. Much more is needed for a serious
    treatment of the subject and not acknowledging that would have been
    a disservice to the readers. I've been working as a developer for
    over a decade and I don't know all there is to know about it. It's
    a constantly changing field, just like all of web development. In
    fact next week I'm going through a 2-day SANS Web Application
    Security workshop in hopes of learning more. So at the risk of
    sounding like an industry apologist, I don't think it's a
    shortcoming of the development community. It is, as they say, "a
    developing situation".
    HTH,
    Bob
    http://bobflynn.info/

  • Flex with php air application

    Hi ,
    I am new in flex.
    Actually i make a flex with php desktop application. There are two problems which i am not getting:
    a.) I make three module which i load on tab navigator click . These mudules working fine . But when i make this project export relese build to make .exe file . These modules not added in installation file.
    i.e after installation i have to copy these modules .swf file in program files where the application installed. So i want to know is there is any method so that module added in the .exe file so that they by default goes at the
    time of installation of exe.
    b.) I use php services in this project and when i insatlled the application to system its not working untill i add the the project service php file and zend frame work folder on user wamp . Is there any method that all these happen by default at the time of insatllation.

    Hi,
    AIR is best suited to be a client application.
    P.S: Since you are using PHP, you may want to take a look at
    amfphp so that you can use AMF to speed up data transfer between
    your AIR app and the PHP server.

Maybe you are looking for

  • Can someone please help me with debugging these Lync client logs

    Hi, We have a mobile client on an Android device which is refusing to sign in. from the device you can browse to https://lyncdiscover.domain.com and also https://webext.domain.com/autodiscover/autodiscoverservice.svc/root and both times recvieve the

  • Copy and paste (aka cloning)

    Here's my scenario IDM: ABC AD: ABC Notes: [email protected] This user account changed the accountId so I want to disable the ABC account and clone it and all of its resources. I need to clone IDM, AD and Notes and only change the accountId. Everythi

  • No video playlist syncing

    When I plug my playbook in to my computer via the usb cord, the blackberry desktop software shows the big three subheadings under media sync.  Oddly, itunes video playlists appear in the "Music" section but they are grayed out and cannot be synced to

  • MISSING  Video after Time Machine Restore

    Hi All. I had a drive go bad and had to buy a new one and restore from Time Capsule. I am noticing that I am missing a slideshow video that I spend a good deal of time creating. I went from a 500 GB to a 1 TB drive which I assume does not matter. The

  • How to get last session open tabs?

    My hard disk is damaged, but I can read/copy files when I install it in other computer as a secondary hard disk. The problem happend suddenly, and now I need to recover the last session open tabs. How can I get them? Only URLs of course. Thanks.