markalot
Forum Replies Created
-
Forum: Plugins
In reply to: wp_photo blueshttp://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 bluesif (!@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 bluesI 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 …
🙂