Re: [PHP] function problem ...

2001-02-07 Thread Frederico Augusto Costa

Try require_once($your_file) or verify in $your_file use the function
function_exists()
[]'s

Frederico Augusto Costa
[EMAIL PROTECTED]


On Wed, 7 Feb 2001, Miguel Loureiro wrote:

> Hello
> I have a script that use other script file(php) twice, I call a function with 
>certain parameters and call it again with other parameters and when runnig the 
>script, the first function works well, but on second time I got a error message: 
>"Fatal error: Cannot redeclare getndays() in Unknown on line 5".
> Anyone kows what is my problem ???
> T.Y.
> Miguel Loureiro <[EMAIL PROTECTED] >
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] random no. between two numbers?

2001-01-17 Thread Frederico Augusto Costa

Have you tried rand(1,100) ?


Frederico Augusto Costa
[EMAIL PROTECTED]


On Tue, 16 Jan 2001, Erick Papadakis wrote:

> hi,
>
> in php, how can i generate a random no. but between
> two numbers? for example, i need to generate any
> integer, randomly, between 1 and 1000.
>
> thanks a lot!
>
> regards/erick
>
>
> __
> Do You Yahoo!?
> Get email at your own domain with Yahoo! Mail.
> http://personal.mail.yahoo.com/
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]