Using Zend Framework

Is anyone using zend with Wamp successfully, I have revisited this "framework" a few times but revert back to amfphp because at least it works, now when I go to start with zend it copies itself to my host then when I go to create classes I get an error if I try to proceed wamp gets trashed.
image of error attached.
David

Mayank (Adobe) wrote:
Did the server settings entered in the new project wizard validate? Which version of WAMP are you trying to use?
-mayank
The server was validated and zend installed into the wamp webfolder correctly, its just that when attempting to create a sample class things fail then wamp becomes unusable even after a reboot. I use wamp 2.0i.  Anyway the upshot is that from the beginning the zend framework has been more a hinderance than a help its a pity that Adobe didn't strike a deal with the author of AMFPhp(who unfortunately went to zend) and just give us a proper set of AMF classes instead of a low performance framework which is more about bloat than functionality and even less about AMF.
Anyway as I said earlier i have better things to do with my time and I now have the deprecated parts of AMFPhp sorted so its back to something that works without the headaches.
David.

Similar Messages

  • Uploading files using Zend Framework

    I am tyring to use the Zend Framework to upload files as outlined in the "Adobe Dreamweaver CS5 with PHP" book by David Powers.  I've been using the example code (more or less), and can get it to work perfectly with a local XAMPP installation of Apache and PHP.  Howver, I can't get it to work successfully with a hosted site, having tried both GoDaddy and Verio.
    The Zend Framework is correctly installed, include paths set correctly (I know this because other Zend FW operations, such as validation work fine).  In addition, if the directory I want to upload to isn't correctly specified I get errors on that.  But when I try to actually upload a file (again, with code that works on the XAMPP platform), I get nothing.  No errors, and no uploaded file.
    I have the script set up to send an email with a link to the uploaded file, and the name field is blank (but the email does get sent, again indicating that the ZF is working).  I'm concluding I have something incorrectly configured on the hosting plaforms, and am looking for suggestions as what to look at.  Thanks.
    BTW, checked the permissions on the upload directory, and it should be writeable...

    David,
    Thanks for the reply.  I neglected to mention that file upload do work on the server, it's just the Zend FW implementation that doesn't.  The Zend FW is basically what is in your book, and nothing happens when I try an upload, but I know that the code is talking to the FW (e.g., if I provide an invalid path, I get the appropraite PHP error).  If I don't use the FW it works.  So the following code correctly uploads a file on the hosting platform:
    if ($_POST['send']) {
    //validate the user input
    $val = new Zend_Validate_Alnum(TRUE);
    if (!$val->isValid($_POST['name'])) {
       $errors['name'] = 'Name is required';
    $val = new Zend_Validate_EmailAddress();
    if (!$val->isValid($_POST['email'])) {
       $errors['email'] = 'Email address is required';
    $val = new Zend_Validate_StringLength(10);
    if (!$val->isValid($_POST['message'])) {
       $errors['message'] = 'Required';
    if (!$errors) {
      foreach($_FILES as $temp_name => $file_array) {
       $file_name = str_replace(" ","_",$file_array["name"]);
       if (is_uploaded_file($file_array["tmp_name"])) {
        move_uploaded_file($file_array["tmp_name"], "$file_dir/".$file_name) or die ("Couldn't copy");
       $new_names[] = $file_name;
      //start building the mail string
      $msg = "Name:\n\t\t".$_POST["name"]."\n";
      $msg .= "E-Mail:\n\t\t".$_POST["email"]."\n";
      $msg .= "Message:\n\t\t".$_POST["message"]."\n";
      foreach ($new_names as $name) {
       if ($name != "") {
       $msg .=  "Link: xxx/uploads/$name"."\n\n";
    Using this code I wil email that contains links to the uploaded files, which I can then sucessfully download.  So it's the FW code that fails... and note that the Zend validation code above does work correctly; I get errors if invalid entries are made.
    Also, I note that my hosting providers only support PHP 5.2.14, whereas on my XAMPP installation I'm using 5.3  Could that be an issue?

  • Using Zend with Wampserver

    I have a development environment that consists of:
    Wampserver 2.1e
    Apache 2.2.17
    PHP 5.3.5
    MySQL 5.5.8
    AMFPHP 1.9,
    Flex Builder 3 (now upgrading to Flash Builder 4.5.1 for PHP)
    My production server environment is:
    Linux 2.6.18
    Apache 2.2.17
    PHP 5.2.16
    MySQL 5.1.52
    I want to be able to use the debugging tools (Zend) that will allow me to trace through ActionScript and PHP code, but I don't know how to configure my environment to do this.
    Is this possible? Should I even bother? Is the Zend framework that come with Flash Builder 4.5.1 compatible with AMFPHP/Wampserver?
    Should I change over to Zend framework as my server?
    If anyone can point me in the right direction I would greatly appreciate it.

    Mayank (Adobe) wrote:
    Did the server settings entered in the new project wizard validate? Which version of WAMP are you trying to use?
    -mayank
    The server was validated and zend installed into the wamp webfolder correctly, its just that when attempting to create a sample class things fail then wamp becomes unusable even after a reboot. I use wamp 2.0i.  Anyway the upshot is that from the beginning the zend framework has been more a hinderance than a help its a pity that Adobe didn't strike a deal with the author of AMFPhp(who unfortunately went to zend) and just give us a proper set of AMF classes instead of a low performance framework which is more about bloat than functionality and even less about AMF.
    Anyway as I said earlier i have better things to do with my time and I now have the deprecated parts of AMFPhp sorted so its back to something that works without the headaches.
    David.

  • Problems installing Zend Framework on Windows

    Hi,
    I've set up a Flex project that uses the Zend Framework to communicate with a PHP webservice, and on my development machine, which is a Mac, it works fine. The framework was installed automatically by Flash Builder, and I've then added my services to that.
    However when I go to upload this to the Windows server which will be hosting the live solution, I get an error message as follows:
    (mx.messaging.messages::ErrorMessage)
    faultCode = "Client.Error.DeliveryInDoubt"
    faultDetail = "Channel disconnected before an acknowledgement was received"
    I have updated the amf_conf.ini to point to the correct location for the services folder and the framework itself, and if I try to call a method which doesn't exist on the service then I get the following error:
    faultDetail = "#0 C:\xampp\htdocs\PHPFrameworks\ZendFramework\library\Zend\Amf\Server.php(553): Zend_Amf_Server->_dispatch('test', Array, 'WebService')
    #1 C:\xampp\htdocs\PHPFrameworks\ZendFramework\library\Zend\Amf\Server.php(629): Zend_Amf_Server->_handle(Object(Zend_Amf_Request_Http))
    #2 C:\xampp\htdocs\gateway.php(69): Zend_Amf_Server->handle()
    #3 {main}"
      faultString = "Method "test" does not exist"
    This suggests to me that the framework is running properly and is able to introspect the class, because it tells me that the method doesn't exist.
    So I'm puzzled as to why this isn't working. It isn't an issue with connecting to the database as the 'test' method only returns a string - there is no logic besides a simple return.
    I've tried including the Zend Framework path in the php.ini config, but I won't be able to do this on the live (hosted) server, but even so it didn't help.
    Does anyone have any idea what could be causing this?
    Many thanks,
    Christian

    FOUNDED A SOLUTION!!!!!!
    I was in the same situation, and after searching everywhere, tried evreything except reinstall the whole OS and all the programs from beginning (this I was told by the adobe help center!!), I tried the impossibile (or maybe not):
    1 - uninstalled muse (it was in the list of uninstallable softwares, even if muse was not really installed, no directory, no shortcut, nothing)
    2 - uninstalled air
    3 - downloaded muse from here http://www.adobe.com/go/muse_latest-win and installed
    UNBELIVABLE the installation begin (before when clicking on it nothing happened)
    4 - launched the program and incredibly it ran!!!!
    5 - downloaded (from here http://get.adobe.com/air) and reinstalled air and the program said that it was still installed!!!
    6 - I tried to launch an air application (adobe help for example) and it worked!!!!!!!
    Hope this is a possible solution for someone else, I really lost days fixing that
    ps: just an updated still persistent little bug: I'm a creative cloude subscriber, and in my CC panel I still have the option of install muse

  • Configuration of redirects from Zend Framework

    Hi,
    I have to use a PHP project which are develop based on Zend Framework. I use SJWS 7u4 and have to implement mod_rewrite rules form Zend Framework (stndard rules).
    I have to make rewrite url from http://some-name/some-dir/some-dir2 into http://some-name/index.php/some-dir/some-dir2
    Exactly mod_rewrite rules are:
    RewriteCond %{REQUEST_FILENAME} -s [OR]
    RewriteCond %{REQUEST_FILENAME} -l [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^.*$ - [NC,L]
    RewriteRule ^.*$ index.php [NC,L]
    RewriteBase /
    I tried to make some rules in obj.conf, but I have problem with Sun's rules (my rules make strange chain of redirects).
    IS there anybody to help? Maybe soemone heve the same problem.
    Irek

    Unless I'm reading your rules wrong they seem to be saying:
    If the requested URI exists and has size, OR
    If the requested URI is a sym link, OR
    If the requested URI is a directory, THEN
    Serve the file as requested, OTHERWISE
    Rewrite the URL (internally restart the request) as index.php
    Do I have that right?
    I'd probably do something like this:
    <If not $internal
        and not -s $path > 0
        or not -l $path
        or not -d $path>
      AuthTrans fn="restart" uri="/index.php"
    </if>This may be more complex than what you need though (it also might now actually work the way I think it does, I haven't tried it). What you appear to be doing is saying "if the URI points to a real resource, serve it otherwise process the request as though it was for index.php." This could probably be accomplished more easily with:
    <If not $internal
        and not -U $path>
      AuthTrans fn="restart" uri="/index.php"
    </if>This tells Web Server to skip the evaluation if the request has already been restarted AND if $path points to a real (and accessible) file on disk.
    I just yesterday [wrote about a similar evaluation|http://jmccabe.org/drupal_and_web_server] in making Drupal work with Web Server. A couple of my other blog entries cover using the expression syntax for various tasks.
    I also recommend bookmarking and re-reading often the [expression docs|http://docs.sun.com/app/docs/doc/819-2630/gdaer?a=view] . I find myself re-reading it constantly when playing with expressions.

  • Question for David Powers - Zend Framework

    Using the Zend Framework on your local machine and referencing the library I was wondering when you FTP your code to an online server (How do you reference $library = 'C:/php_library/ZendFramework/library';)? As it would not be no longer on you local machine.

    Silken_thread wrote:
    Using the Zend Framework on your local machine and referencing the library I was wondering when you FTP your code to an online server (How do you reference $library = 'C:/php_library/ZendFramework/library';)? As it would not be no longer on you local machine.
    Simple. You upload the Zend Framework to your remote server, and point $library to the new location.
    It's covered in Lesson 13 of the book (pages 468-469).

  • Why is zend framework required

    if I want to connect a flex app to php do I have to have zend installed on my server?

    Zend Framework is a popular open-source PHP framework that includes many components useful for writing high-quality PHP applications. It needs to be installed in your PHP runtime in order to enable dynamic class loading in the gateway script that translates between PHP and ActionScript objects. Zend Framework is included in Zend Server and Zend Server CE; if using a different PHP runtime, you should download and install it separately.
    Some helpful links:
    FAQ - http://www.zend.com/en/products/studio/flash-builder-for-php/
    PHP/Flex integration with gateway script - http://files.zend.com/help/Flash-Builder-for-PHP/Help/php_support_properties.htm
    Enjoy,
    Roy

  • Add MySQL + Zend Framework 2?

    My LAN: Mac Mini Server + Time Capsule + two iMacs. Comcast cable modem is in bridged mode, DHCP and NAT provided by Time Capsule. Mac Mini Server provides DNS service to the LAN and Open Directory service as well as FTP, Websites and Wiki services that are publicly accessible to authorized users.
    One of the iMacs was previously configured to run Apache Server, MySQL and PHP as well as phpMyAdmin and Zend Framework 2. All were disabled so they would interfere with setting up a LAN and incorporating Server.app. I want to start developing with ZF2 again.
    Is it better to add MySQL + phpMyAdmin + ZF2 to the Server or make the modifications necessary to have them continue to run on the iMac?
    I prefer to stay with MySQL but don't mind giving MariaDB a try.
    I don't mind buying another domain name if that makes things easier, but it will have to share my current static IP address. It's main use will be for developing and testing PHP/ZF2 applications.
    Thanks in advance for any recommendations!

    Thank you for your comments, they're appreciated, especially the advice regarding phpMyAdmin. I like to use it for development, but it's not necessary in a production environment.
    There is a LOT of information about MySQL, PostgreSQL, MariaDB, phpMyAdmin, PgAdmin, phpPgAdmin, ZF2, etc. for Mountain Lion that erroneously claim to work for Mountain Lion Server as well. But there are significant differences between ML and ML Server, at least with PostgreSQL (different location) and PgAdmin (removed by the Server.app installer).
    I may give PostgreSQL and PgAdmin or phpPgAdmin a try since PostgreSQL is already installed. PgAdmin and phpPgAdmin were very easy to install and configure.
    PostgreSQL is used by some services provided by Server.app so I need to be careful when setting it up for my databases. It may be as simple as creating another superuser.
    Then again, it may be better to reconfigure the setup on iMac to get it working in my network. Based on your recommendation in another thread I looked into MariaDB as a "drop-in" replacement to MySQL. That looks promising, but I'm wary of using MacPorts or Homebrew to install it and I haven't yet slogged through all the steps needed to compile it on my iMac.

  • Oracle + PDO + Zend Framework

    Hello everyone,
    I am trying to connect to an Oracle database thru php PDO using the Zend_Db from Zend Framework, but i have a connection error stating that i use incorect handle
    the server platform is Linux
    The database software is 10G2 (enterprise edition)
    PHP version is 5.2.5
    oracle SID is web02prd
    PHP code for connect :
    public static function setDb(){
              $options = array ( Zend_Db::CASE_FOLDING => Zend_Db::CASE_UPPER);
              $params = array ('username' => 'user',
                             'password' => 'pass',
                             'dbname' => 'web02prd',
                             'options' => $options);
              try{
                   $db = Zend_Db::factory("PDO_OCI",$params);
                   $db->getConnection();
                   return $db;
              }catch(Zend_Db_Adapter_Exception $e){
                   echo $e->getMessage();
                   Zend_Debug::dump($db);
    and the error is :
    SQLSTATE[]: pdo_oci_handle_factory: OCI_INVALID_HANDLE (/usr/src/PDO_OCI/oci_driver.c:463)
    pdo and PDO_OCI are listed when i type php -m in command line

    hi, i've look at the article but it don't explain about PDO but using MVC and the Oracle Adapter, from my own research, the problem i have comes from Oracle installation or the PDO_OCI package, because when i try from 2 different workstation with different OS and having their own apache and php ENV it will work, it won't work on the oracle database host :/

  • The zend framework in FB4 works with PostgreSQL?

    Hi, first, I'm sorry if I'm in the incorrect forum jeje, i'm new in this forum.
    I would like to know if the zend framework in flash builder 4 can work with PostgreSQL, and if there's a tutotial about how to do.
    Thanks.
    Greetings.

    Can you explain more about what has failed?
    What are you using the PL/SQL procedures for? Are they pre-existing?
    I'd always recommend using OCI8 as the underlying driver - it is stabler and has better functionality, e.g. CLOB support.

  • Zend Framework gives strange Oracle query

    I'm trying to migrate an application from MySQL to Oracle. I'm a newbie to Oracle.
    I want the PHP scripts to work on both MySQL and Oracle.
    The query I want to do used to be (for MySQL via AdoDB):
    SELECT DISTINCT (id)
    FROM table1
    INNER JOIN table2 ON table1.id = table2.record_id
    AND table2.user_id = "XXX"
    AND table1.status = table2.status_id
    The following code works great for MySQL but generates some strange output for Oracle:
    $db = Zend_Db::factory('Oracle', //Mysqli for the MySQL db connection
    array(
    'host' => 'hostName',
    'dbname' => 'dbName',
    'username'=> 'userName',
    'password'=> 'userPasswd')
    $select = $db->select();
    $select->distinct();
    $select->from(array('i' => 'table1'),array('id'));
    $select->joinInner(array('u' => 'table2'),'i.id = u.record_id',array());
    $select->where('u.user_id = ?', 'XXX');
    $select->where('i.status=u.status_id');
    This results in
    for MySQL:
    SELECT DISTINCT `i`.`id` FROM `table1` AS `i` INNER JOIN `table2` AS `u` ON i.id = u.record_id WHERE (u.user_id = 'XXX') AND (i.status=u.status_id)
    this works fine.
    for Oracle:
    SELECT DISTINCT "i"."id" FROM "table1" "i" INNER JOIN *"table2" "u" ON i.id = u.record_id WHERE (u.user_id = 'XXX') AND (i.status=u.status_id)
    this does not work:
    ORA-00942: table or view does not exist
    when I copy/paste this in SQL developer this gives an error too, complaining about ' *"table2" ' which does not exist.
    The only query my SQL developer accepts is :
    SELECT DISTINCT i."id" FROM table1 i INNER JOIN table2 u ON i."id" = u."record_id" WHERE (u."user_id" = 'XXX') AND (i."status"=u."status_id")
    I have no idea how I can make this query with Zend Framework.
    The query should have:
    - no quotes around the table names
    - quotes around the column names
    - no * before the second table name (table2)
    Is this a Zend Framework problem or is my Oracle db not very well made?

    I believe there are some issues with ZF regarding quoting, e.g. see http://framework.zend.com/issues/browse/ZF-7267 (also note the comment about autoQuoteIdentifier).
    I'd review open ZF bugs, upgrade to the latest ZF and report the issue if it still occurs.
    At worst case, you may need a branch in your code that manually constructs the query when running against Oracle.

  • Zend Framework codebase not recognized when editing

    I installed the new Flash Builder 4.5 for PHP and I have successfully converted an existing PHP and Flex project into a forma that is compatible with using it in this IDE.  I am able to successfully debug both PHP and Flex at the same time.
    However, my issue is with the Zend Framework.  It is included as a library in the configuration of my PHP project, but it doesn't seem to be recognized when I'm editing. I use quite a bit of the framework in my PHP code and I have 100+ warnings saying different classes of the framework don't exist or can't be extended. So with that said, I can't get any type hinting from the framework, which to me is base functionality of the IDE. Also, when I hit CTRL+SHIFT+R to find a resource file, it doesn't show any of the ZF files.
    Does anyone have any suggestions on how I can get my project to recognize the framework within my IDE?  It's currently using the framework code that is installed with the IDE by default.

    Hi,
    To add the ZF code base to your project, right click on your php project and select properties. You will then be able to select the "Include path" property page where you can add a library (see the "Library" tab) to your project. Select the Zend Framework library,
    For more details on library addition see this page:
    http://files.zend.com/help/Zend-Studio/adding_elements_to_a_project_s_include_path.htm
    Roy

  • Zend framework files on my server generated by FB4

    I don't want to put all the zend framework files on my server generated by FB4, what is the minimum I need to upload to get the progect to work with the generated php stuff.

    The followng folders have to be present.
    Amf, Config, Db, Loader, Reflection, Server, XmlRpc.
    These folders along with other php files under ZendFramework\library\Zend are minimum things which have to be uploaded for the php project to work fine.
    The total size of the above mentioned folders and files will come upto 2.4 MB.
    However, you might loose some functionality like authentication, session management, etc., which are provided by ZendFramework (if you decide to upload only the above mentioned files and folders). If you are not using such functionalities, you need not upload them, there by minimizing the ZendFramework size.
    Hope this helps.
    Thanks,
    Sudhir

  • Zend Framework Setup on Win7

    I have for over a month been trying to figure out how to get the zend framework working on my development environment. I have searched google, bing, yahoo, and youtube; tried following the zend.com tutorials/instructions; and purchased "Zend Framework: A Beginner's Guide" by Vikram Vaswani and yet I am still trying to figure out the setup for Zend Framework.
    From what I have read the way I would prefer to go is just alter my php.ini include_path and have Zend on a folder at the root of my WAMPserver.
    EDIT: My main question is: Is there anyone who is familiar with setup that wouldn't mind helping me through it using this forum or some other tool? Or could someone provide a good reference that perhaps I have missed?
    Thank you in advance. I have always found this forum very helpful.
    =====================================================
    FYI, my computer and WAMPserver have the following setup.
    Hardware:
    SSD is OS (lettered as the 'C' drive, runs Windows 7 Pro)
    HDD is for data (letterd as the 'D' drive)
    I use a Symlink that points 'C:\Users\Jason' to 'D:\Users\Jason'
    Software/Server
    I install all programs on the 'D' drive. ex: D:\Program Files\%Program Name%
    My WAMPserver is installed on the 'D' drive; D:\wamp
    I develop multiple sites and leave them on my testing environment all the time so I take advantage of virtual hosts
    More background (only read if details above weren't enough)
    I have successfully been developing small websites and web applications for over 4 years. I started with the help of David Powers's PHP solutions and then moved on to his PHP Object Oriented Solutions, as well as a few others such as "PHP and MySQL Web Development" and "Pro PHP Security."
    =======================================================
    Again, thank you in advance for your help.

    If you use the Zend Server Community Edition, which is free, it will install and activate ZF.

  • How to send HTML email using alert framework? Kindly help!

    Hi Experts,
          I am using alert framework (alert category) to send email. In the email message I want to use HTML content along with some hyperlinks.
         How can I do this?
         kindly help!
    Thanks
    Gopal
    Message was edited by:
            gopalkrishna baliga

    Hi,
    To send hyper links, you can add the links in the FollowUp Activity.
    The content of the mail from the alert framework will be a text mail.
    One option would be to check in your SCOT settings if it would be possible to set the Content Type as TEXT/HTML . If yes, then maybe this should be possible.
    Regards
    Bhavesh

Maybe you are looking for

  • How can i remove my daughters imail from icloud acount

    i am trying to set up family sharing and the itunes acount has always been the only one in the family. Now iam trying to set up family sharing for separation as i have my daughters contacts mixed with mine and i would assume thats because she turned

  • Creative and Marketing - we need to publici

    Why do we not see adds for the Creative players? I see itunes and ipod ads. There are no blogs adversiting gadgets and gizmos to add to our player. What do we do? I don't want to beat ipod, I want to atleast compete. I think I'll start a blog, and ga

  • How to open .vnt files in iphone

    how to open .vnt files in iphone

  • Why does CC keeps asking for login? Keeps showing up as trial.

    Since about a week ago, when I launch any Adobe CC it keeps asking me to login. Afer I login, it says that it's a trial version until it syncs up with my account with a "registration" button. I have to do this every time I launch any Adobe CC product

  • Imovie 11 runs ok in macbook air 11" 2012?

    I want to buy a macbook air 11 "2012. Need to know if you can edit video with iMovie 11 without problems. Want not regret after buying it. I used to edit videos of about 15 or 20 minutes with transitions and music. Use an external hard drive SSD for