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 #173961 is a reply to message #173960] Mon, 16 May 2011 01:18 Go to previous messageGo to previous message
bruceaj is currently offline  bruceaj
Messages: 30
Registered: September 2010
Karma:
Member
On May 15, 8:48 pm, Jerry Stuckle <jstuck...@attglobal.net> wrote:
> On 5/15/2011 8:35 PM, 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
>
> No limit, other than the amount of code which has to be parsed.
>
> You have another problem.  Enable error reporting and see what you get
> for an error.  You probably are not including the file properly.
>
> --
> ==================
> Remove the "x" from my email address
> Jerry Stuckle
> JDS Computer Training Corp.
> jstuck...@attglobal.net
> ==================

Thanks for the response.

I just checked the FIreFox menu items and didn't find where to enable
error reporting. Where do I find the option to enable error
reporting??

My main included file (functions.php} works perfectly when the above
routine NOT in it. So I would think my require_once set up must be
correct???
If I put it in another file, and include that file, the routine works.

What does your statement "No limit, other than the amount of code
which has to be parsed. " mean? Does it mean there is file byte size
limitation??


Thanks..

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 27 00:33:28 GMT 2024

Total time taken to generate the page: 0.04280 seconds