Hi, i lost some scripts...

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Darkre1gn
Forum Newbie
Posts: 2
Joined: Fri Oct 17, 2003 2:16 pm

Hi, i lost some scripts...

Post by Darkre1gn »

Hey, i just registered. :)

I want to make a site that i won't have to update constantly everytime i edit something in the navigation box.
What i mean: i used to have a script that enabled me to have 1 index.php file in it would be the navigation box & the banner of my website, the file it would include depended on the page the user was trying to view.

Do any of you use/have/know how to make a script like that?

And also, i wanted to make a news page that would use the topic's title as the news title and the topic's first message as the new's content. But unfortunetly i lost that script too.

Do any of you use/have/know how to make a script like that?

(excuse my english, english isn't my motherlanguage :P)
Darkre1gn
Forum Newbie
Posts: 2
Joined: Fri Oct 17, 2003 2:16 pm

Post by Darkre1gn »

So i should make all my .html pages to .php pages and add at the top something like:

<html>
<head>
<title>hi/title>
</head>
<body>
<?php

include 'index.php'
?>

(blabla, content, blabla)
</body>
</html>

And also, the news script was for yabbse, i believe it was almost the same as the one above... anyone?

btw. i'm dutch. ;)
Post Reply