3
Contributors
6
Replies
7
Views
6 Years
Discussion Span
Last Post by Gavicoind
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?

0

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>
0

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.

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.

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.

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

Everything works again.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.