Jump to content

Only getting source code


mykkah

Recommended Posts

Hey Guys,

 

Sorry to bother you all with such a simple problem, but I have no clue whats going on. So I'm helping a friend put an online assessment test on his website for a church. I have the DB setup on mysql and the config.php seems to be correct, but all I'm getting is source code... It's being hosted on GoDaddy and I'm not familiar with them, but thats just an FYI

 

http://onecommunitycenter.org/sat

 

Thanks for any and all help!!!

config.php

Link to comment
Share on other sites

What is the name of the script file that is being loaded by the server? Is it "sat" as shown in the url? Or is it index.html (in the sat directory)? Or is there some mod_rewrite going on?

 

Unless the server is specifically configured otherwise, only files ending with .php will be executed as PHP scripts.

Link to comment
Share on other sites

What is the name of the script file that is being loaded by the server? Is it "sat" as shown in the url? Or is it index.html (in the sat directory)?

 

The file is index.php - I put that on the end of the URL and got the same result. I also loaded up the include files (both .php) and only saw source code as well (including the DB password!).

 

So, PHP files are definitely not being parsed.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.