Ask a Question related to PHP Development, Design and Development.
-
Aaron DeLoach #1
include_once() - always included?
Hi All,
Always looking for efficiency, consider the following code:
<?php
function one($arg){
if ($arg == 1){
include_once(...);
do some stuff...
}else{
do some stuff...
}
}
?>
If the above function is called with an argument value of '2', is the
'include_once' file included?
Regards,
Aaron
Aaron DeLoach Guest
-
Nothing Was Specified to be included in the library
I am getting that error when I try to compile my project. The library it is referring to is FlexLib. I have tried everything I can think of but... -
#37766 [Opn->Fbk]: include_once() adds file more than one time
ID: 37766 Updated by: tony2001@php.net Reported By: boris_k at iname dot com -Status: Open +Status: ... -
1 px gap below my included tables
This could really fit in a few areas, but I decided to post it in here. I created this website http://h2mp.com as you can see, right under the... -
#25381 [Bgs]: include_once failed to recognize identical file
ID: 25381 User updated by: ulysses at mail dot fitan dot com dot tw Reported By: ulysses at mail dot fitan dot com dot tw... -
Question about Include_once
Does file called by "Include_once" stay with the client's session or just for operations in the page where it is stated? For example, assume I... -
Andy Hassall #2
Re: include_once() - always included?
On Fri, 15 Oct 2004 17:58:33 -0500, "Aaron DeLoach" <aaron@deloachcorp.com>
wrote:
No. (What happened when you tried it?)>Always looking for efficiency, consider the following code:
>
><?php
>function one($arg){
> if ($arg == 1){
> include_once(...);
> do some stuff...
> }else{
> do some stuff...
> }
>}
>?>
>
>If the above function is called with an argument value of '2', is the
>'include_once' file included?
--
Andy Hassall / <andy@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool
Andy Hassall Guest
-
Harrie Verveer #3
Re: include_once() - always included?
ehrm no... please tell me this is a joke :P
Aaron DeLoach wrote:> Hi All,
>
> Always looking for efficiency, consider the following code:
>
> <?php
> function one($arg){
> if ($arg == 1){
> include_once(...);
> do some stuff...
> }else{
> do some stuff...
> }
> }
> ?>
>
> If the above function is called with an argument value of '2', is the
> 'include_once' file included?
>
> Regards,
> Aaron
>
>
>
>Harrie Verveer Guest



Reply With Quote

