PHP Tutorials: Dynamic pages (Part 1)

Creating a standard webpage template, only the content changes when a link is clicked. Saves time duplicating each file, and makes it a lot easier if something needs to be changed, like a menu item, header, or footer.

Duration : 0:8:29


Technorati Tags: , , , , , , , , , , , , , , , , ,

14 Responses to “PHP Tutorials: Dynamic pages (Part 1)”

  • dacoder96 says:

    Just a question…. …
    Just a question….
    Scenario;
    - I am currently on the home page
    - Click the TUTORIAL Link
    - this appears:
    HOME PAGE CONTENT
    TUTORIAL PAGE CONTENT

    It doesnt hide the HOME PAGE CONTENT, can anybody help please?

    Thanks heaps!

  • cobby32 says:

    Still using tables …
    Still using tables for layout?

  • bukk530 says:

    Not too friendly, …
    Not too friendly, but you can always use rewrite.

  • bukk530 says:

    It’s not vulnerable …
    It’s not vulnerable to an RFI attack, however it’s not a very secure code.

  • IamKjelle says:

    Thanks alot!
    Thanks alot!

  • LygisLT15 says:

    Nice Video… …
    Nice Video… PEople this code isnt vulnerable

  • LygisLT15 says:

    This code isn’t …
    This code isn’t vulnerable to RFI or LFI

  • bgammill says:

    I like the tutorial …
    I like the tutorial, but you talk way way way way too fast. I had to pause the video several times. Please improve this!

  • SaudiAhmad says:

    what bout RFI :P !
    what bout RFI :P !

  • omanoman98 says:

    Interesting! Keep …
    Interesting! Keep the good work up Alex …

  • phpacademy says:

    I think they should …
    I think they should be yeah, since lots of websites work this way. The other way to do this is to have:

    include(“header.php”);

    echo “content”;

    include(“footer.php”);

    if this doesnt make sense message me.

  • liquidplastic62 says:

    Are pages SEO …
    Are pages SEO friendly using this dynamic method?

  • burgert10 says:

    you should create a …
    you should create a switch statement to check the page var so no one hacks your site using LFI or RFI

  • modernclics says:

    When I call …
    When I call index.php without any “GET” parameter I have this notice showing on the page:

    “Notice: Undefined index: page in C:\wamp…”

    Is not an error but just a notice that tells that there’s no $_GET array. Depends on the php.ini config if the browser shows it or not.

    To avoid having this message I included an “@” before $page = $_GET['page']; line:

    @$page = $_GET['page'];

Leave a Reply