PhP Article Output
Posted: Tue Feb 03, 2004 3:42 pm
I'm new to PhP.
I am interested in setting up an article directory so that specific article(s) can then be called into a given template.
So say I have directory "A" something like http://test.me.com/articles/
I would then have files named something like atcl0001.htm, atcl0002.htm, atcl0003.htm, etc in the above directory.
Then I have a link on another page page that calls a specific article within that article directory.
The link might look like http://test.me.com/articles.php?getid=105 and would load the target article into this example template page.
The result would be I only need 1 template page to output the given article directory.
What I would like to know, is there an easy way to impliment something like this?
I'm sure there are several ways and easy to use PhP scripts. I'm just so PhP ignorant, I am not sure where to begin.
BTW, little snipbits of code doesn't help me at all at this point. I could really use an entire script to understand what is going on with something like this.
Thanks for any help
I am interested in setting up an article directory so that specific article(s) can then be called into a given template.
So say I have directory "A" something like http://test.me.com/articles/
I would then have files named something like atcl0001.htm, atcl0002.htm, atcl0003.htm, etc in the above directory.
Then I have a link on another page page that calls a specific article within that article directory.
The link might look like http://test.me.com/articles.php?getid=105 and would load the target article into this example template page.
The result would be I only need 1 template page to output the given article directory.
What I would like to know, is there an easy way to impliment something like this?
I'm sure there are several ways and easy to use PhP scripts. I'm just so PhP ignorant, I am not sure where to begin.
BTW, little snipbits of code doesn't help me at all at this point. I could really use an entire script to understand what is going on with something like this.
Thanks for any help