SitePoint Sponsor

User Tag List

Page 2 of 2 FirstFirst 12
Results 26 to 41 of 41
  1. #26
    SitePoint Wizard silver trophybronze trophy Stormrider's Avatar
    Join Date
    Sep 2006
    Location
    Nottingham, UK
    Posts
    3,133
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    That is entirely up to you...

  2. #27
    SitePoint Zealot
    Join Date
    Jul 2008
    Posts
    125
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i want it like YouTube, Someone willing to help?

  3. #28
    SitePoint Guru SSJ's Avatar
    Join Date
    Jan 2007
    Posts
    830
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Go with .fool

  4. #29
    SitePoint Zealot
    Join Date
    Jul 2008
    Posts
    125
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by SSJ View Post
    Go with .fool

    That is not funny at all.

  5. #30
    SitePoint Wizard gRoberts's Avatar
    Join Date
    Oct 2004
    Location
    Birtley, UK
    Posts
    2,439
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You still haven't explained why you would want to do this.

    No one cares what extension the document is. Trying to fool people into thinking its something else is pointless. If someone wants to find out what it is, they will.

    If you want to hide the extension, follow the advice of the other posters. Otherwise research the solution using a developers best friend... Google.


  6. #31
    SitePoint Zealot
    Join Date
    Jul 2008
    Posts
    125
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I can't a find a good answer to hide the extension.

  7. #32
    SitePoint Wizard silver trophybronze trophy Stormrider's Avatar
    Join Date
    Sep 2006
    Location
    Nottingham, UK
    Posts
    3,133
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    You use mod_rewrite for that

  8. #33
    Theoretical Physics Student bronze trophy Jake Arkinstall's Avatar
    Join Date
    May 2006
    Location
    Lancaster University, UK
    Posts
    7,062
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    I dunno about all this heavy financial stuff Jake was on about - I don't see how that comes into it?
    As long as you aren't doing it to make the client think you used one language when you actually used another.
    That's what I meant.

    If you have a client who thinks you're using .NET but you're actually using PHP, you will run into countless issues with that client - after all, if they requested .NET in the first place they wanted .NET

    As for hiding the extention, in the .htaccess file put:
    Code:
    RewriteEngine On
    RewriteRule ^([^.])$ $1.php
    Not tested but I think it'd work.
    Jake Arkinstall
    "Sometimes you don't need to reinvent the wheel;
    Sometimes its enough to make that wheel more rounded"-Molona

  9. #34
    Theoretical Physics Student bronze trophy Jake Arkinstall's Avatar
    Join Date
    May 2006
    Location
    Lancaster University, UK
    Posts
    7,062
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Please read this article: http://roshanbh.com.np/2008/01/hidin...extension.html

    To see why i want to change the extension, It is better for us also.
    A load of rubbish.

    You make your PHP applications correctly and no-one will break them. It's not possible. Facebook is the worlds MOST visited website AFAIK, and they happily show their extentions. Don't-ya kinda wonder why they haven't been cracked?
    Jake Arkinstall
    "Sometimes you don't need to reinvent the wheel;
    Sometimes its enough to make that wheel more rounded"-Molona

  10. #35
    SitePoint Wizard silver trophybronze trophy Stormrider's Avatar
    Join Date
    Sep 2006
    Location
    Nottingham, UK
    Posts
    3,133
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    To be fair, it is a perfectly valid approach in a multi-layered security system. There is no harm in it, and it will help. It shouldn't be relied upon of course, but it can work in addition to the other security measures you take.

  11. #36
    SitePoint Zealot
    Join Date
    Jul 2008
    Posts
    125
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    that code doen't work and wanna know how to link to the file? ffdffg.com/index
    instead of ghfhgfh.com/index.php ? it didin't work. it should be like this too: ffdffg.com/index?id=1 etc...

  12. #37
    SitePoint Zealot
    Join Date
    Jul 2008
    Posts
    125
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hear from you!

  13. #38
    Theoretical Physics Student bronze trophy Jake Arkinstall's Avatar
    Join Date
    May 2006
    Location
    Lancaster University, UK
    Posts
    7,062
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Some advice - google it!

    Just learn how to do a mod_rewrite.
    Jake Arkinstall
    "Sometimes you don't need to reinvent the wheel;
    Sometimes its enough to make that wheel more rounded"-Molona

  14. #39
    SitePoint Zealot
    Join Date
    Jul 2008
    Posts
    125
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It better if you post the code here,

    Anyway... I have contacted www.asp.net and was asking if i'm allowed to make my php files to be aspx with htaccess and they said in their message ' Yes, We are very happy that you like to make you page extension to aspx and if you like to code with aspx we will further help you on the forum'

    What about this guys

  15. #40
    SitePoint Wizard silver trophybronze trophy Stormrider's Avatar
    Join Date
    Sep 2006
    Location
    Nottingham, UK
    Posts
    3,133
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Why not try giving it a go yourself, then coming back if you have problems? Do some research into mod_rewrite and try and work out how it would be done. You won't learn anything by copying and pasting code from here...

  16. #41
    Theoretical Physics Student bronze trophy Jake Arkinstall's Avatar
    Join Date
    May 2006
    Location
    Lancaster University, UK
    Posts
    7,062
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Anyway... I have contacted www.asp.net and was asking if i'm allowed to make my php files to be aspx with htaccess and they said in their message ' Yes, We are very happy that you like to make you page extension to aspx and if you like to code with aspx we will further help you on the forum'

    What about this guys
    I'm sure if I contacted Ford asking them if I could put their logo on my ferrari then they'd love me to too!

    Realistically, it makes no impact. In fact, trying to fool a user into thinking you're using another technology is... it's pointless.

    Of course, hiding the extention is a good option.

    Even better than that, learn MVC.
    Jake Arkinstall
    "Sometimes you don't need to reinvent the wheel;
    Sometimes its enough to make that wheel more rounded"-Molona


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
  •