Ok I’m at my work this friday setting up a table that will have data in it that will come from a separate file called values.php. When I write it like this, the divs turn up blank. I think I have the ‘include’ written wrong, does an absolute path not work?
<?php include('http://www.nextadvisor.com/credit_report_services/values.php'); ?> <div class='box_text'> <div class='box_image'> <a href='<?php echo $offer1link ?>' target='blank'><img src='<?php echo $offer1logo ?>' alt='<?php echo $offer1name ?>'></a></div> <div class='box_rating'> Rating:<span class='star_rating'><img src='<?php echo $offer1star1 ?>' alt=''></span><br> <div class='rating_review'><a href='<?php echo $offer1link ?>' target='blank'>Go to Site</a> | <a href='<?php echo $offer1anchor ?>'>Review</a></div> </div> <br style='clear: both;'> </div>
Oh and thanks in advance for any help you can give. Anyone who has helps me is the greatest. I feel bad cause sometimes two people answer the question and I can’t give the green check to both.
The type of include you are trying to do is blocked by default, not to say that it is dangerous. You are trying to include a remote file.
If your script is in the same machine as the ‘values.php’ you should use an absolute path similar to ‘/var/www/nextadvisor.com/credit_report_services/values.php’ or a relative path depending on the location of your file, instead of http://www.nextadvisor.com/credit_report_services/values.php
It doesn’t seem to me that you are trying to include a remote file but if you still want to include a remote file you must set the following directives in your php.ini