httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thufir <hawat.thu...@gmail.com>
Subject [users@httpd] feed on feeds setup (PHP and MySQL)
Date Mon, 03 Sep 2007 23:42:26 GMT
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@minutillo.com - 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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message