HEAD.PHP - what is it?

Frequently Asked Questions (read only)

HEAD.PHP - what is it?

Postby FI-DD » Thu Jun 07, 2007 9:11 pm

I've noticed a recent trend of users coming to the site that don't seem to understand what head.php is.. and a lot of times seem to not even know it exists. I'm sure this is in the readme and documented very plainly but since a lot of people are coming from cutephp's cutenews to this one they aren't familiar with head.php, what it is, and why it's important.

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.
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Postby scottdallas » Fri Jun 08, 2007 3:23 am

Lol well put FI-DD.. I feel like I have an echo. JK, I'm glad you saved that during our little forum troubles :)
Everyday I'm tumblin http://scodal.tumblr.com
User avatar
scottdallas
 
Posts: 2209
Joined: Thu May 04, 2006 6:46 pm
Location: US


Return to FAQ



Who is online

Users browsing this forum: No registered users and 0 guests