2010-11-15, 12:00:16
hello
I'm trying to convert a function I'm using to get page excerpt into a plugin.
I've got some problems with it
In plugin's code when I use
$loaduserfile = @file_get_contents('data/pages/'.$page.'.xml');
and echo the output, I get only content of <pubDate> part of xml file
(example: Mon, 15 Nov 2010 10:41:09 +1030) and not even 1 char more, while function placed in theme/functions.php works fine.
Using
$loaduserfile = @file_get_contents(GSDATAPATH.$page.'.xml');
doesn't load file.
Is there any explanation ?
I'm trying to convert a function I'm using to get page excerpt into a plugin.
I've got some problems with it
In plugin's code when I use
$loaduserfile = @file_get_contents('data/pages/'.$page.'.xml');
and echo the output, I get only content of <pubDate> part of xml file
(example: Mon, 15 Nov 2010 10:41:09 +1030) and not even 1 char more, while function placed in theme/functions.php works fine.
Using
$loaduserfile = @file_get_contents(GSDATAPATH.$page.'.xml');
doesn't load file.
Is there any explanation ?
Addons: blue business theme, Online Visitors, Notepad