View Full Version : Php undefined function ????

Design 46
03-29-2005, 09:34 AM
I would like to put a news feed on my site. No matter what I do, I keep getting this error? Any ideas what's wrong?

Fatal error: Call to undefined function: carpconf() in D:\hshome\gburks\mybiweeklymortgagepayment.com\carp\headlines.php on line 24

Here's the code I'm using:

require_once "D:\hshome\gburks\mybiweeklymortgagepayment.com\carp\headlines.php ";
CarpConf('biurl','<h3><a href="#" onClick="OpenNewsWindow(\'');
CarpConf('aiurl','\'); return false;">');

03-29-2005, 09:49 AM
Well, you haven't defined what carpconf is, and it is not a predefined function.
If you are using external code (gotten from a d/l for instance) you lack your defined functions. If you created it yourself, well I'm not sure why you wouldn't add the functions you needed :p

Unfortunatly, I cannot even determine exactly what it is for. Perhaps a header or category listing?

03-30-2005, 02:04 AM
Yeah you must declare CarpConf() somewhere before you use it.

funtion CarpConf {

//whatever you want it to do


Maybe that would work.

Design 46
03-30-2005, 11:14 AM
The purpose is to get the rss feed that is displayed at


to display here so I can do away with the other page.


when I made changes here - CarpCacheShow('http://www.prweb.com/rss2/homefinance.xml');

the error changes so I thought that's where the error was, but it will not load.

I didn't write the code. I don't understand php.

03-30-2005, 03:00 PM
You will need to contact the author then, as without knowing what the function is for or what it does, we cannot help you correct it. Unless you want to look at doing a different script to generate data from xml, you will need to ask them what the function is.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum