Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: weird index.love??

  1. #1
    Join Date
    Mar 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default weird index.love??

    [USER BANNED, MESSAGE REMOVED]

    Moderator note: To keep this information available, the original post can be rephrased as asking how a page can have a custom extensinon, not .htm, etc.
    Last edited by djr33; 07-19-2007 at 08:53 AM.

  2. #2
    Join Date
    May 2006
    Location
    Sydney, Australia - Near the coast.
    Posts
    1,995
    Thanks
    0
    Thanked 8 Times in 7 Posts

    Default

    Probably just a server configuration.
    Peter - alotofstuffhere[dot]com - Email Me - Donate via PayPal - Got spare hardware? Donate 'em to me :) Just send me a PM.
    Currently: enjoying the early holidays :)
    Read before posting: FAQ | What you CAN'T do with JavaScript | Form Rules | Thread Title Naming Guide

  3. #3
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    yeaaa oops i by askident delete ur comment geeze dis thing is confusin me .. eheh lol but yea i was wonderin how u change my url thingy. and i posted a bullentin on ymspace tlelin peepo to join dis site =D do i get ne credit for it =D lol
    (shudder) MySpace.

    Yeah, servers can be configured to use any file extension. It doesn't matter.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Well, an easy way, assuming that the dot character is legal for use in directory names - I think it is, would be to make a directory called Index.love and have an index file in it. It could even be a (shudder) frameset.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. #5
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    Look at php.net for example. All of their pages are some sort of extension.
    Example:
    http://ca.php.net/manual/en/ref.ftp
    - Mike

  6. #6
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Quote Originally Posted by mburt View Post
    Look at php.net for example. All of their pages are some sort of extension.
    Example:
    http://ca.php.net/manual/en/ref.ftp
    I wonder if that serves an organizing purpose for the site or is just 'showing off'. It could just as easily be ref_ftp.php unless using the custom extension really helps organize the site.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  7. #7
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    Actually, it's because when an error is parsed with php it will display the error and have a link. The spaces in the title of the error are replaced with ".", so the link will go straight to the ref.
    - Mike

  8. #8
    Join Date
    May 2006
    Location
    Sydney, Australia - Near the coast.
    Posts
    1,995
    Thanks
    0
    Thanked 8 Times in 7 Posts

    Default

    So.. how can Google get away without the file extensions?

    eg. http://www.google.com.au/search?q=hello
    Peter - alotofstuffhere[dot]com - Email Me - Donate via PayPal - Got spare hardware? Donate 'em to me :) Just send me a PM.
    Currently: enjoying the early holidays :)
    Read before posting: FAQ | What you CAN'T do with JavaScript | Form Rules | Thread Title Naming Guide

  9. #9
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    .htaccess. I found a tutorial a while back on how to do this, but I had no real use for it and forgot what the url was.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  10. #10
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    I repeat, the request URI passed to the server needn't be the path to an actual file. It can be whatever the server wants it to be. For example, in Django, there's an urls.py file which contains a list of regexes and functions (all in one file, views.py) to associate with them. When the regex is matched in a request URI, the function is called with the regex's captures as arguments, and the result of the function is displayed to the browser.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

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
  •