SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Addict bimalpoudel's Avatar
    Join Date
    Feb 2009
    Location
    Kathmandu, Nepal
    Posts
    279
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Make ZendFramework run on older PHP version

    I created a small ZendFramework based project using localhost (php 5.3).
    After the completion and full checkups of the application, the customer later provided the server with php 5.2.9.

    This means, my PDO based scripts do not run on the server, and there is no chance to upgrade PHP on the server.

    How can I alter my application codes and make it run on this server environment?
    I guess PDO is only the problem, but there may be more issues.
    Bimal Poudel @ Sanjaal Framework over Smarty Template Engine
    ASKING INTERESTING QUESTIONS ON SITEPOINT FOURM

    Hire for coding support - PHP/MySQL

  2. #2
    Non-Member
    Join Date
    Oct 2007
    Posts
    363
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    Pretty sure pdo should work in versions prior to 5.3. Is the problem that they just don't have the pdo extension itself installed?

  3. #3
    Hosting Team Leader silver trophybronze trophy
    cpradio's Avatar
    Join Date
    Jun 2002
    Location
    Ohio
    Posts
    5,169
    Mentioned
    153 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by aaarrrggh View Post
    Pretty sure pdo should work in versions prior to 5.3. Is the problem that they just don't have the pdo extension itself installed?
    Agreed, a look at the PHP documentation states part (if not all) was introduced in 5.1

    Do you have an error message? Maybe a specific function of PDO isn't available until a later version or maybe it isn't enabled/installed on the server.

  4. #4
    SitePoint Addict bimalpoudel's Avatar
    Join Date
    Feb 2009
    Location
    Kathmandu, Nepal
    Posts
    279
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I found that the mysql connection parameters were in single quote - in the file: application/configs/application.ini
    Just used double quotes there and all the dramas went off.

    The values should be either not-be quoted at all, or be in double quotes.

    This issue is solved for me at the moment.
    But the ZendFramework related other forums do have a still discussion of the PHP Version Requirements.
    In my case, it is solved with MYSQLI and double quoted values in application.ini

    Thank you all.
    Bimal Poudel @ Sanjaal Framework over Smarty Template Engine
    ASKING INTERESTING QUESTIONS ON SITEPOINT FOURM

    Hire for coding support - PHP/MySQL


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •