Esvon Classifieds Unofficial Support Board
Welcome, Guest. Please login or register.

Login with username, password and session length
  Home    Help    Search    Login    Register  
*
Sep 05, 10, 09:49
Esvon Classifieds Unofficial Support Board  |  Esvon Classifieds  |  Mods and add-ons (Moderator: isell)  |  Topic: Rss feed docs Advanced search
 
Pages 1
Author
Topic: Rss feed docs  (Read 952 times)
« on: Nov 29, 08, 16:26 »
ukpetclassifieds Offline
Apprentice classifier
*
Posts: 8

WWW

Hi people.

I have been trying to make rss feeds from evson latest listings.

Has anyone got the docs to do this please!

Many Thanks

Justin

« Last Edit: Dec 02, 08, 23:26 by ukpetclassifieds » Logged
 
Reply #1
« on: Dec 02, 08, 13:43 »
ukpetclassifieds Offline
Apprentice classifier
*
Posts: 8

WWW

Can anyone put the code here for,

include 'inc/rssconfig.php';
include 'inc/rssopen.php';
include 'inc/rssclose.php';

to use the code in the forum under RSS please as i'm not sure what they are?

Thanks if anyone can help!
Logged
 
Reply #2
« on: Dec 15, 08, 23:57 »
webman1 Offline
ecusb.com supporter
Intrepid classifier
****
Posts: 79



These 3 files are used to hold PHP Database Connection, Open and Database Close configuration. The Main file in the RSS Sticky calls these files to find out your database settings and the close and open php files closes or opens the database.

The include is a command to call these files at the start and finish. The files are located in the inc folder but you can store these 3 files anywhere you wish.

include 'yourfoldernamewhereyouhavethefilesstore d\rssconfig.php' etc.

Follow these steps below to create these 3 files.

1. Type/Copy the following into a php file using either notepad/frontpage/dreamweaver etc. and save it as rssclose.php
<?php
mysql_close($conn);
?>

2. Type/Copy the following into a php file using either notepad/frontpage/dreamweaver etc. Edit the parts below with your own Database Settings and save it as rssconfig.php
<?php
$dbhost = 'Enter your DBHost Address Here';
$dbuser = 'Enter your DB Username Here';
$dbpass = 'Enter your DB username Password Here';
$dbname = 'Enter your Database Name Here';
$dbSettings["host"] = "Enter your DBHost Address Here";
$dbSettings["user"] = "Enter your DB Username Here";
$dbSettings["password"] = "Enter your DB username Password Here";
$dbSettings["name"] = "Enter your Database Name Here";
?>

3. Type/Copy the following into a php file using either notepad/frontpage/dreamweaver etc. and save it as rssopen.php
<?php
$conn = mysql_connect($dbhost, $dbuser, $dbpass) or die                      ('Error connecting to mysql');
mysql_select_db($dbname);
?>

« Last Edit: Dec 16, 08, 00:09 by webman1 » Logged
 
Print  Pages 1
Esvon Classifieds Unofficial Support Board  |  Esvon Classifieds  |  Mods and add-ons (Moderator: isell)  |  Topic: Rss feed docs
Jump to: