SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Zealot thetzfreak's Avatar
    Join Date
    Aug 2004
    Location
    United States
    Posts
    154
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Installed PHP5, All Source Code Showing

    Hi,

    I'm having a terrible problem. I got my hosting to install PHP5, and now all my websites are just showing the php and html source code; nothing is being parsed. Why is this? How do I stop this? I read somewhere that it has something to do with the short php opening (<? as opposed to <?php) but I always use <?php. What else could be the problem? People who visit my sites can now view the source code

    Help is appreciated. Thank you.

  2. #2
    play of mind Ernie1's Avatar
    Join Date
    Sep 2005
    Posts
    1,252
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    do you have .inc file extensions?
    my mobile portal
    ghiris.ro

  3. #3
    . shoooo... silver trophy logic_earth's Avatar
    Join Date
    Oct 2005
    Location
    CA
    Posts
    9,013
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    Maybe you need to use .php5? Hard to say without more information on the configuration.
    Logic without the fatal effects.
    All code snippets are licensed under WTFPL.


  4. #4
    SitePoint Zealot thetzfreak's Avatar
    Join Date
    Aug 2004
    Location
    United States
    Posts
    154
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Ernie1 View Post
    do you have .inc file extensions?
    Nope, I don't use php.inc. Just regular .php files. I'm not using any complicated PHP, so nothing should not work. I'm not sure what about the configuration I should tell you =\

    Thanks.

  5. #5
    SitePoint Wizard gold trophysilver trophybronze trophy dc dalton's Avatar
    Join Date
    Nov 2004
    Location
    Right behind you, watching, always watching.
    Posts
    5,431
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Make sure your host recompiled Apache the right way!

    This sounds more like an Apache problem than a PHP problem and with the IDIOTS running some of these hosting company tech support centers I would be willing to be they screwed it up (just went through a week of hosting hell and finally had to tell them to stay and I would fix it myself)


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
  •