PHP Tutorials: Dynamic pages (Update)

An update to my Dynamic pages tutorial, showing how to include sub sections (as folders) in the GET variable in your URL bar. This helps create a better design for your directory structure.
Video Rating: 0 / 5

No related content found.


There are no revisions for this post.

Tags: , , , ,

22 Responses to “PHP Tutorials: Dynamic pages (Update)”

  1. clickrajeshkumar February 8, 2011 at 7:21 AM #

    Hi Alex,

    Thanks for the wonderful videos in youtube. I have a requirement
    There are two drop down box: continent and country.
    drop down box : continent ( which fetches values from the continent table in the database has value like asia, africa, australia, america) based on the selection in the continent drop down box the country drop down box gets filled with the country values ex india, srilanka, china based on values from country table, using Ajax. Thanks in advance

  2. strafir February 8, 2011 at 7:33 AM #

    @gervic23 ” if (!$section) ” means if a section has not been specified. The exclamation mark always means not, or negative.

  3. gervic23 February 8, 2011 at 8:16 AM #

    what does the exclamation point do in…

    if (!$section)


  4. MrPatty1993 February 8, 2011 at 8:32 AM #

    can you do a tutorial on a user view and public view for a social network type webstie?

    i dont want to create a new php or html file for every new user.

    user view: /profile.php
    Public view: /user_url
    ???? help anyone???

  5. mikesca1980 February 8, 2011 at 8:39 AM #

    Great tut and helpful… thanks a lot

  6. unknownclips February 8, 2011 at 9:23 AM #

    Are you in f-16 hangar?:)

  7. AlanJames1987 February 8, 2011 at 10:15 AM #

    Is someone vacuuming in the background? Other than that it was a good tutorial.

  8. hanzip February 8, 2011 at 10:19 AM #

    SEX-ion lols

  9. sterlingfu2 February 8, 2011 at 10:47 AM #

    Very nice job, just stop vacuuming while your doing it,lol

  10. jjppmm29 February 8, 2011 at 11:02 AM #

    you can use a else statement
    $section += ‘/’;

  11. interrobanging February 8, 2011 at 11:47 AM #

    Really useful thanks – especially love the vaccuum cleaner!

  12. teflondon58 February 8, 2011 at 12:31 PM #

    i’m also a PHP developer… I’m looking to compose some tutorial videos like this.. is it hard to do

  13. TheGolfSpace February 8, 2011 at 12:40 PM #

    Thanks for this video. I love to watch php tutorials so I can learn. But next time tell them not to run the vacuum!

  14. punxz18 February 8, 2011 at 12:58 PM #

    if i’m not mistaken this is for 1 section only(correct me if i’m wrong), how about when i have multiple directories, lets say i have 2 directories the inc and inc2, how will i do that?

  15. tussu111 February 8, 2011 at 1:50 PM #

    If you cant get it by first time, just pause and rewind? I watch one and same video like ten times, before I move on to next.

  16. J2897Tutorials February 8, 2011 at 2:10 PM #

    Google: html footer

  17. nurani8 February 8, 2011 at 2:46 PM #

    Wow.. that is complicated… hard to understand.. You talk so fast.

  18. KingNetherdrake February 8, 2011 at 2:49 PM #

    Nevermind, the flaw was in the first one too if you served ../../ pages

  19. KingNetherdrake February 8, 2011 at 3:48 PM #

    I see you have a huge security risk, and I see you’ll update soon.

    Anyway in your first version you actually didn’t have that if people don’t put their config.php in inc/ but in for example includes/

    Only in your second version you put in the security issue, I actually thought with the else you were gonna fix it. But alas, we’ll wait 😉

  20. omanoman98 February 8, 2011 at 4:46 PM #

    Hi there…
    I’m just trying to understand the risk here…
    Here is my directory structure:
    and here is the URL:
    and passwd.php is not shown up!
    The output is:
    Sorry mate: that page does not exist!
    Any help would be appreciated

  21. phpacademy February 8, 2011 at 4:53 PM #

    I’ll have an update on this as soon as possible, thanks!

  22. KoolKid417 February 8, 2011 at 5:32 PM #

    What happens if the user does index.php?page=/../../../htpasswd or config.php or anything like that..

    Huge security risk imo.

Leave a Reply