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
https://forums.phpfreaks.com/topic/273928-only-getting-source-code/
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.

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.