mopey
03-11-2001, 05:35 PM
Hi guys,
big night. Learnt telnet, sql dumps, database setup *yadda yadda* all for one script *lol* I have an error though that's not going away.
The script in question is supposed to work with both php3 and 4, and for the most part it does. The problem however is this:
Fatal error: Call to unsupported or undefined function include_once() in /home/dailyfin/dailyfinancial-www/show_news.php3 on line 8
I think the problem is that I had to change all the .php extensions to .php3 as the server I'm putting this on (not a hostmatters one), doesn't support php4.
Line 8 is the following:
include_once("database.inc.php3");
database.inc.php3 is the following:
<?php
$database_login="**secret squirrel**";
$database_pass="**secret squirrel**";
$database_host="localhost";
$database_name="**secret squirrel**";
$db=mysql_connect($database_host,$database_login,$ database_pass);
mysql_select_db($database_name,$db);
?>
So is this just what I presumed and a php3 thing, or is there a quick fix. It's a news poster type thing. The backend works fine - just this one line to display everthing.
Let me know if you need anything else to work it out.
Greg Moore
big night. Learnt telnet, sql dumps, database setup *yadda yadda* all for one script *lol* I have an error though that's not going away.
The script in question is supposed to work with both php3 and 4, and for the most part it does. The problem however is this:
Fatal error: Call to unsupported or undefined function include_once() in /home/dailyfin/dailyfinancial-www/show_news.php3 on line 8
I think the problem is that I had to change all the .php extensions to .php3 as the server I'm putting this on (not a hostmatters one), doesn't support php4.
Line 8 is the following:
include_once("database.inc.php3");
database.inc.php3 is the following:
<?php
$database_login="**secret squirrel**";
$database_pass="**secret squirrel**";
$database_host="localhost";
$database_name="**secret squirrel**";
$db=mysql_connect($database_host,$database_login,$ database_pass);
mysql_select_db($database_name,$db);
?>
So is this just what I presumed and a php3 thing, or is there a quick fix. It's a news poster type thing. The backend works fine - just this one line to display everthing.
Let me know if you need anything else to work it out.
Greg Moore