Re: Techniques for doing story
| From: | Chris Shiflett | Date: | Tue, 17 Aug 2004 16:14:29 +0000 |
| Subject: | Re: Techniques for doing story | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-194046@lists.php.net to get a copy of this message | ||
--- rogue <rogue@rightcode.net> wrote:
> I want to do something like this:
>
> http://www.cgnetworks.com/story_custom.php?story_id=2259
>
> Where we can publish an article, multiple page even and lay
> it out in a nice design with images etc. How do you think
> this is done?
Nice designs and images come from good designers.
The "dynamic" part you're talking about is probably something like this:
switch ($_GET['story_id'])
{
case '2259':
include '/stories/foo.inc';
break;
/* More stories here... */
default:
include '/stories/404.inc';
break;
}
Hope that helps.
Chris
=====
Chris Shiflett - http://shiflett.org/
PHP Security - O'Reilly
Coming Fall 2004
HTTP Developer's Handbook - Sams
http://httphandbook.org/
PHP Community Site
http://phpcommunity.org/