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 #173979 is a reply to message #173973] Mon, 16 May 2011 17:34 Go to previous messageGo to previous message
bruceaj is currently offline  bruceaj
Messages: 30
Registered: September 2010
Karma:
Member
On May 16, 7:49 am, The Natural Philosopher <t...@invalid.invalid>
wrote:
> bruceaj wrote:
>> 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.
>
>> Appreciate help and suggestions....
>
>> Thanks...
>
>> Bruce
>
> syntax error somewhere.

It appears that all is good. Turn on error_reporting showed up a
couple of date problems.

1. I was using H in date() and not "H". Fixed.
2. The error_reporting wanted me to use date_default_timezone_set()
and not accept the default time zone. Fixed.

Still seems strange that my test routine, which had nothing within the
function definition brackets but "return '123455'; would stop all the
functions I had defined from working.

Oh, well. All's well that end's well. Thanks to all for the help and
suggestions...

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: Wed Nov 13 10:17:17 GMT 2024

Total time taken to generate the page: 0.05321 seconds