php-windows Digest 24 Mar 2002 06:13:38 -0000 Issue 1059

Topics (messages 12729 through 12738):

PHP4, ASP, and IIS
        12729 by: David Lanier
        12732 by: Nicole Amashta
        12733 by: Asendorf, John

Re: random elements of an array
        12730 by: Nicole Amashta
        12731 by: Nicole Amashta

php3 + Apache + Windows 2000 Pro
        12734 by: Robert Nadot
        12737 by: Robin Bolton

w2k + apacahe + (php3 + php4)
        12735 by: Robert Nadot

connecting php with SqlBase ???
        12736 by: Roberto Martinez

Any credability lost...
        12738 by: Ross Fleming

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 ---
Hi,

I am a college student majoring in computer programming, and have gotten my
college to agree to allow me to install the MySQL database and PHP4 engine
on one of their servers providing it won't interfere with the ASP pages they
are using already.

I serve as the president of a campus fraternity, and we run a news portal
and discussion forums that is written in PHP, and utilizes the MySQL
database. I have been running this off of my home computer at
http://ptk.sytes.net/zorum, but want to move it to a dedicated server, and
since the school has agreed to let me put it there, (providing it won't
interfere with ASP pages), I wanted to ask this.

So, the question is: Can you run PHP and ASP simultaneously on IIS? And will
one interfere with the other?

I need to know this before they will let me install it on their NT servers.

Thanks,

David Lanier, President
Alpha Pi Alpha Chapter
Phi Theta Kappa International
Guilford Technical Community College
Jamestown, NC

--- End Message ---
--- Begin Message ---
My experience has been that you should have no problem using both PHP and
ASP with IIS.

But that's just my personal experience. You can even use both together to an
extent, I presume.

I have used both PHP and Perl together (not in same exact code, that is. but
passing from one perl script to a php script, and vice versa.)

GOod luck with it,
Nicole
www.aeontrek.comn



"David Lanier" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
> I am a college student majoring in computer programming, and have gotten
my
> college to agree to allow me to install the MySQL database and PHP4 engine
> on one of their servers providing it won't interfere with the ASP pages
they
> are using already.
>
> I serve as the president of a campus fraternity, and we run a news portal
> and discussion forums that is written in PHP, and utilizes the MySQL
> database. I have been running this off of my home computer at
> http://ptk.sytes.net/zorum, but want to move it to a dedicated server, and
> since the school has agreed to let me put it there, (providing it won't
> interfere with ASP pages), I wanted to ask this.
>
> So, the question is: Can you run PHP and ASP simultaneously on IIS? And
will
> one interfere with the other?
>
> I need to know this before they will let me install it on their NT
servers.
>
> Thanks,
>
> David Lanier, President
> Alpha Pi Alpha Chapter
> Phi Theta Kappa International
> Guilford Technical Community College
> Jamestown, NC
>


--- End Message ---
--- Begin Message ---
Dear David,

I run PHP, ASP, Perl and MySQL all on the same NT4 IIS4 server. This server
also connects to MSSQL, Oracle and Access databases.  I have no problems and
if you need me to tell someone that, just give them my address.

John Asendorf

---------------------
John Asendorf - [EMAIL PROTECTED]
Web Applications Developer
http://www.lcounty.com - NEW FEATURES ADDED DAILY!
Licking County, Ohio, USA
740-349-3631
Nullum magnum ingenium sine mixtura dementiae fuit


> -----Original Message-----
> From: David Lanier [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 22, 2002 9:58 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] PHP4, ASP, and IIS
> 
> 
> Hi,
> 
> I am a college student majoring in computer programming, and 
> have gotten my
> college to agree to allow me to install the MySQL database 
> and PHP4 engine
> on one of their servers providing it won't interfere with the 
> ASP pages they
> are using already.
> 
> I serve as the president of a campus fraternity, and we run a 
> news portal
> and discussion forums that is written in PHP, and utilizes the MySQL
> database. I have been running this off of my home computer at
> http://ptk.sytes.net/zorum, but want to move it to a 
> dedicated server, and
> since the school has agreed to let me put it there, 
> (providing it won't
> interfere with ASP pages), I wanted to ask this.
> 
> So, the question is: Can you run PHP and ASP simultaneously 
> on IIS? And will
> one interfere with the other?
> 
> I need to know this before they will let me install it on 
> their NT servers.
> 
> Thanks,
> 
> David Lanier, President
> Alpha Pi Alpha Chapter
> Phi Theta Kappa International
> Guilford Technical Community College
> Jamestown, NC
> 
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
--- End Message ---
--- Begin Message ---
And, now, in PHP ...

<?
/*
  By Eva Nicole Amashta
  2002.03.22
  Testing randomizing an array.
*/


$myArray = array( 1, 12, 32, 14, 52, 9 );

echo "<p>Before randomized ... <p>";

## print out array before randomized
for($i=0; $i<count($myArray); $i++)
{
 echo $myArray[$i] . " ";
}

reset( $myArray );

$myArray = randomize(&$myArray);

## now print out the array to see after randomized

echo "<p>After randomized ... <p>";

for($i=0; $i<count($myArray); $i++)
{
 echo $myArray[$i] . " ";
}


