php-windows Digest 10 Dec 2002 09:56:44 -0000 Issue 1480

Topics (messages 17365 through 17369):

can't connect localhost
        17365 by: Pat Johnston
        17366 by: Rico Derks

Php & IIS 3 +Win NT
        17367 by: Veselina Stoyanova

Starnge parse problem
        17368 by: George Pitcher
        17369 by: DL Neil

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'm new at Apache, PHP, MySQL, but have been going okay on my win2000
machine. For months, it's been good.

But for reason, I get this message when I try to do stuff with mysqladmin

******
mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to MySQL server on 'localhost' (10061)'
******

Have I done something to cause this?

My development sites on 'localhost' just come up with a warning that it
can't connect to retrieve data from the MySQL database.

I know it may be a small problem, but I can't work it out..
I've read the manuals but I can't see anything relevant to it..

Thanks in advance

Pat



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

Check out this website:
http://www.mysql.com/doc/en/Can_not_connect_to_server.html

Greetings, RICO.

At 11:16 AM 12/10/2002 +1100, Pat Johnston wrote:
Hi
I'm new at Apache, PHP, MySQL, but have been going okay on my win2000
machine. For months, it's been good.

But for reason, I get this message when I try to do stuff with mysqladmin

******
mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to MySQL server on 'localhost' (10061)'
******

Have I done something to cause this?

My development sites on 'localhost' just come up with a warning that it
can't connect to retrieve data from the MySQL database.

I know it may be a small problem, but I can't work it out..
I've read the manuals but I can't see anything relevant to it..

Thanks in advance

Pat




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

--- End Message ---
--- Begin Message ---
Hello, everyone!
Does anyone have some experience with installing php on Win NT 4, running
IIS 3? I've have tried several times using either Windows installer and CGI
binary zip, but it doesn't work.
Windows installer works properly and displays a message saying the
installation is ok, but it doesn't work.
The same installation package works on Win 2000 without any problems.
Thanks in advance.
Veselina

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

I am starting to build a calendar. I know that there are resources out there
but I want to learn, so I'm starting from scratch.

I've got my thinking this far and I've hit an unexpected snag.

When I call the page containing the following script:

<?php

$max = date("t");
$dateM = date("n");
$dateY = date("Y");
$dateNow = date("j");

echo "<Table width=70% border=1>";

for ($x = 1; $x <= $max; $x++) {
$dayName = date ("l", mktime(0,0,0,$dateM,$x,$dateY));
$dayNum = date ("w", mktime(0,0,0,$dateM,$x,$dateY));
$d1 = 0;

while ( $dayNum > $d1 ) {
        if ( $d1 == 0 ){
                echo "<tr><td bgcolor=gray>&nbsp;</td>";
        } else {
                echo "<td bgcolor=cornflower>&nbsp;</td>";
        }
}

if ( $dateNow == $x  && $dayNum == 0 ) {
        echo "</tr><tr><td bgcolor=yellow>".$x."</td>";
} else {
        if ( $dateNow == $x  && $dayNum == 6){
                echo "<td bgcolor=yellow>".$x."</td>";
                if ( $dayNum == 0 ) {
                        echo "</tr><tr><td bgcolor=gray>".$x."</td>";
                } else {
                        echo "<td bgcolor=cornflower>".$x."</td>";
                }
        }
}
echo "</tr>";
echo "</Table>";
?>


I get this error:

"Parse error: parse error, unexpected $ in c:\inetpub\wwwroot\Month2.php on
line 48"

Now can anyone suggest where I've gone wrong?

Cheers

George in Oxford

===

George Pitcher
HERON Technical Manager
Ingenta plc
23-38 Hythe Bridge Street, Oxford, OX1 2ET
T  +44 (0)1865 799137 direct
T  +44 (0)1865 799000 switchboard
F  +44 (0)1865 799134
E  [EMAIL PROTECTED]

www.ingenta.com
Ingenta: Empowering the exchange of academic and professional content
online.

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

Imbalance of { - I think the first one/after the for!

=dn


> Hi guys,
>
> I am starting to build a calendar. I know that there are resources out
there
> but I want to learn, so I'm starting from scratch.
>
> I've got my thinking this far and I've hit an unexpected snag.
>
> When I call the page containing the following script:
>
> <?php
>
> $max = date("t");
> $dateM = date("n");
> $dateY = date("Y");
> $dateNow = date("j");
>
> echo "<Table width=70% border=1>";
>
> for ($x = 1; $x <= $max; $x++) {
> $dayName = date ("l", mktime(0,0,0,$dateM,$x,$dateY));
> $dayNum = date ("w", mktime(0,0,0,$dateM,$x,$dateY));
> $d1 = 0;
>
> while ( $dayNum > $d1 ) {
> if ( $d1 == 0 ){
> echo "<tr><td bgcolor=gray>&nbsp;</td>";
> } else {
> echo "<td bgcolor=cornflower>&nbsp;</td>";
> }
> }
>
> if ( $dateNow == $x  && $dayNum == 0 ) {
> echo "</tr><tr><td bgcolor=yellow>".$x."</td>";
> } else {
> if ( $dateNow == $x  && $dayNum == 6){
> echo "<td bgcolor=yellow>".$x."</td>";
> if ( $dayNum == 0 ) {
> echo "</tr><tr><td bgcolor=gray>".$x."</td>";
> } else {
> echo "<td bgcolor=cornflower>".$x."</td>";
> }
> }
> }
> echo "</tr>";
> echo "</Table>";
> ?>
>
>
> I get this error:
>
> "Parse error: parse error, unexpected $ in c:\inetpub\wwwroot\Month2.php
on
> line 48"
>
> Now can anyone suggest where I've gone wrong?
>
> Cheers
>
> George in Oxford
>
> ===
>
> George Pitcher
> HERON Technical Manager
> Ingenta plc
> 23-38 Hythe Bridge Street, Oxford, OX1 2ET
> T  +44 (0)1865 799137 direct
> T  +44 (0)1865 799000 switchboard
> F  +44 (0)1865 799134
> E  [EMAIL PROTECTED]
>
> www.ingenta.com
> Ingenta: Empowering the exchange of academic and professional content
> online.
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--- End Message ---

Reply via email to