Forum Moderators: coopster

Message Too Old, No Replies

PHP includes?

         

Immersion

10:27 pm on Jan 6, 2005 (gmt 0)

10+ Year Member



Hello,
I do not no much about PHP. In wanting to learn I would like to take a piece of information that will be changed monthly (a recipe) and have it dynamically replaced by PHP? Is this a difficult starting point to learn basic PHP? Are includes the way to do this? Can anyone suggest a place for a tutorial or the best way to accomplish this?

Thank you

dreamcatcher

12:13 am on Jan 7, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hey, we all have to start somewhere, so why not give it a go:)

As you want your data displayed monthly, you will need to check out PHP`s date functions. If all you want is a simple code snippet, also look into arrays. They hold data in slots and in conjunction with the date functions, could be called at any time.

For larger projects, a database will come in handy.

Good luck.

dc

Immersion

12:31 am on Jan 7, 2005 (gmt 0)

10+ Year Member



Thanks for the info. I will check into arrays. Do arrays have advantages over includes?

Thanks again

coopster

12:33 am on Jan 7, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



I agree! And welcome to WebmasterWorld, Immersion.

Have you had a chance to check out some of the tips in the PHP Forum Library [webmasterworld.com]? One thread that may be of interest to you is Learning PHP - Books, Tutorials and Online Resources [webmasterworld.com].

Immersion

1:48 am on Jan 7, 2005 (gmt 0)

10+ Year Member



Coopster,
Thanks! That is a great place to start. I will start working there.

thanks

airbear

1:56 am on Jan 8, 2005 (gmt 0)

10+ Year Member



You may also want to check out:
[htmlgoodies.com...]
[w3schools.com...]