Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3623830
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T23:25:55+00:00 2026-05-18T23:25:55+00:00

I am using Flex 4, Zend & PHP. I created a few php dataservices

  • 0

I am using Flex 4, Zend & PHP. I created a few php dataservices & modified them to create 1 php file w/ my database connections that will then be used throughout my service calls in flex. I tested my php using just php & everything works fine.

When I test it in Flex, though, I get an error “Make sure that Zend Framework is installed correctly and the parameter “amf.production” is not set to true”.

I’ve tracked it down to the first line in my code below that has an “include” statement…it’s not a php error as the script works in php. What is the workaround for Flex?

<?php

include ( "myConnections.php" ); // flex doesn't like this line
class myCustomClass {

 public $conn;

 public function __construct() {

   $this->conn = new conn();

   $this->connection = mysqli_connect(
       $this->conn->server,
       $this->conn->username,
       $this->conn->password,
       $this->conn->databasename,
       $this->conn->port
        );

}


public function myFunction () {

    // blah, blah, blah
}

}
?>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T23:25:55+00:00Added an answer on May 18, 2026 at 11:25 pm

    If you’re using the Zend framework , you shouldn’t have to use include statements, rather use the Bootstrap file to set your environment.

    This being said, are you sure that there isn’t a problem with myConnections.php? Just for debug purposes , have you tried to hardcode your connection values and then test with Flex?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working with php, Flex and zend's AMF Server using this guide. I
I've got my flex, php & zend project working fine on localhost but when
I'm using Flex 3.6 and ZEND AMF version 1.11 I have an array that
I'm using Flex Builder more and more and attempting to create a fairly asset
I am Using Flex 3 and apache with PHP 5.2. I am searching for
I've created a facebook application using flex. i tried server side both with apache-tomcat
I am creating an AIR application using Flex. In it I use a file
I am using RemoteObjects to call ZendAMF PHP from Flex/Flash Builder 4.6. I want
Using Flex Builder : I have created a new Actionscript Project. I want to
I am using Flex Builder 3 and visual studio 2010 I have created webService.asmx

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.