Hey PHPers, Need your help!

Discussion in 'The Living Room' started by Kæton, Jun 1, 2003.

  1. #1
    Kæton

    Kæton is Keaton LPA Über VIP

    Joined:
    Oct 16, 2002
    Messages:
    10,388
    Likes Received:
    9



    Alright, I'm going to try and lay this out as simply as possible. I am not really PHP-smart, so I need anyone who does know PHP to help. Okay, so I know there's a script that lets you post something somewhere else, and have it also be posted on another page. I think it's the way LPA does the news, but anyways, I wanted to know if anyone knew how to insert that into a page and make it kind of do the same? Is it like the <?php include="whatever.php";?>, or would it be an insert like {whatever}, or anything like that? I'm so confused and I really need it for a project >_<.
    The only thing I think I know is that it is a link that is inserted into the page that will have it take whatever is at that link to the current page. Something like that...

    Thanks in advanced to anyone who can understand that and help me :lol:.
     
  2. #2
    Alex

    Alex Ambient

    Joined:
    Jul 13, 2002
    Messages:
    1,552
    Likes Received:
    4



    To clear up how LPA "does it". All of out content is stored on a database and the HTML is stored in template files. So we can post news here which gets put into the forums database while LPAs custom script can read that same data and display it on the main pages. There is NO static page where content is shown/stored.

    As for the include function (which LPA does not use but can do your job) take a look at this.


    - Alex
     
  3. #3
    Kæton

    Kæton is Keaton LPA Über VIP

    Joined:
    Oct 16, 2002
    Messages:
    10,388
    Likes Received:
    9



    Thanks for the link and stuff, Alex :D.

    After several hours of studying the scripts and such on my own... I finally figured out how it's done and have just successfully finished it :lol:. It's... really confusing :blink:.
     

Share This Page