Re: [PHP] Techniques for doing story

2004-08-17 Thread raditha dissanayake
Chris Shiflett wrote:
--- John Nichel <[EMAIL PROTECTED]> wrote:
 

We're all friendly...
Except for that Chris guy
I hear he's real mean. ;)
   

Hey, that's not true! :-)
 

must be the other cris then.
--
Raditha Dissanayake.

http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload
Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader
Graphical User Inteface. Just 128 KB | with progress bar.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Techniques for doing story

2004-08-17 Thread John Nichel
Chris Shiflett wrote:
--- John Nichel <[EMAIL PROTECTED]> wrote:
We're all friendly...
Except for that Chris guy
I hear he's real mean. ;)

Hey, that's not true! :-)
Well, I'll quit spreading that rumor then. ;)
--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Techniques for doing story

2004-08-17 Thread Chris Shiflett
--- John Nichel <[EMAIL PROTECTED]> wrote:
> We're all friendly...
> 
> Except for that Chris guy
> 
> I hear he's real mean. ;)

Hey, that's not true! :-)

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/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Techniques for doing story

2004-08-17 Thread charles kline
On Aug 17, 2004, at 1:04 PM, Matthew Sims wrote:

hn C. Nichel
OMG, John. You broke through to someone. This could be good sign. Now 
if
we can just get him to stop top posting he'll be ready for anything. ;)


oops... now i got it! :)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Techniques for doing story

2004-08-17 Thread Jason Davidson
hehe, funny crew too :)

"Matthew Sims" <[EMAIL PROTECTED]> wrote: 
> 
> > Yea, But then I took his advice and found this
> > http://www.catb.org/~esr/faqs/smart-questions.html#keepcool so I was
> > not so offended :)
> >
> > I had all the other links, but that one and did not think my question
> > was that "out there" for the list... oh well.
> >
> >
> > On Aug 17, 2004, at 12:31 PM, Jason Davidson wrote:
> >
> >> Friendly crew today. :)
> >>
> >> Jason
> >>
> >> John Nichel <[EMAIL PROTECTED]> wrote:
> >>>
> >>> rogue wrote:
>  Hi all,
> 
>  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? These
>  stories are dynamically generated it seems since the page is passed
>  in
>  the URL. I am just not sure where to start...
> >>>
> >>> First : http://vzone.virgin.net/sizzling.jalfrezi/iniframe.htm
> >>> Second : http://us4.php.net/manual/en
> >>> Third : http://dev.mysql.com/doc/mysql/en/index.html
> >>>
> >>> And before you come to a mailing list
> >>>
> >>> http://www.google.com
> >>> http://groups.google.com
> >>> http://marc.theaimsgroup.com
> >>> http://www.catb.org/~esr/faqs/smart-questions.html
> >>> RTFM
> >>> STFW
> >>> STFA
> >>>
> >>> --
> >>> John C. Nichel
> 
> OMG, John. You broke through to someone. This could be good sign. Now if
> we can just get him to stop top posting he'll be ready for anything. ;)
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Techniques for doing story

2004-08-17 Thread Matthew Sims
> Yea, But then I took his advice and found this
> http://www.catb.org/~esr/faqs/smart-questions.html#keepcool so I was
> not so offended :)
>
> I had all the other links, but that one and did not think my question
> was that "out there" for the list... oh well.
>
>
> On Aug 17, 2004, at 12:31 PM, Jason Davidson wrote:
>
>> Friendly crew today. :)
>>
>> Jason
>>
>> John Nichel <[EMAIL PROTECTED]> wrote:
>>>
>>> rogue wrote:
 Hi all,

 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? These
 stories are dynamically generated it seems since the page is passed
 in
 the URL. I am just not sure where to start...
>>>
>>> First : http://vzone.virgin.net/sizzling.jalfrezi/iniframe.htm
>>> Second : http://us4.php.net/manual/en
>>> Third : http://dev.mysql.com/doc/mysql/en/index.html
>>>
>>> And before you come to a mailing list
>>>
>>> http://www.google.com
>>> http://groups.google.com
>>> http://marc.theaimsgroup.com
>>> http://www.catb.org/~esr/faqs/smart-questions.html
>>> RTFM
>>> STFW
>>> STFA
>>>
>>> --
>>> John C. Nichel

OMG, John. You broke through to someone. This could be good sign. Now if
we can just get him to stop top posting he'll be ready for anything. ;)

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Techniques for doing story

2004-08-17 Thread charles kline
Yea, But then I took his advice and found this 
http://www.catb.org/~esr/faqs/smart-questions.html#keepcool so I was 
not so offended :)

I had all the other links, but that one and did not think my question 
was that "out there" for the list... oh well.

On Aug 17, 2004, at 12:31 PM, Jason Davidson wrote:
Friendly crew today. :)
Jason
John Nichel <[EMAIL PROTECTED]> wrote:
rogue wrote:
Hi all,
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? These
stories are dynamically generated it seems since the page is passed 
in
the URL. I am just not sure where to start...
First : http://vzone.virgin.net/sizzling.jalfrezi/iniframe.htm
Second : http://us4.php.net/manual/en
Third : http://dev.mysql.com/doc/mysql/en/index.html
And before you come to a mailing list
http://www.google.com
http://groups.google.com
http://marc.theaimsgroup.com
http://www.catb.org/~esr/faqs/smart-questions.html
RTFM
STFW
STFA
--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Techniques for doing story

