Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Forum: Plugins
    In reply to: wp_photo blues
    Thread Starter markalot

    (@markalot)

    http://www.php.net/manual/en/function.include.php
    I had to remove the includes and instead do a require and copy the config file to both the root and admin directory. According to the PHP docs includes don’t return values unless you explicitly return a value from the included file, so I ssupect this is some kind of behavior change in more recent versions of PHP.
    I had a nice conversation with myself here. 🙂

    Forum: Plugins
    In reply to: wp_photo blues
    Thread Starter markalot

    (@markalot)

    if (!@include(‘wp-photos.config.php’)) {
    if(!@include(‘../wp-photos.config.php’)) {
    die(‘error, could not include WP Photos settings.’);
    }
    }
    .
    .
    The above code is completely failing me. It can’t load the config file. If I change it to :
    .
    if (!@include(‘wp-photos.config.php’)) {
    die(‘error, could not include WP Photos settings.’);
    }
    .
    It will work for for index.php, or at least not complain, but not for wp-admin/edit.php. In either case, I can’t call a function out of the include file even if it appears to load correctly.

    Forum: Plugins
    In reply to: wp_photo blues
    Thread Starter markalot

    (@markalot)

    I found the first problem … I always do after I post 🙂
    for edit.php:
    Including ‘..\wp-photos.hack.php’ which includes ‘wp-photos.config.php’ does not work because wp-photos.config.php is not in the admin directory. I suspect this might be a pathing symptom unique to php on windows? still working on it …
    🙂

Viewing 3 replies - 1 through 3 (of 3 total)