Professional Web Applications Themes

Newbie PHP website address question - PHP Development

Hi, I've seen websites using address format like: "index.php?page=5" I don't know how they work. Do they use a template? Can anyone point me to a website? Thanks....

  1. #1

    Default Newbie PHP website address question

    Hi,
    I've seen websites using address format like:
    "index.php?page=5"
    I don't know how they work.
    Do they use a template?
    Can anyone point me to a website?

    Thanks.


    Pace Guest

  2. #2

    Default Re: Newbie PHP website address question

    On 2003-11-20, Pace <pace123REMOVETHIShotmail.com> wrote:
    > Hi,
    > I've seen websites using address format like:
    > "index.php?page=5"
    > I don't know how they work.
    > Do they use a template?
    > Can anyone point me to a website?
    Fe: Most sites have a template (fe: the header, the menu and the footer).
    And only the <div id="main"> has a variable content. This content is
    added using the include function if the page contains php code, or with
    fopen and fread if the content of the page does not need to be pd.

    As ?page=5 is rather descriptive i'd advice you to use something as
    ?page=/path/to/page.

    To avoid problems with cross-site scripting etc, i also advice you make
    a table pages(id,virtual_path,real_path) where you keep the mapping of
    the pages.

    --
    verum ipsum factum
    Tim Van Wassenhove Guest

  3. #3

    Default Re: Newbie PHP website address question

    > As ?page=5 is rather descriptive i'd advice you to use something as
    > ?page=/path/to/page.
    I strongly advise against the later formula. It's an open gate to
    malicious hackers unless you're using other security measures. Use a
    simple descriptive name if you must, but unless you're an expert don't put
    path info and file extension in the url.
    Ysu Guest

  4. #4

    Default Re: Newbie PHP website address question

    On 2003-11-21, Ysu <spamthisswiftdsl.com.au> wrote:
    >> As ?page=5 is rather descriptive i'd advice you to use something as
    >> ?page=/path/to/page.
    >
    > I strongly advise against the later formula. It's an open gate to
    > malicious hackers unless you're using other security measures. Use a
    > simple descriptive name if you must, but unless you're an expert don't put
    > path info and file extension in the url.
    Offcourse i meant the ?page=/virtual/path/of/page but you cutted the
    part where i told to use a virtual/real mapping.


    --
    verum ipsum factum
    Tim Van Wassenhove Guest

Similar Threads

  1. NEWBIE NEEDS your HELP with FLASH Website for CASH$$$$
    By don@objectsearch.com in forum Macromedia Flash Sitedesign
    Replies: 0
    Last Post: February 9th, 09:13 PM
  2. Replies: 16
    Last Post: August 22nd, 03:26 PM
  3. Help Extract Address Newbie
    By J. Squeed in forum FileMaker
    Replies: 2
    Last Post: August 20th, 08:31 PM
  4. Stupid newbie question re website hit counting
    By Michael McLaughlin in forum PERL Miscellaneous
    Replies: 3
    Last Post: July 22nd, 11:42 PM
  5. Replies: 4
    Last Post: July 15th, 09:32 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139