By thezachbaker
I am configuring PHP for the first time on my Ubuntu 12.04 distro and am not able to render my foo.php file to render any of the files attached with an include statement. For example, I have header.php and footer.php referenced in foo.php with <?php include ‘header.php’; ?>.
I can get a phpinfo file to run via <?php phpinfo(); ?> in an info.php file, but when I hit foo.php, the include statements seem to not be rendering on the server.
Any thoughts?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Looks like I lost some code/made some typos in the above post :P <br> <br>Short story is that I am suspicious of include ‘header.php’ and include ‘footer.php’ statements not rendering on new LAMP distro. phpinfo() runs fine.
Sure thing. <br> <br>Header - http://pastebin.com/6wSJ5mse <br>Body - http://pastebin.com/z1PijAXJ <br>Footer - http://pastebin.com/PuUpRb35 <br> <br>Also, my folder hierarchy is setup like this: <br> <br>/www <br> -/html <br> -index.php <br> -/templates <br> -header.php <br> -footer.php <br>
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.