WP Zend Library
PHP 5.3 required ... (3 posts)

  1. ixiter
    Posted 3 years ago #

    ... since you use __DIR__
    Better use dirname(__FILE__), which works with PHP <5.3

    I dont get, why you use the config file for the db acount data. I changed it to use the WP constants from wp-config.php. Works pretty good.

    However ... its a great plugin. I was just thinking of doing exactly the same, when I found this in the plugins pool.

    Thank you!


  2. doubleslash
    Posted 3 years ago #

    You just need to add that line at the start of wp-zend-library.php to use it on PHP 5.2 server :

    if(!defined(__DIR__)) define('__DIR__',dirname(__FILE_));

  3. phpflow
    Posted 3 years ago #

    I am getting below error
    Warning: fopen(http://framework.zend.com/api/zf-version) [function.fopen]: failed to open stream: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. in C:\wamp\www\wordpress\wp-content\plugins\wp-zend-library\library\Zend\Version.php on line 72
    i m passing below parametres in config.ini file

    ;<?php exit; // do not remove ?>

    ; Database connection settings
    ; Database functionality is automatically disabled if any of these settings are blank.
    ; for available adapters see http://framework.zend.com/manual/en/zend.db.adapter.html
    db.adapter = PDO_MYSQL
    db.params.host = localhost
    db.params.dbname = wordpress
    db.params.username = root
    db.params.password =

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Zend Library
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic