Re: Problem with function declaration in include files
| From: | Bobby | Date: | Fri, 04 Jan 2002 17:06:34 +0000 |
| Subject: | Re: Problem with function declaration in include files | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-79470@lists.php.net to get a copy of this message | ||
I wish it was that simple, I have already added debug 'echo' statements to
make sure the included file is being included correctly and it is?
This problem really has me beat, I never usually send out desperate pleas,
but I am not a happy bunny atm.
Any thoughts would be appreciated
Cheers
--------------------------------------------------------
Bobby
"Dennis Moore" <dmoore@ravens-nest.com> wrote in message
news:003501c19526$a0968740$c6d1e2cf@ravensnest.com...
The problem is most likely with your include statement. The include path
imay be incorrect...
"Bobby" <bob@sourcedesign.co.uk> wrote in message
news:20020104090830.96310.qmail@pb1.pair.com...
> I have been using the following function declaration syntax for ages with
no
> problems.
>
> Main php file:
>
> <?php
> include "my-inc.php";
> ...
> FuncExample(arg1,arg2);
> ...
> ?>
>
>
> Include file:
>
> <?php
> ...
> FuncExample(arg1,arg2){
> <Function Content>
> }
> ...
> <?php
>
> I have just finished some work for a client, after full testing on both my
> Unix and Win32 test servers I moved the site over to their hosting company
> and I get the following problem.
>
> All my functions that are declared in my Inc files are spitting back the
> error:
>
> "Fatal error: Call to undefined function:..."
>
> I have spoken with the hosting company, but they have considerable trouble
> with 'backside' and 'elbow' recognition.
>
> Are there any PHP.ini settings that affect this type of function
> declaration?
>
> Any help would be appreciated.
>
> Bobby
>
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>