PHP Question

  • PIONEXhippie66
  • Born
  • Born
  • PIONEXhippie66
  • Posts: 2

Post 3+ Months Ago

Okay I have just recently started a security site.(Sucks right now but for this to make sence you might need to see it http://www.osproductions.2ya.com :roll: ). Anyway I have a main page that has all my news and and polls and such on the sides and my logo at the top.What I want to do is have articles in the middle of my main page. And whenever I update my main page i want all the other pages to update aswell.Do you see what I mean(sheesh this is difficult to explain :? ). So let me make a little chart to show you.

Main Page --> Main Page With An Article In It Saved As article.php(or html)--> Update Main Page --> Saved article page update aswell--

If anybody gets this help me out here.

-Thanks in advance
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • b_heyer
  • Web Master
  • Web Master
  • User avatar
  • Posts: 4581
  • Loc: Maryland

Post 3+ Months Ago

If you just use an <? include("file.php"); ?> inside of the main page where you want the file to be, it should work fine.

I think thats what your looking for :-/
  • PIONEXhippie66
  • Born
  • Born
  • PIONEXhippie66
  • Posts: 2

Post 3+ Months Ago

Well I tried that but when you do that you have to name that page to something else and then when I updated the main page the new page didn't update. I need this to work for alot of pags too , so i can save myself some time. Could you step by step me here, I am sorry to ask I know your time is valuable, it's just I am in a tight spot.

-Do I have to have 1 html and the other php or what? :?

-Thankz in advance :wink:
  • b_heyer
  • Web Master
  • Web Master
  • User avatar
  • Posts: 4581
  • Loc: Maryland

Post 3+ Months Ago

what exactly is it you want to update, like the colors? the format???

And no my time is of no value right now, its summer break and I am bored out of my mind :-p
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

Try "mode"

Post Information

  • Total Posts in this topic: 5 posts
  • Users browsing this forum: No registered users and 65 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.