954,606 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Website displays nothing!

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!

Gavicoind
Newbie Poster
4 posts since Oct 2010
Reputation Points: 10
Solved Threads: 0
 

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?

remarkablyso
Junior Poster in Training
62 posts since Sep 2010
Reputation Points: 10
Solved Threads: 2
 

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>
                    </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>
Gavicoind
Newbie Poster
4 posts since Oct 2010
Reputation Points: 10
Solved Threads: 0
 

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

diafol
Rhod Gilbert Fan (ardav)
Moderator
7,800 posts since Oct 2006
Reputation Points: 1,170
Solved Threads: 1,080
 
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.

Gavicoind
Newbie Poster
4 posts since Oct 2010
Reputation Points: 10
Solved Threads: 0
 

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.

remarkablyso
Junior Poster in Training
62 posts since Sep 2010
Reputation Points: 10
Solved Threads: 2
 

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 tag!

Everything works again.

Gavicoind
Newbie Poster
4 posts since Oct 2010
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: