Re: Problem with function declaration in include files
| From: | Dennis Moore | Date: | Fri, 04 Jan 2002 13:49:26 +0000 |
| Subject: | Re: Problem with function declaration in include files | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-79452@lists.php.net to get a copy of this message | ||
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
>