2004-08-17 Thread Matthew Sims
> I understand how the pages are designed etc. What I wanted to
> understand better was how the pages were being displayed using PHP. I
> guess it is obvious now after getting a few responses, that the HTML is
> stored in a table, perhaps one record per page... then you just query
> the story_id and page through the records. Guess it isn't that
> mysterious after all ;)

You top posted...but I'll let it slide. ;)

The HTML is probably an empty template shell. And it's PHP's job to fill
in the images/stories/paragraphs/pages depending on the story_id var
that's passed through.

PHP determines the number of pages is needed by how many paragraphs you
want per page.

PHP will display the proper images that coorespond to the story_id var. It
really isn't all that complicated. The site's design does look really
good. But it's not really different from any other dynamic website.

-- 
--Matthew Sims
--

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Techniques for doing story

2004-08-17 Thread John Nichel
Jason Davidson wrote:
Friendly crew today. :)
We're all friendly...
Except for that Chris guy
I hear he's real mean. ;)
--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Techniques for doing story

2004-08-17 Thread Jason Davidson
Friendly crew today. :)

Jason

John Nichel <[EMAIL PROTECTED]> wrote: 
> 
> rogue wrote:
> > Hi all,
> > 
> > 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? These 
> > stories are dynamically generated it seems since the page is passed in 
> > the URL. I am just not sure where to start...
> 
> First : http://vzone.virgin.net/sizzling.jalfrezi/iniframe.htm
> Second : http://us4.php.net/manual/en
> Third : http://dev.mysql.com/doc/mysql/en/index.html
> 
> And before you come to a mailing list
> 
> http://www.google.com
> http://groups.google.com
> http://marc.theaimsgroup.com
> http://www.catb.org/~esr/faqs/smart-questions.html
> RTFM
> STFW
> STFA
> 
> -- 
> John C. Nichel
> ÜberGeek
> KegWorks.com
> 716.856.9675
> [EMAIL PROTECTED]
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Techniques for doing story

2004-08-17 Thread charles kline
I understand how the pages are designed etc. What I wanted to 
understand better was how the pages were being displayed using PHP. I 
guess it is obvious now after getting a few responses, that the HTML is 
stored in a table, perhaps one record per page... then you just query 
the story_id and page through the records. Guess it isn't that 
mysterious after all ;)


On Aug 17, 2004, at 12:18 PM, Matthew Sims wrote:
Hi all,
I want to do something like this:
http://www.cgnetworks.com/story_custom.php?story_id=2259corresponding
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?
Uh...HTML? It is a website, correct?
These stories are dynamically generated it seems since the page is
passed in the URL. I am just not sure where to start...
Thanks,
Rogue
PHP has nothing to do with the layout. The story is probably stored in 
a
database and the story_id var is passed through $_GET to pull up the
cooresponding story.

Learn HTML and CSS and you can make a website look however you want it 
to
look. PHP simply makes the pages change depending on user events.

--
--Matthew Sims
--
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Techniques for doing story

2004-08-17 Thread John Nichel
rogue wrote:
Hi all,
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? These 
stories are dynamically generated it seems since the page is passed in 
the URL. I am just not sure where to start...
First : http://vzone.virgin.net/sizzling.jalfrezi/iniframe.htm
Second : http://us4.php.net/manual/en
Third : http://dev.mysql.com/doc/mysql/en/index.html
And before you come to a mailing list
http://www.google.com
http://groups.google.com
http://marc.theaimsgroup.com
http://www.catb.org/~esr/faqs/smart-questions.html
RTFM
STFW
STFA
--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Techniques for doing story

2004-08-17 Thread Jason Davidson
THats kinda cool.  you see that there is also a page=2 query if you
click to a different page, so i would assume, they store the html in a
database for each page of a story. and then give a story_id to those
records.  so in the table, if there is 4 pages for story 12, then there
are 4 records all with story_id 12.  The path to the images is up to
you, i see that site oyu mentioned creates a directory structure using
the contributor, and date, then the directory images.. of coarse you
would need to know the dir path to your uploaded images 

Jason

rogue <[EMAIL PROTECTED]> wrote: 
> 
> Hi all,
> 
> 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? These 
> stories are dynamically generated it seems since the page is passed in 
> the URL. I am just not sure where to start...
> 
> Thanks,
> Rogue
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Techniques for doing story

2004-08-17 Thread Chris Shiflett
--- rogue <[EMAIL PROTECTED]> 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/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Techniques for doing story

2004-08-17 Thread raditha dissanayake
please ask a PHP specific question.
rogue wrote:
Hi all,
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? These 
stories are dynamically generated it seems since the page is passed in 
the URL. I am just not sure where to start...

Thanks,
Rogue

--
Raditha Dissanayake.

http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload
Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader
Graphical User Inteface. Just 128 KB | with progress bar.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Techniques for doing story

2004-08-17 Thread Matthew Sims
> Hi all,
>
> I want to do something like this:
>
> http://www.cgnetworks.com/story_custom.php?story_id=2259corresponding
>
> 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?

Uh...HTML? It is a website, correct?

> These stories are dynamically generated it seems since the page is
passed in the URL. I am just not sure where to start...
>
> Thanks,
> Rogue

PHP has nothing to do with the layout. The story is probably stored in a
database and the story_id var is passed through $_GET to pull up the
cooresponding story.

Learn HTML and CSS and you can make a website look however you want it to
look. PHP simply makes the pages change depending on user events.

-- 
--Matthew Sims
--

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Techniques for doing story

2004-08-17 Thread rogue
Hi all,
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? These 
stories are dynamically generated it seems since the page is passed in 
the URL. I am just not sure where to start...

Thanks,
Rogue
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php