Thanks for reading.
I have read a lot of posts about the include statement and understand the majority but there is one small thing missing for me. Maybe you could help enlighten me.
I read that I can include htm files or php files. Therefore I have two senarios.
- If I include using a htm within a htm page, how much do I need to write in that htm file that will be included.
For example, If I was to include a logo image, could I just save the file with only the <img src="images/logo.jpg" width="197" height="49"> only?
or would I need to write from
<html>
<meta htt....
<title.....
</html>
That gets me also thinking about if that page can be searched by spiders,..? Could that little include image then be found through a google search?
- If I was to save the file, lets say the logo again, as a php, do I need to include the the html tags within the external php file? for example
logo.php
<?php
echo "<table width="522" border="0" cellspacing="0" cellpadding="0">";
echo "<tr>";
echo "<img src="images/logo.jpg" width="197" height="49">;
...
...
echo "</table>";
?>
or would I just echo the image only and leave the table tags etc in the main html file?
I have been playing around with different combinations but I wonder which is really the best way. Mabye that is just up to me?
Thanks for any feedback and suggestions.
I appreciate it.