Re: functions in a external file [message #173964 is a reply to message #173962] |
Mon, 16 May 2011 01:26 |
bruceaj
Messages: 30 Registered: September 2010
Karma:
|
Member |
|
|
On May 15, 9:16 pm, Jeff North <jnort...@yahoo.com.au> wrote:
> On Sun, 15 May 2011 17:35:41 -0700 (PDT), in comp.lang.php bruceaj
> <bruc...@bellsouth.net>
> <b563cc5a-aff9-4038-b4af-9368abfd6...@r20g2000yqd.googlegroups.com>
> 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
>
> You are just returning a value so you might need:
> echo GetTelephoneNumber();
> or
> function GetTelephoneNumber() {
> echo "123 456-6789";}
>
> The supplied code is for guideline purposes only.
This is just a test routine. The final routine has calling arguments
and accesses a mysql database to get the telephone number.
I tested your suggestions. They didn't do what I am trying to. Thanks
for sending them..
Thanks for the response....
Bruce
|
|
|