PDA

View Full Version : including a php file


larren
02-25-2005, 03:57 PM
Is there anyway I could allow including a local php file inside my article? I do the include but it just parses the include function as text.
I know I need to change something at function GetContent() but I'm not sure what it should be.
The file I'm trying to include will be included in all articles and the output would depend on the article id and page id which for some reason i see you giving the same value.

Thanks in advance.
James Larren.

larren
02-28-2005, 03:16 AM
Never mind I got it

Chris S
03-07-2005, 01:05 AM
Hi James,

If it's going to be included at every article, you could just modify the GetContent() function to include it instead and remove the request from your article.

Where are you seeing us give the same article & page id all the time ?

Is there anyway I could allow including a local php file inside my article? I do the include but it just parses the include function as text.
I know I need to change something at function GetContent() but I'm not sure what it should be.
The file I'm trying to include will be included in all articles and the output would depend on the article id and page id which for some reason i see you giving the same value.

Thanks in advance.
James Larren.