FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » functions in a external file
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: functions in a external file [message #173965 is a reply to message #173963] Mon, 16 May 2011 01:48 Go to previous messageGo to previous message
bruceaj is currently offline  bruceaj
Messages: 30
Registered: September 2010
Karma:
Member
On May 15, 9:22 pm, Michael Fesser <neti...@gmx.de> wrote:
> .oO(bruceaj)
>
>> Is there a maximum number of functions that can be contained in
>> "require_once" php file?
>
>> I have this simple function (for testing this problem).
>
>> function GetTelephoneNumber () {
>
>>    return "123 456-6789";
>> }
>
>> If this function is in my main routine. No problem.
>> If this function is in it's own file. No problem.
>> If this function is in my main "function.php" file, I get the php
>> blank. screen. l am using firefox and don't know how to get errors.
>
> If you get a blank result, it's most likely a parse error. Check if your
> error reporting is properly configured in your php.ini:
>
> error_reporting = E_ALL|E_STRICT
> display_errors = on
>
> Micha

I have these values in my php.ini.

Yes, the blank result appears to be a parsing error BUT I can cut the
function from my main include_once("functions.php") file and paste it
into another include_once("functions2.php") file and all work good.
STRANGE to me??

Thanks for the response...

Bruce
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Stats comp.lang.php (last 7 days)
Next Topic: some of the issues of NOT storing images in a secure database..
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 23 07:06:14 GMT 2024

Total time taken to generate the page: 0.04822 seconds