Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #1597

Re: functions in a external file

From Jerry Stuckle <jstucklex@attglobal.net>
Newsgroups comp.lang.php
Subject Re: functions in a external file
Date 2011-05-15 20:48 -0400
Organization A noiseless patient Spider
Message-ID <iqps8d$3kl$1@dont-email.me> (permalink)
References <b563cc5a-aff9-4038-b4af-9368abfd65cb@r20g2000yqd.googlegroups.com>

Show all headers | View raw


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.
jstucklex@attglobal.net
==================

Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

functions in a external file bruceaj <bruceaj@bellsouth.net> - 2011-05-15 17:35 -0700
  Re: functions in a external file Jerry Stuckle <jstucklex@attglobal.net> - 2011-05-15 20:48 -0400
    Re: functions in a external file bruceaj <bruceaj@bellsouth.net> - 2011-05-15 18:18 -0700
      Re: functions in a external file Jerry Stuckle <jstucklex@attglobal.net> - 2011-05-15 22:13 -0400
        Re: functions in a external file bruceaj <bruceaj@bellsouth.net> - 2011-05-15 20:42 -0700
          Re: functions in a external file Jerry Stuckle <jstucklex@attglobal.net> - 2011-05-16 07:00 -0400
            Re: functions in a external file Thomas Mlynarczyk <thomas@mlynarczyk-webdesign.de> - 2011-05-16 22:04 +0200
  Re: functions in a external file Jeff North <jnorthau@yahoo.com.au> - 2011-05-16 11:16 +1000
    Re: functions in a external file bruceaj <bruceaj@bellsouth.net> - 2011-05-15 18:26 -0700
  Re: functions in a external file Michael Fesser <netizen@gmx.de> - 2011-05-16 03:22 +0200
    Re: functions in a external file bruceaj <bruceaj@bellsouth.net> - 2011-05-15 18:48 -0700
  Re: functions in a external file Denis McMahon <denis.m.f.mcmahon@gmail.com> - 2011-05-16 08:24 +0000
    Re: functions in a external file bruceaj <bruceaj@bellsouth.net> - 2011-05-16 10:36 -0700
  Re: functions in a external file The Natural Philosopher <tnp@invalid.invalid> - 2011-05-16 12:49 +0100
    Re: functions in a external file bruceaj <bruceaj@bellsouth.net> - 2011-05-16 10:34 -0700
      Re: functions in a external file Jerry Stuckle <jstucklex@attglobal.net> - 2011-05-16 14:43 -0400

csiph-web