Results 1 to 3 of 3
  1. #1

    Using /?var=something

    I am writing a web program that runs a tons of actions all off one index page (switches) and was wondering if I can call it like this reliably...

    http://mysite.com/?var=pageName

    It seems to work fine in the browsers I have tested but I was wondering if any issues existed.

    Thanks.
    Sigil Studios, llc | http://www.sigilstudios.com
    - Ultra-Secure Mission Critical Hosting -

  2. #2
    Join Date
    Apr 2003
    Location
    London, UK
    Posts
    4,695
    No, you shouldn't have any browser based issues with urls like that.

  3. #3
    Join Date
    Aug 2002
    Location
    Superior, CO, USA
    Posts
    633
    The biggest two problems would be security and scalability.

    If someone asks for /?var=scriptname.php you'll need to code to handle that. Anything else like that may need to be done - i.e. /?var=../../../etc/passwd and so forth.

    Secondly, if you have 1000 people asking for an index page at the same time do you really want to be running a script for all of them? I guess that depends on the amount of static vs. dynamic content you have.

Posting Permissions

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