| | |
Simple php error
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Feb 2006
Posts: 21
Reputation:
Solved Threads: 1
I have been working on installing a script called Fantastic News from http://fscripts.com
I have been trying to make it so I can use the news.php on other pages
Right now im getting an Unable to Open Template error
http://www.ipetrescue.com/arts/articles.php
Here are the instructions....
If you plan on including news.php on a page rather than calling it directly you can use the include("news.php"); if you're page is php or if its just straight html use the ssi equivalent. You'll also need to put the config.php file in the location where you do the include so that the script can read the config.php file If you are including it make sure to set that in your settings so that the script knows not to include the header and footer templates on your news.php file. You'll also need to include a script path so that the script can find the location of your templates and internal functions that the script uses. This feature is not recommended however doing this can make it possible but please note you'll need to move your config.php file over everytime you change settings also since this won't be the config.php file it usually uses
here is my articles.php file
can anyone help?
I have been trying to make it so I can use the news.php on other pages
Right now im getting an Unable to Open Template error
http://www.ipetrescue.com/arts/articles.php
Here are the instructions....
If you plan on including news.php on a page rather than calling it directly you can use the include("news.php"); if you're page is php or if its just straight html use the ssi equivalent. You'll also need to put the config.php file in the location where you do the include so that the script can read the config.php file If you are including it make sure to set that in your settings so that the script knows not to include the header and footer templates on your news.php file. You'll also need to include a script path so that the script can find the location of your templates and internal functions that the script uses. This feature is not recommended however doing this can make it possible but please note you'll need to move your config.php file over everytime you change settings also since this won't be the config.php file it usually uses
here is my articles.php file
PHP Syntax (Toggle Plain Text)
<?php // +----------------------------------------------------------------------+ // | Fantastic News | // +----------------------------------------------------------------------+ // | By Tony Baird | // | Copyright (c) 2003 Fantastic Scripts | // | http://fscripts.com | // +----------------------------------------------------------------------+ // | Fantastic News Can be modified freely as long as the copyright at | // | the bottom of every page and is visible. This copyright header must | // | also be left intact on php file | // +----------------------------------------------------------------------+ // | news.php | // +----------------------------------------------------------------------+ include("/home/ipetresc/public_html/fnews/FNews/news.php"); require_once($CONFIG['script_path']."/home/ipetresc/public_html/arts/config.php"); require_once($CONFIG['script_path']."/home/ipetresc/public_html/fnews/FNews/functions/functions.php"); require_once($CONFIG['script_path']."/home/ipetresc/public_html/fnews/FNews/functions/mysql.php"); require_once($CONFIG['script_path']."/home/ipetresc/public_html/fnews/FNews/functions/template.php"); if (empty($tpl)) {
can anyone help?
You should contact the support of the people who wrote the script.
John Conde
Brainyminds | Merchant Account Services | I Love Code
IT'S HERE: Merchant Accounts 101 Everything you need to know about merchant accounts!
Brainyminds | Merchant Account Services | I Love Code
IT'S HERE: Merchant Accounts 101 Everything you need to know about merchant accounts!
![]() |
Similar Threads
- PHP error 404 (PHP)
- PHP parsing error, unexpected '<' (PHP)
- Interesting, yet probably simple, PHP Nuke Error (PHP)
- PHP Error (PHP)
- Php Syntax Error (PHP)
- question about connecting odbc to sql through php script (PHP)
- php error when using invision board (PHP)
Other Threads in the PHP Forum
- Previous Thread: Php coder.. Need Job
- Next Thread: photo ad submit?
| Thread Tools | Search this Thread |
.htaccess ajax apache api array beginner binary broken buttons cakephp checkbox class cms code cron curl database date directory display download dynamic ebooks echo email error file files folder form forms function functions google href htaccess html image include insert integration ip java javascript joomla limit link login loop mail mediawiki menu mlm mod_rewrite multiple mysql number oop paypal pdf php phpincludeissue phpmyadmin problem query radio random recursion regex remote script search server sessions sms soap source sp space speed sql subdomain syntax system table tag tutorial update upload url validation validator variable vbulletin video web websphere white xml youtube






