Hi Frank,
The reason I asked is that some files I'm modifying have "include_once" used in
every instance.
There doesn't seem to be any reason why they are using this, as there's no
chance of being included twice.
It seems that they've used "include_once" (just in case), which is misleading.
I've
On 8/9/2005, "Marc Henri" wrote:
>
>
>main.php:
>
>//html code for a form. Just enter a number and then
>you'll get its sqrt.
>include("myfunctions.php"); //the file where are stored all my functions
>$number=$_POST['number'];
>
>sqr($number);
>
>echo "The result of the function is : $number";
>
you never changed the value of $number...
$number = sqr($number);
On 8/9/05, Marc Henri <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> //html code for a form. Just enter a number and then
> you'll get its sqrt.
> include("myfunctions.php"); //the file where are
> stored all my functions
> $number=
Hello,
>There is nothing wrong with that solution at all. I
>have a functions.php include as well, and so do most
>professional BBS's on the market too.
Ok, I don't get it because it doesn't work for me.
I tried something very simple, here is the code.
By the way what is professional BBS? The on
>> I tried to add a include in my main script: include ("myfunctions.php);
>> then type the name of the function that I want to use but it is not the
>> good way, or I make a mistake. What is the solution?
> There is nothing wrong with that solution at all. I have a functions.php
> include as w
Marc Henri wrote:
>
> I tried to add a include in my main script:
> include ("myfunctions.php);
> then type the name of the function that I want to use
> but it is not the good way, or I make a mistake.
>
> What is the solution?
>
There is nothing wrong with that solution at all. I have a
f
Hello,
I think this is a very basic question for many people
here, but I really can't find the answer.
Instead of writing a function in my main script, I
would like to have one or more functions alltogether
in a file, for example called 'myfunctions.php'.
Then, from my script I want to be able t
Thanks, Bob. I'm surprised (and pleased!) to learn it works this way.
Re: include_once() vs. include() - they truly serve two different
purposes.
Use include() when you want to include the same file multiple times, at
different parts of your page.
Use include_once() when you need to prevent a f
imran shafiq wrote:
> Hi All
Hi Imran:
> 1) How to calculate two combo box values and
> display
> it without submiting the form in PHP
can't be done. php runs on the server. if you want it to be done
without a page re-load, you will need to use javascript, or make a flash
movie of some
Hi All
I am a biggner in PHP and I am sending 3
problems in PHP which are I am facing now a days.And
I need a solution in PHP.
1) How to calculate two combo box values and
display
it without submiting the form in PHP.for example
.
unit cost:
Qty:
Total cost:<=Here
Hi Mike,
Yep, you can include html, no probs without echoing it.
etc.
Every example I see lately seems to use "include_once" regardless of whether it
could be included twice or more.
I was beginning to think that "include" was redundant.
Must be belt and braces strategy?
- Original Message
On 8/9/2005, "Bob" <[EMAIL PROTECTED]> wrote:
>Is there anything wrong with using:- include_once "header.php";
>
>where the header is just html, and include "header.php"; would have done?
>
>
No... but I'm not sure what either one would accomplish. If header.php
truly contains just html, you wou
Is there anything wrong with using:- include_once "header.php";
where the header is just html, and include "header.php"; would have done?
Yahoo! Groups Sponsor ~-->
http://us.ard.yahoo.com/SIG=12h94mdk2/M=362329.6886308.7839368.1510227/D=groups/S=1
13 matches
Mail list logo