Hi, I am including a config.php from an external file into the system. The problem is that none of the variables from the config.php is available in the system.
The config.php contains variables like:
$image_type = 'jpg';
$download_count = 10';
The page inside elgg, I tried to retrieve the variables by using:
global $image_type, $download_count;
echo $image_type;
That does not show any result. Any help would be greatly appreciated.
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Carlos@cloodo
Carlos - 0 likes
- mechtech@mechtech
mechtech - 0 likes
You must log in to post replies.It looks like that particular config file is not referenced in the core and therefore those variables would foreign.
Try to include the variables in the page where you want them retrieved. (inside the php code of that page itself).
-Carlos
Thank you :) I was able to get around the issue by skipping the config as you suggested.