Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Jan 2005
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Php undefined function ????

    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:

    <?php
    require_once "D:\hshome\gburks\mybiweeklymortgagepayment.com\carp\headlines.php ";
    CarpConf('iorder','title,desc');
    CarpConf('biurl','<h3><a href="#" onClick="OpenNewsWindow(\'');
    CarpConf('aiurl','\'); return false;">');
    CarpConf('ailink','</a></h3>');
    CarpCacheShow('http://www.prweb.com/rss2/homefinance.xml');
    ?>

  • #2
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,987
    Thanks
    4
    Thanked 2,660 Times in 2,629 Posts
    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

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

  • #3
    New Coder
    Join Date
    Mar 2005
    Posts
    43
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Yeah you must declare CarpConf() somewhere before you use it.
    PHP Code:
    funtion CarpConf   {

    //whatever you want it to do


    Maybe that would work.

  • #4
    New Coder
    Join Date
    Jan 2005
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts
    The purpose is to get the rss feed that is displayed at

    http://www.mybiweeklymortgagepayment...ance_news.html

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

    http://www.mybiweeklymortgagepayment.../headlines.php

    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.
    Last edited by Design 46; 03-30-2005 at 10:16 AM.

  • #5
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,987
    Thanks
    4
    Thanked 2,660 Times in 2,629 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •