 |
 |
 |
 |
 |
| Author |
Message |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2635 Location: Germany |
|
HEAD.PHP - what is it? |
|
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:
 |  | <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');
?> |
 |  | <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.
|
|
| Thu Jun 07, 2007 9:11 pm |
|
 |
Guest
|
|
|
Please login to hide the ads.
|
|
|
|
 |
scottdallas

Joined: 04 May 2006 Posts: 1782 Location: US |
|
|
|
Lol well put FI-DD.. I feel like I have an echo. JK, I'm glad you saved that during our little forum troubles 
_________________ www.scottdizzle.com uses cnr
last update: 07-22-08: 8:30 pm |
|
| Fri Jun 08, 2007 3:23 am |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum
|
|
 |
 |
 |
|