Flex/Zend channel connect failed error...


hi guys.

    using flex , php develop project. works great in local machine. however, when upload files server (godaddy.com). got error when loading flex application.

 

the pop-up error message is

 

send failed

channel.connect.failed.error

netconnection.call.badversion: url:

http://mydomail/folder/gateway.php

 

i have upload zendframewrok folder server , amf_config.ini has been configured. (webroot =http://mydomain)

i not sure what's going on here. please help. thanks.

 

 

 

update: gateway.php

<?php
ini_set
("display_errors", 1);
$dir
= dirname(__file__);
$webroot
= $_server['document_root'];
$configfile
= "$dir/amf_config.ini";

//default zend install directory
$zenddir
= $webroot. '/zendframework/library'; //i did upload zendframwork folder

//load ini file , 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 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 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) {
    
// first character of path.
    
// if not start slash implies path relative webroot. else treated absolute path
     $length
= strlen($dir);
     $firstchar
= $dir;
    
if($length >= 1)
      $firstchar
= $dir[0];

    
if($firstchar != "/"){
     
// if directory ./ path add webroot only.
     
if($dir == "./"){      
       $server
->adddirectory($webroot);
     
}else{
       $temppath
= $webroot . "/" . $dir;
    $server
->adddirectory($temppath);
  
}    
 
}else{
      $server
->adddirectory($dir);     
 
}
}
}
// initialize introspector 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();

 

error gateway.php if call directly.

 

 

warning: require_once(zend/loader/autoloader.php) [function.require-once]: failed open stream: no such file or directory in /home/content/79/4687979/html/parkerlist/gateway.php on line 27

 

fatal error: require_once() [function.require]: failed opening required 'zend/loader/autoloader.php' (include_path='.:/usr/local/php5/lib/php:http://blackwheels.info//zendframework/library') in /home/content/79/4687979/html/parkerlist/gateway.php on line 27

 

gateway.php rat. still can't figure out what's wrong. zend/loader/autoloader.php under server root "zendframework/library" folder. don't understand why application can't find it. again!

you better response if repost question on flex forums. forum livecycle data services product.



More discussions in LiveCycle Data Services


adobe

Comments

Popular posts from this blog

CS5 Adobe Media Encoder: Encode failed because the source duration is nil.

cf_sql_integer vs cf_sql_bigint vs cf_sql_int??

localhost/joomla15/administrator doesnt work - Joomla! Forum - community, help and support