What is head.php?
This is a file that comes with cutenews.ru. It manages all sorts of extra features and functionality of cutenews.ru.. without it you'll find that it can become very difficult or limited trying to put your site together. You might even run into a lot of errors because you haven't included it.
What do I need to do with head.php?
Include it before including anything else on your page.
For example.. say this is your index.php right now:
- Code: Select all
<head>
<title>My site woohooo!</title>
<head>
Here's my latest blog entries!<br /><br />
<?php
$number = 5;
include('PATH-TO-CUTENEWSRU/show_news.php');
?>
- Code: Select all
<head>
<title>My site woohooo!</title>
<?php include('PATH-TO-CUTENEWSRU/head.php'); ?>
</head>
Here's my latest blog entries!<br /><br />
<?php
$number = 5;
include('PATH-TO-CUTENEWSRU/show_news.php');
?>
Now you have told your page to load head.php FIRST.. THEN load cutenews.ru.. as you use cutenews.ru more and more you'll thank yourself for remembering to do this standard on every website.
Originally posted by Scott.
