PHP Newsletter

Join now and receive weekly updates pertianing to the world of PHP.

Polls

What do you think about the new PHPMine Design?
Awesome
Not Bad
Sucks

PHP Gigs By City

PHP Jobs By Topic

Advertisements

Help! PHP include errors?

Asked 2010-03-13 10:05:08 by Jon

Hey, basically I want to include images and links within some php code but that isn't working so I'm resorting to putting them into another file and trying to call an include but keep getting errors!

Basically, this is the code I have just now:
$copyRightBody = "<div class='txtCopyright'>", include('partners.php' "All Rights Reserved </div>\r\n");

I've tried it like this: $copyRightBody = "<div class='txtCopyright'>All Rights Reserved</div>\r\n"; include('partners.php');

But then it adds the included file to the top of the page when the copyright text is the very bottom?

Basically, I need to know how to either add links and images into this part or how to get an include file to go the same place as the copyright text.

Thanks in advance!
The 1 I have set just now (the top code), i get the error:
Parse error: syntax error, unexpected T_INCLUDE

Anwered 2010-03-13 10:12:10 by C-Note

<?php

$fc = file_get_contents("partners.php");
$copyRightBody = "<div class='txtCopyright'>{$fc} All Rights Reserved</div>\r\n";

echo $copyRightBody;

?>

Questions and answers provided by the Yahoo Answers Community.