When I view my website, it properly displays the header, nav, and footer.
But it doesn't display the main section of the page.
My domain is gavicoind.com

Thanks for your help!

It's not displaying for me either... there's also nothing in the source code to say that there should be something there.

I couldn't say without seeing the actual code, are you using PHP includes?

Yes, the code looks like this.

<?php
require_once('mobile_device_detect.php');
mobile_device_detect('http://mobile.gavicoind.com/','http://mobile.gavicoind.com/iPad',true,true,true,true,true,false,false);
?>
<!DOCTYPE html> 
<html> 
    <head> 
        <title>Gavico Ind Web &beta;eta</title>
       <?php 
				$functionality = file_get_contents("http://gavicoind.com/WebObjects/functionality.php");
				echo ($functionality); 
		?>
        <style type="text/css"> 
        </style> 
    </head> 
    
    <body> 
        <div class="wrapper"> 
			<?php 
				$header = file_get_contents("http://gavicoind.com/WebObjects/header.php");
				echo ($header); 
			?>
			<?php 
				$navigation = file_get_contents("http://gavicoind.com/WebObjects/navigation.php");
				echo ($navigation); 
			?>
            <div class="page_body"> 
                <div class="content"> 
                    <p class="main">
                    	<em>Gavico Ind, the modern end of the web society. </em><strong>Gavico Ind</strong><br>
                    </p>
                </div> <!--content--> 
            </div> <!--page_body-->
            <?php 
				$footer = file_get_contents("http://gavicoind.com/WebObjects/footer.php");
				echo ($footer); 
			?>
        </div> <!--wrapper--> 
        <!--GOOGLE CODE-->
        <script type="text/javascript" src="http://gavicoind.com/Script/Tracking.js">
        </script>
        <!--END CODE-->
    </body> 
</html>
Member Avatar for diafol

Why are you using file_get_contents as opposed to using an include?

Why are you using file_get_contents as opposed to using an include?

When I use an include, it can never open up the file. In the php.ini file it is not allowed to use http:// in an include or a require_once. I can't edit the php.ini file either.

Try a PHP include, only use a direct path or otherwise. For example;

This: /home/user/public_html/directory/file.php
Or this: file.php

Without any use of "http://". Another thing you should check is the file's permissions, make sure the file you are including can be read/executed.

Try a PHP include, only use a direct path or otherwise. For example;

This: /home/user/public_html/directory/file.php
Or this: file.php

Without any use of "http://". Another thing you should check is the file's permissions, make sure the file you are including can be read/executed.

Thanks I have fixed the problem. I forgot to end the </nav> tag!

Everything works again.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.