SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: PHP files

  1. #1
    SitePoint Zealot
    Join Date
    May 2006
    Posts
    120
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    PHP files

    If I am working on a site where alot of the pages use PHP but not actually all of them. Is there any downside to just saving every page as a PHP file?

  2. #2
    SitePoint Evangelist
    Join Date
    Apr 2006
    Location
    Halifax, Canada
    Posts
    498
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You will use a bit more CPU because the PHP parser will still try to read each page as it is requested. This will also mean slightly slower loading. I would say just leave them as .html.

    If you see an upside in keeping the .php extension, let me know because I am sure there is a better workaround.
    Paul Butler.org
    JSSpamBlock - Reduce WordPress spam.

  3. #3
    An average geek earl-grey's Avatar
    Join Date
    Mar 2005
    Location
    Ukraine
    Posts
    1,403
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No, there's no need.


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
  •