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 #173962 is a reply to message #173959] Mon, 16 May 2011 01:16 Go to previous messageGo to previous message
Jeff North is currently offline  Jeff North
Messages: 58
Registered: November 2010
Karma:
Member
On Sun, 15 May 2011 17:35:41 -0700 (PDT), in comp.lang.php bruceaj
<bruceaj(at)bellsouth(dot)net>
<b563cc5a-aff9-4038-b4af-9368abfd65cb(at)r20g2000yqd(dot)googlegroups(dot)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.
[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 12:24:58 GMT 2024

Total time taken to generate the page: 0.04389 seconds