php includes

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
raderwebdesign
Forum Newbie
Posts: 1
Joined: Wed Aug 25, 2010 4:16 pm

php includes

Post by raderwebdesign »

I'm having an issue with a client's website. I didn't build this particular website, and in fact, I'm a bit of a nube when it comes to php. I have been able to do some updates etc. to this site, but nothing too in depth. Please view the website in question at www.eamusic.org. This particular website was working properly and according to the client, the server company (Dreamhost) moved the website to another server which apparently caused the problem. Now, the page doesn't render properly. The problems seem to be with the php includes. None of them are rendering. This is one of the php includes:
<?php
readfile($root_include . 'content/home/composition.php');
?>
Am I reading this right? That there should be, in the root directory, a directory called content, containing a directory called home, containing a file named composition.php. I can't find a file named content anywhere. Should it be in the root directory, or listed somewhere else? Could there be a problem with the fact that the command says readfile, rather than include? Is it possible that readfile worked on the first server, but not the new one? Could the tech that moved the website over to the new server, possibly have neglected to move the content directory? Any suggestions? Thanks in advance.
cpetercarter
Forum Contributor
Posts: 474
Joined: Sat Jul 25, 2009 2:00 am

Re: php includes

Post by cpetercarter »

You need to switch on error reporting. The error message will probably help you find what is wrong. Place

Code: Select all

error_reporting(E_ALL);
at the start of the relevant script.
Post Reply