//////////////////////
function randomize($someArray) ## uses rand()
{
 $newArray = array();
 $sizeOfArray = count($someArray);

 for($i=0; $i<$sizeOfArray; $i++  )
 {
   $randomIndex = rand(0, $sizeOfArray-1);
   while ( count($newArray) > 0 &&
in_array($someArray[$randomIndex],$newArray)  )
   {
   $randomIndex = rand(0, $sizeOfArray-1);
   }

   $newArray[$i] = $someArray[ $randomIndex ];

   $usedIndexesArray[$i] = $randomIndex;
 }

 return $newArray;
}
?>

I have tested this. It works, Even after you refresh the page. Try it!

Nicole
www.aeontrek.com



"B.A.T. Svensson" <[EMAIL PROTECTED]> wrote in message
27E647E5629ED211BF78009027289C6303C1B777@mail1">news:27E647E5629ED211BF78009027289C6303C1B777@mail1...
> 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();
>
>     file://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
> >


--- End Message ---
--- Begin Message ---
Oh, oops ... one line should not be in there ... remove this line from the
randomize function:

<snip>

   $usedIndexesArray[$i] = $randomIndex;

</snip>

It should not be there. I started to keep track of the indexes used, but i
found better way to do it. So remove that line, it does nothing.

-Nicole

"Nicole Amashta" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> And, now, in PHP ...
>
> <?
> /*
>   By Eva Nicole Amashta
>   2002.03.22
>   Testing randomizing an array.
> */
>
>
> $myArray = array( 1, 12, 32, 14, 52, 9 );
>
> echo "<p>Before randomized ... <p>";
>
> ## print out array before randomized
> for($i=0; $i<count($myArray); $i++)
> {
>  echo $myArray[$i] . " ";
> }
>
> reset( $myArray );
>
> $myArray = randomize(&$myArray);
>
> ## now print out the array to see after randomized
>
> echo "<p>After randomized ... <p>";
>
> for($i=0; $i<count($myArray); $i++)
> {
>  echo $myArray[$i] . " ";
> }
>
>
> //////////////////////
> function randomize($someArray) ## uses rand()
> {
>  $newArray = array();
>  $sizeOfArray = count($someArray);
>
>  for($i=0; $i<$sizeOfArray; $i++  )
>  {
>    $randomIndex = rand(0, $sizeOfArray-1);
>    while ( count($newArray) > 0 &&
> in_array($someArray[$randomIndex],$newArray)  )
>    {
>    $randomIndex = rand(0, $sizeOfArray-1);
>    }
>
>    $newArray[$i] = $someArray[ $randomIndex ];
>
>    $usedIndexesArray[$i] = $randomIndex;
>  }
>
>  return $newArray;
> }
> ?>
>
> I have tested this. It works, Even after you refresh the page. Try it!
>
> Nicole
> www.aeontrek.com
>
>
>
> "B.A.T. Svensson" <[EMAIL PROTECTED]> wrote in message
> 27E647E5629ED211BF78009027289C6303C1B777@mail1">news:27E647E5629ED211BF78009027289C6303C1B777@mail1...
> > 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();
> >
> >     file://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
> > >
>
>


--- End Message ---
--- Begin Message ---
Quelqu'un pourrait-il me dire les directives à insérer
dans le fichier de config de Apache et dans les fichiers
truc muche de W2k pour intaller php3 ?

J'ai passé quelques heures à chercher dans la doc de php
et dans les FAQ mais je n'ai rien trouvé de concret et d'utilisable.

Merci

--
Robert Nadot
1, allée Lumir - 56610 Arradon
[EMAIL PROTECTED]



--- End Message ---
--- Begin Message ---
Robert,
This list tends to be English oriented, you may have a hard time getting a
response if you post in French.

If you can speak English well enough to rephrase your question, I would
suggest that, otherwise you may have better luck somewhere else.


-----Original Message-----
From: Robert Nadot [mailto:[EMAIL PROTECTED]]
Sent: 22-Mar-02 08:01
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] php3 + Apache + Windows 2000 Pro


Quelqu'un pourrait-il me dire les directives à insérer
dans le fichier de config de Apache et dans les fichiers
truc muche de W2k pour intaller php3 ?

J'ai passé quelques heures à chercher dans la doc de php
et dans les FAQ mais je n'ai rien trouvé de concret et d'utilisable.

Merci

--
Robert Nadot
1, allée Lumir - 56610 Arradon
[EMAIL PROTECTED]




--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--- End Message ---
--- Begin Message ---
Est-il possible d'avoir php3 ET php4 sur le même système
w2k + apache ?

La question est posée dans la doc et les faq php, mais
les réponses fournies sont inutilisables, y compris
dans les renvois proposés !

Merci





--- End Message ---
--- Begin Message ---
Hi,

How can i connect php with SqlBase ????

i will apreciate any help
thanks.


--- End Message ---
--- Begin Message ---
It is after 6am, I am just going to bed after several friends have left my
flat after copious amounts of vodka consumed.  Just thought people might be
interested to hear and share any similar stories! :)  OK, bed now, up-time
and hang-over in 4½ hours now.  Yeeeeeeeeeeeeeeeeha!!!!

R

--- End Message ---

Reply via email to