php-windows Digest 26 Mar 2002 14:09:58 -0000 Issue 1063
Topics (messages 12755 through 12758):
Re: IIS + Oracle 7.* connection
12755 by: Philippe Saladin
Re: random elements of an array
12756 by: Nicola Delbono
12757 by: Svensson, B.A.T. (HKG)
connecting to a database using ODBC
12758 by: Someone Somewhere
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
- First of all, you would use php_oci8.dll, instead of php_oracle.dll. It is
the newest driver to access Oracle database (both oracle 8 AND ORACLE 7).
- You also need the "oracle client" onto the PC where your website is
installed. Ask your dba if you don't know how to install it (nb : it is
located in the cédérom, when you launch the "oracle installer", select
something like "oracle client", or "oci client", I don't remember
exactly...). Actually, this is not installed. This is why you get the
ORA-03121 error.
- try this simple tutorial http://www.thickbook.com/extra/php_oracle.phtml
Hope this helps !!
Regards,
Philippe
"Daniel Ryhle" <[EMAIL PROTECTED]> a écrit dans le message news:
[EMAIL PROTECTED]
> Hi!
> I never connected to a oraxcle db before and this is my problem:
>
> I need to connect to an oracle db through the network.
> I have SID, user id, pass and ip adress.
>
> My IIS system is placed on a win2k machine with php4 installed.
>
> Can anybody post the complete code over a login/query procedure
> against oracle(NOT 8). I would be extra happy if it contained some
comments.
>
> As of now i only get the error "PHP Warning: Oracle: Connection Failed:
> ORA-03121: no interface driver connected - function not performed in
> \*\*.php on line 4 "
>
> Greatful for all help
>
>
--- End Message ---
--- Begin Message ---
why not shuffle() ?
*********** REPLY SEPARATOR ***********
On 25/03/2002 at 11.13 Svensson, B.A.T. (HKG) wrote:
>Of course the algorithm works...
>
>>-----Original Message-----
>>From: Nicole Amashta
>>Sent: Friday, March 22, 2002 4:36 PM
>>To: [EMAIL PROTECTED]
>>Subject: Re: [PHP-WIN] random elements of an array
>>
>
>[...]
>
>>I have tested this. It works, Even after you refresh the page. Try it!
>>
>>Nicole
>>www.aeontrek.com
>>
>>
>>
>>"B.A.T. Svensson" wrote in message
>>> You can completely randomize an array with n elements in n
>>operations, by
>>> using the following brute force approach:
>>>
>>> void ScrambleIntList(int *pnElements, int nLen)
>>> {
>>> for (nLoop = 0, nLoop<nLen; nLopp++) {
>>>
>>> // Pic a random element
>>> int nRandomPic = nLen * rand();
>>>
>>> //Swap current element with the random pic
>>> int nTemp = pnElement[nLoop];
>>> pnElement[nLoop] = Element[nRandomPic];
>>> pnElement[nRandomPic] = nTemp;
>>>
>>> }
>>> }
>>>
>>> /Anders
>>>
>>> >-----Original Message-----
>>> >From: Afan Pasalic [mailto:[EMAIL PROTECTED]]
>>> >Sent: Thursday, March 21, 2002 9:17 PM
>>> >To: [EMAIL PROTECTED]
>>> >Subject: [PHP-WIN] random elements of an array
>>> >
>>> >
>>> >Hi,
>>> >
>>> >My problem is: if I have an array (e.g. 1, 2, 3, 4, 5, 6, 7,
>>> >8, 9), how I can "shake" the array and get randomized order of
>>> >the same array (e.g. 5, 8, 1, 9, 3, 4, 7, 2, 6)?
>>> >
>>> >Thanks for any help!
>>> >
>>> >
>>> >Afan
>>> >
>>
>>
>>
>>--
>>PHP Windows Mailing List (http://www.php.net/)
>>To unsubscribe, visit: http://www.php.net/unsub.php
>>
>
>--
>PHP Windows Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
dr. Nicola Delbono
[EMAIL PROTECTED]
Key5 di Delbono Nicola
V. G.M. Rossi, 12
25038 Rovato (Bs)
Tel 39 030 7242266
Fax 39 030 7242266
www.smscitta.com | www.musicalbox.it
www.filosofo.it | www.bollicine.com
--- End Message ---
--- Begin Message ---
Can you please explain (elaborate) what you mean?
>-----Original Message-----
>From: Nicola Delbono
>Sent: Tuesday, March 26, 2002 11:12 AM
>To: Svensson, B.A.T. (HKG); [EMAIL PROTECTED]
>Subject: RE: [PHP-WIN] random elements of an array
>
>
>why not shuffle() ?
>
>*********** REPLY SEPARATOR ***********
>
>On 25/03/2002 at 11.13 Svensson, B.A.T. (HKG) wrote:
>
>>Of course the algorithm works...
>>
>>>-----Original Message-----
>>>From: Nicole Amashta
>>>Sent: Friday, March 22, 2002 4:36 PM
>>>To: [EMAIL PROTECTED]
>>>Subject: Re: [PHP-WIN] random elements of an array
>>>
>>
>>[...]
>>
>>>I have tested this. It works, Even after you refresh the
>page. Try it!
>>>
>>>Nicole
>>>www.aeontrek.com
>>>
>>>
>>>
>>>"B.A.T. Svensson" wrote in message
>>>> You can completely randomize an array with n elements in n
>>>operations, by
>>>> using the following brute force approach:
>>>>
>>>> void ScrambleIntList(int *pnElements, int nLen)
>>>> {
>>>> for (nLoop = 0, nLoop<nLen; nLopp++) {
>>>>
>>>> // Pic a random element
>>>> int nRandomPic = nLen * rand();
>>>>
>>>> //Swap current element with the random pic
>>>> int nTemp = pnElement[nLoop];
>>>> pnElement[nLoop] = Element[nRandomPic];
>>>> pnElement[nRandomPic] = nTemp;
>>>>
>>>> }
>>>> }
>>>>
>>>> /Anders
>>>>
>>>> >-----Original Message-----
>>>> >From: Afan Pasalic [mailto:[EMAIL PROTECTED]]
>>>> >Sent: Thursday, March 21, 2002 9:17 PM
>>>> >To: [EMAIL PROTECTED]
>>>> >Subject: [PHP-WIN] random elements of an array
>>>> >
>>>> >
>>>> >Hi,
>>>> >
>>>> >My problem is: if I have an array (e.g. 1, 2, 3, 4, 5, 6, 7,
>>>> >8, 9), how I can "shake" the array and get randomized order of
>>>> >the same array (e.g. 5, 8, 1, 9, 3, 4, 7, 2, 6)?
>>>> >
>>>> >Thanks for any help!
>>>> >
>>>> >
>>>> >Afan
>>>> >
>>>
>>>
>>>
>>>--
>>>PHP Windows Mailing List (http://www.php.net/)
>>>To unsubscribe, visit: http://www.php.net/unsub.php
>>>
>>
>>--
>>PHP Windows Mailing List (http://www.php.net/)
>>To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>
>dr. Nicola Delbono
>[EMAIL PROTECTED]
>Key5 di Delbono Nicola
>V. G.M. Rossi, 12
>25038 Rovato (Bs)
>Tel 39 030 7242266
>Fax 39 030 7242266
>
>www.smscitta.com | www.musicalbox.it
>www.filosofo.it | www.bollicine.com
>
--- End Message ---
--- Begin Message ---
Can anyone offer some help
I need to connect to an acces database, Using php on Windows with Apache.
If anyone has some sample code I would greatly appreciate it I am lost about
the wholeODBC thing.
Cirkit
_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com
--- End Message ---