X-Original-To: pgsql-php-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 10CF356139 for ; Wed, 2 Mar 2005 13:54:30 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 64273-09 for ; Wed, 2 Mar 2005 13:54:24 +0000 (GMT) Received: from tomts36-srv.bellnexxia.net (tomts36.bellnexxia.net [209.226.175.93]) by svr1.postgresql.org (Postfix) with ESMTP id D328A55CF9 for ; Wed, 2 Mar 2005 13:54:22 +0000 (GMT) Received: from acer.sympatico.ca ([65.95.169.24]) by tomts36-srv.bellnexxia.net (InterMail vM.5.01.06.10 201-253-122-130-110-20040306) with ESMTP id <20050302135423.PDFK1694.tomts36-srv.bellnexxia.net@acer.sympatico.ca> for ; Wed, 2 Mar 2005 08:54:23 -0500 Message-Id: <5.2.1.1.0.20050302084822.049cfb60@pop6.sympatico.ca> X-Sender: b1wudu74@pop6.sympatico.ca X-Mailer: QUALCOMM Windows Eudora Version 5.2.1 Date: Wed, 02 Mar 2005 08:53:26 -0500 To: pgsql-php@postgresql.org From: Frank Bax Subject: Re: PHP function error In-Reply-To: <6.1.0.6.0.20050302123253.02422c88@mail.freeshell.org> References: <422550A0.2040104@sherubtse.edu.bt> <422550A0.2040104@sherubtse.edu.bt> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.037 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200503/12 X-Sequence-Number: 3027 At 04:43 AM 3/2/05, Sarah, Godfrey, Matthew & Vera wrote: >I am trying to run the following code but get the following error: > >Fatal error: Call to undefined function show_title() in >d:\webhost\build\index.php on line 13 > > >This file is called "index.php" > > > > >< >The other file "dynamic.php" has the following functions > >/* dynamic.inc.php */ Five (at least) problems: 1) you error message says that error occured on line 13 of index.php, but the index.php file you show us does not have 13 lines in it. 2) You say the include file is called "dynamic.php", but the first line of that file has "dynamic.inc.php" - which is it. 3) You should normally use "require" instead of "include" in this situation. 4) I'm guessing you are running with "register_globals" on, which not a good idea; if it is off, the above code (line wid $id) will not work. 5) These problems have nothing to do with PostgresSQL, so this post is off-topic. I suggest you find a php newbie list.