SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Jul 2013
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    how to browse php files in browsers without php extensions

    i have problem when
    browsing my php files in browsers they have the extensions which is not good.What can i do?

  2. #2
    Keeper of the SFL StarLion's Avatar
    Join Date
    Feb 2006
    Location
    Atlanta, GA, USA
    Posts
    3,747
    Mentioned
    64 Post(s)
    Tagged
    0 Thread(s)
    PHP has nothing to do with your browser.

    PHP is evaluated at the server level, and is returned as HTML (or whatever form of script you're writing). The browser never sees/evaluates PHP code.

    Or do you mean the .php on the end of the file?
    All files have an extension. I'm sure there's some rewriting rules you can do in Apache to hide such things, but it seems like a lot just to hide the extension for no apparent reason?
    Never grow up. The instant you do, you lose all ability to imagine great things, for fear of reality crashing in.

  3. #3
    SitePoint Enthusiast
    Join Date
    Jul 2013
    Location
    Voorheesville NY USA
    Posts
    88
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Why the H would u want to 'browse' a php file????


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
  •