php-windows Digest 4 Jul 2002 08:37:16 -0000 Issue 1224

Topics (messages 14558 through 14562):

Problem installing PHP on Win95/PWS - 500 error
        14558 by: Peter Cinquini

Re: Beginner question - blank php page
        14559 by: Dash McElroy
        14562 by: Saci

PHP Page does not seem to render
        14560 by: C. Hendrie
        14561 by: Shrock, Court

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 ---
I am having problems installing php (4.2.1) on Personal Web Server on
Windows 95 using the InstallShield installer and specifying the standard
installation. I have set up a php directory given it full privileges
including execute and tested that it is in my webspace. When I try and run a
test php script I get the message: "HTTP/1.1 500 Server Error". (I get this
message even if I misspell the URL !)

The FAQ says to run php -i. I get a screen full of html codes (the output of
the phpinfo() function) which indicates that PHP is working. The FAQ
suggests it is a problem with my server configuration. What does this mean?
The php docs say the  installshield setup is supposed to configure the PWS
web server as well.

PWS works fine with ASP and plain HTML. Do I need to do more that just run
the installshield? Any help appreciated. ( I previously posted this message
in the php.install newsgroup but had no response).



--- End Message ---
--- Begin Message ---
Try and view your source. If you see PHP code, then you haven't configured
your webserver correctly.

-Dash

-----Original Message-----
From: Arthur [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, July 03, 2002 8:07 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Re: Beginner question - blank php page


My setup:

Win98
Apache 1.3 (docs say v2 not work on win98)
PHP4
File = htdocs/test.php (test.html works fine)
Code:
<html>
<body>
<?php
$myvar = "Hello World1";
echo $myvar;
print ("Hello World 2");
?>
</body>
</html>

--
-----------------------------------------------------
Click here for Free Video!!
http://www.gohip.com/free_video/

"Arthur" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Just installed php for the first time. Called up a hello wold page and the
> page is blank. Can someone tell me what I'm doing wrong?
>
> TIA Arthur
>
> --
> -----------------------------------------------------
> Click here for Free Video!!
> http://www.gohip.com/free_video/
>
>
>



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Only  this is enough

<html>
<body>
<?php
   echo "Hello word";
?>
</body>
</html>

You sample are correct, you probably have problem in php install



"Dash McElroy" <[EMAIL PROTECTED]> escreveu na mensagem
ABA3F1F1A223D411BE6C006008A6F7E26043CA@MSX1-PTON">news:ABA3F1F1A223D411BE6C006008A6F7E26043CA@MSX1-PTON...
> Try and view your source. If you see PHP code, then you haven't configured
> your webserver correctly.
>
> -Dash
>
> -----Original Message-----
> From: Arthur [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 03, 2002 8:07 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Re: Beginner question - blank php page
>
>
> My setup:
>
> Win98
> Apache 1.3 (docs say v2 not work on win98)
> PHP4
> File = htdocs/test.php (test.html works fine)
> Code:
> <html>
> <body>
> <?php
> $myvar = "Hello World1";
> echo $myvar;
> print ("Hello World 2");
> ?>
> </body>
> </html>
>
> --
> -----------------------------------------------------
> Click here for Free Video!!
> http://www.gohip.com/free_video/
>
> "Arthur" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Just installed php for the first time. Called up a hello wold page and
the
> > page is blank. Can someone tell me what I'm doing wrong?
> >
> > TIA Arthur
> >
> > --
> > -----------------------------------------------------
> > Click here for Free Video!!
> > http://www.gohip.com/free_video/
> >
> >
> >
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php


--- End Message ---
--- Begin Message ---

I sent this out once before but nobody replied, I could REALLY use some help, as this page needs to be working by 2 pm Monday morning, and I have NO idea what's wrong . THANKS!

 

::::::::::::::::::::::::::::: ORIGINAL CODE :::::::::::::::::::::::::::::::::::::

 

<?php

 

error_reporting (E_ALL);

 

/* Allow the script to hang around waiting for connections. */

 

set_time_limit (0);

 

$telnetclient = "zeth";

$remotehost[0] = "abandonedrealms.net"; $remoteport[0] = "9000"; $remotehost[1] = "cnn.com"; $remoteport[1] = "80"; $remotehost[2] = "freebsd.org"; $remoteport[2] = "80";

 

$c = count($remotehost);

$c2 = count($remoteport);

if($c != $c2){

    die("You must have both remoteport and remotehost specified for all servers."); }

 

?>

 

<html>

<head>

<title>Zeth's server status checker</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head>

 

<body bgcolor="#FFFFFF" text="#000000"> <table width="100" border="1" cellspacing="0" cellpadding="0" bordercolor="#000000">

  <tr>

    <td>

      <table width="291" border="0"

cellspacing="0" cellpadding="0">

        <tr bgcolor="#00CCFF">

          <td><b><font color="#FFFFFF"

face="Verdana, Arial, Helvetica, sans-serif"

size="2">Server

            name</font></b></td>

          <td><b><font color="#FFFFFF"

face="Verdana, Arial, Helvetica, sans-serif" size="2">Status</font></b></td>

        </tr>

        <?php

for ($i = 0; $i < $c; $i++) {

$fp = fsockopen("$remotehost[$i]", $remoteport[$i], $errno, $errstr);

 

if (!$fp) {

    ?>

       <tr bgcolor="#FFFFFF">

          <td><font color="#000000" face="Verdana,

Arial, Helvetica, sans-serif" size="1"><?php echo $remotehost[$i].":".$remoteport[$i]; ?></font></td>

          <td>

            <div align="center"><font

color="#000000" face="Verdana, Arial, Helvetica,

sans-serif" size="1">DOWN</font></div>

          </td>

        </tr>

     <?php

        } else {

     ?>

       <tr bgcolor="#FFFFFF">

          <td><font color="#000000" face="Verdana,

Arial, Helvetica, sans-serif" size="1"><?php echo $remotehost[$i].":".$remoteport[$i]; ?></font></td>

          <td>

            <div align="center"><font

color="#000000" face="Verdana, Arial, Helvetica,

sans-serif" size="1">UP</font></div>

          </td>

        </tr>

     <?php

fclose ($fp);

}

}

        ?>

      </table>

    </td>

  </tr>

</table>

</body>

</html>

 

 

_________________________________________
Chris H
ICQ#:141167181
Current ICQ status:

SMS: (Send an SMS message to my ICQ): +2783142
141167181
More ways to contact me: http://wwp.icq.com/141167181
_________________________________________

 

--- End Message ---
--- Begin Message ---
shouldn't this line:

$fp = fsockopen("$remotehost[$i]", $remoteport[$i], $errno, $errstr);

be this:

$fp = fsockopen("{$remotehost[$i]}", $remoteport[$i], $errno, $errstr);
OR
$fp = fsockopen($remotehost[$i], $remoteport[$i], $errno, $errstr);

-----Original Message-----
From: C. Hendrie
To: [EMAIL PROTECTED]
Sent: 7/3/02 7:59 PM
Subject: [PHP-WIN] PHP Page does not seem to render

I sent this out once before but nobody replied, I could REALLY use some
help, as this page needs to be working by 2 pm Monday morning, and I
have NO idea what's wrong . THANKS!
 
::::::::::::::::::::::::::::: ORIGINAL CODE
:::::::::::::::::::::::::::::::::::::
 
<?php
 
error_reporting (E_ALL);
 
/* Allow the script to hang around waiting for connections. */
 
set_time_limit (0);
 
$telnetclient = "zeth";
$remotehost[0] = "abandonedrealms.net"; $remoteport[0] = "9000";
$remotehost[1] = "cnn.com"; $remoteport[1] = "80"; $remotehost[2] =
"freebsd.org"; $remoteport[2] = "80";
 
$c = count($remotehost);
$c2 = count($remoteport);
if($c != $c2){
    die("You must have both remoteport and remotehost specified for all
servers."); }
 
?>
 
<html>
<head>
<title>Zeth's server status checker</title> <meta
http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
 
<body bgcolor="#FFFFFF" text="#000000"> <table width="100" border="1"
cellspacing="0" cellpadding="0" bordercolor="#000000">
  <tr>
    <td>
      <table width="291" border="0"
cellspacing="0" cellpadding="0">
        <tr bgcolor="#00CCFF">
          <td><b><font color="#FFFFFF"
face="Verdana, Arial, Helvetica, sans-serif"
size="2">Server
            name</font></b></td>
          <td><b><font color="#FFFFFF"
face="Verdana, Arial, Helvetica, sans-serif"
size="2">Status</font></b></td>
        </tr>
        <?php
for ($i = 0; $i < $c; $i++) {
$fp = fsockopen("$remotehost[$i]", $remoteport[$i], $errno, $errstr);
 
if (!$fp) {
    ?>
       <tr bgcolor="#FFFFFF">
          <td><font color="#000000" face="Verdana,
Arial, Helvetica, sans-serif" size="1"><?php echo
$remotehost[$i].":".$remoteport[$i]; ?></font></td>
          <td>
            <div align="center"><font
color="#000000" face="Verdana, Arial, Helvetica,
sans-serif" size="1">DOWN</font></div>
          </td>
        </tr>
     <?php
        } else {
     ?>
       <tr bgcolor="#FFFFFF">
          <td><font color="#000000" face="Verdana,
Arial, Helvetica, sans-serif" size="1"><?php echo
$remotehost[$i].":".$remoteport[$i]; ?></font></td>
          <td>
            <div align="center"><font
color="#000000" face="Verdana, Arial, Helvetica,
sans-serif" size="1">UP</font></div>
          </td>
        </tr>
     <?php
fclose ($fp);
}
}
        ?>
      </table>
    </td>
  </tr>
</table>
</body>
</html>
 
 
_________________________________________
Chris H
ICQ#:141167181
Current ICQ status: 

SMS: (Send an SMS message to my ICQ): +2783142141167181
More ways to contact me: http://wwp.icq.com/
<http://wwp.icq.com/141167181> 141167181
_________________________________________ 
 
--- End Message ---

Reply via email to