feed on feeds setup (PHP and MySQL)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Per <http://feedonfeeds.com/> I extracted feedonfeeds-0.1.9 from the tar 
ball, renamed the directory "feeds" and placed it in the DocumentRoot.

However, I get the following error:

Fatal error: Call to undefined function mysql_connect() in /var/www/
localhost/htdocs/feeds/init.php on line 30

<http://localhost/feeds/>




Here's the file:

arrakis ~ # 
arrakis ~ # 
arrakis ~ # cat /etc/gentoo-release 
Gentoo Base System release 1.12.9
arrakis ~ # 
arrakis ~ # head /var/www/localhost/htdocs/feeds/init.php  -n 35
<?php
/*
 * This file is part of FEED ON FEEDS - http://feedonfeeds.com/
 *
 * init.php - initializes FoF, and contains functions used from other 
scripts
 *
 *
 * Copyright (C) 2004 Stephen Minutillo
 * steve@xxxxxxxxxxxxx - http://minutillo.com/steve/
 *
 * Distributed under the GPL - see LICENSE
 *
 */

require_once("config.php");

define('MAGPIE_CACHE_AGE', 60*15);
define('MAGPIE_USER_AGENT', 'FeedOnFeeds/0.1.9 (+http://minutillo.com/
steve/feedonfeeds/)');
define('MAGPIE_CACHE_DIR', FOF_CACHE_DIR);

define('FOF_MAX_INT', 2147483647);


// surpress magpie's warnings, we'll handle those ourselves
error_reporting(E_ERROR);

require_once('magpierss/rss_fetch.inc');
require_once('magpierss/rss_utils.inc');

$fof_connection = mysql_connect(FOF_DB_HOST, FOF_DB_USER, FOF_DB_PASS) or 
die("Cannot connect to database.  Check your configuration.  Mysql says: 
<b>" . mysql_error());
mysql_select_db(FOF_DB_DBNAME, $fof_connection) or die("Cannot select 
database.  Check your configuration.  Mysql says: " . mysql_error());

if(!$installing) is_writable( FOF_CACHE_DIR ) or die("Cache directory is 
not writable or does not exist.  Have you run <a href=\"install.php
\"><code>install.php</code></a>?");

$FOF_FEED_TABLE = FOF_FEED_TABLE;
arrakis ~ # 
arrakis ~ # date
Mon Sep  3 16:38:05 PDT 2007
arrakis ~ # 
arrakis ~ # 



is this a PHP problem, or apache?



thanks,

Thufir


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux