php-windows Digest 22 Mar 2004 10:36:12 -0000 Issue 2176
Topics (messages 23210 through 23215):
Web Server Setup helpppp pleaseeee
23210 by: Student
23212 by: Viraj Kalinga Abayarathna
23213 by: Svensson, B.A.T. (HKG)
23214 by: Viraj Kalinga Abayarathna
Re: WEB SERVER help
23211 by: Student
The specified CGI application misbehaved by not returning a complete set of HTTP
headers.
23215 by: Svensson, B.A.T. (HKG)
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, Ok, lets start from the beginning. We have a new HP server with win 2k OS. I
want to set it up as a web server that will only host our company website. I have
installed Apache, mysql, php and also iis. Now can someone tell me what i have to do
to make it a web server for my web site build on php mysql. I am i newbie...
I have already configured apache and php variable. the site is running well on the
server itself. Please help me in setting it up. I have never done it
before..........email [EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
Explain your network environment briefly...
like, what is the internet conectivity, IPs, server configuratiions,
how many network cards, whether you have a firewall or not then i can
help you..
Viraj.
Student wrote:
> Hi, Ok, lets start from the beginning. We have a new HP server with win 2k OS. I
> want to set it up as a web server that will only host our company website. I have
> installed Apache, mysql, php and also iis. Now can someone tell me what i have to
> do to make it a web server for my web site build on php mysql. I am i newbie...
> I have already configured apache and php variable. the site is running well on the
> server itself. Please help me in setting it up. I have never done it
> before..........email [EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
I am sure most people can do that, including my self, and
it is very kind of you to provide help, but the win-php list
is not the best place to do this, and should not be either,
unless one want the entire channel to be spammed with such
here requests for help. (Don't unleash the best...)
-----Original Message-----
From: Viraj Kalinga Abayarathna
Explain your network environment briefly...
like, what is the internet conectivity, IPs, server configuratiions,
how many network cards, whether you have a firewall or not then i can
help you..
Viraj.
Student wrote:
> Hi, Ok, lets start from the beginning. We have a new HP server with
win 2k OS. I want to set it up as a web server that will only host our
company website. I have installed Apache, mysql, php and also iis. Now
can someone tell me what i have to do to make it a web server for my web
site build on php mysql. I am i newbie...
> I have already configured apache and php variable. the site is
running well on the server itself. Please help me in setting it up. I
have never done it before..........email [EMAIL PROTECTED]
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Hi all,
Actually, i sent an e-mail to "Student <[EMAIL PROTECTED]>" telling
this, but
i did not include the "[EMAIL PROTECTED]". Sorry for that..
Viraj.
p.s. sent mail attached.
"Svensson, B.A.T. (HKG)" wrote:
> I am sure most people can do that, including my self, and
> it is very kind of you to provide help, but the win-php list
> is not the best place to do this, and should not be either,
> unless one want the entire channel to be spammed with such
> here requests for help. (Don't unleash the best...)
>
> -----Original Message-----
> From: Viraj Kalinga Abayarathna
>
> Explain your network environment briefly...
>
> like, what is the internet conectivity, IPs, server configuratiions,
> how many network cards, whether you have a firewall or not then i can
> help you..
>
> Viraj.
>
> Student wrote:
>
> > Hi, Ok, lets start from the beginning. We have a new HP server with
> win 2k OS. I want to set it up as a web server that will only host our
> company website. I have installed Apache, mysql, php and also iis. Now
> can someone tell me what i have to do to make it a web server for my web
> site build on php mysql. I am i newbie...
> > I have already configured apache and php variable. the site is
> running well on the server itself. Please help me in setting it up. I
> have never done it before..........email [EMAIL PROTECTED]
>
> --
> 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
Subject: Re: [PHP-WIN] Web Server Setup helpppp pleaseeee
Date: Mon, 22 Mar 2004 09:50:55 +0600
From: Viraj Kalinga Abayarathna <[EMAIL PROTECTED]>
To: Student <[EMAIL PROTECTED]>
Hi,
This is not a Network or TCP/IP support mailing list, so you have to
think on it too before you posting such subjects on the list..
Viraj.
Student wrote:
> Hi, Ok, lets start from the beginning. We have a new HP server with win 2k OS. I
> want to set it up as a web server that will only host our company website. I have
> installed Apache, mysql, php and also iis. Now can someone tell me what i have to
> do to make it a web server for my web site build on php mysql. I am i newbie...
> I have already configured apache and php variable. the site is running well on the
> server itself. Please help me in setting it up. I have never done it
> before..........email [EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
How did i enable the IP routing?????????????
thanks
prit
----- Original Message -----
From: "Svensson, B.A.T. (HKG)" <[EMAIL PROTECTED]>
To: "'Student '" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Sunday, March 21, 2004 12:26 AM
Subject: RE: [PHP-WIN] WEB SERVER help
Your problem has nothing to do with PHP, it's a IP routing problem.
-----Original Message-----
From: Student
To: [EMAIL PROTECTED]
Sent: 20-3-2004 11:59
Subject: [PHP-WIN] WEB SERVER help
Hi all, I am a fresh graduate out off uni and i need some ones helps. U
see our company has a HP server which came with win2000 server OS cd. I
have installed win2k and have installed IIS on it. I am trying to have
our web site (build on PHP and MYSQL). After a bit of trying, i got PHP
to run with IIS, but then i realised that IIS takes a lot of time in
process the PHP scripts. So i then stopped IIS and instaled Apache web
server. Apache was faster in process the PHP scripts then IIS. Now my
web server is working fine. But i can't get it to be accessable outside
the server. I can only view my web site on the server and not on any of
the other computers. I get an ISA Server Error, saying that gateway no
access . Please help me, i am not that well vesed with server setup..
Please do email me on [EMAIL PROTECTED]
Thanks
prit
--- End Message ---
--- Begin Message ---
I am curious about why the following error:
"The specified CGI application misbehaved by not returning a complete
set of HTTP headers."
is generated while trying to read data from an empty pipe.
**********************************************************
DISCUSSION:
I have an (working) application that renders an out put in
side a table based on the menu selection the user does.
Basically the web pages is organized as such:
+-----------+
| PAGE HEAD |
+-+---------+
|M| |
|E| OUTPUT |
|N| VIEW |
|U| |
. . .
. . .
. . .
+-+---------+
| PAGE FOOT |
+-----------+
Now, if I select a certain menu choices, and the system is in a
certain state (will soon explain this) then the CGI error "The
specified CGI application misbehaved by not returning a complete
set of HTTP headers." occurs.
What trigger then the error then, well, it is derived from a
function like this:
(This function will output its display data the "OUTPUT VIEW".)
function ug_show_files($Dir, $pattern, $Message)
{
print "<pre>$Message\r\n";
$ListDir = "dir $Dir\\*.$pattern";
if ($pipe = popen($ListDir, "r")) {
while (!feof($pipe)) {
$line = trim(fgets($pipe));
print "$line\n";
}
pclose($pipe);
}
print"<pre>";
return "ok";
}
The above code list a given directory based on $pattern.
However whenever no files are found, then the above CGI error
is generated - but never if there is a content found. I was a
bit confused about this, since the only difference is that the
directory listing does not generate an output, so in my point
of view it should work, but it did not.
I boiled down the problem to be related with fgets() - the error
occurs when the directory listing does not return anything, so I
thought I would be able to get rid of the error by writing the code
like this instead:
function ug_show_files($Dir, $pattern, $Message)
{
print "<pre>$Message\r\n";
$ListDir = "dir $Dir\\*.$pattern";
if ($pipe = popen($ListDir, "r")) {
$a = fgets($pipe)
while (!feof($pipe)) {
$line = trim($a);
print "$line\n";
$a = fgets($pipe);
}
pclose($pipe);
}
print"<pre>";
return "ok";
}
However the error persisted whenever the directory list
was empty so I changed the code to look like this:
function ug_show_files($Dir, $pattern, $Message)
{
print "<pre>$Message\r\n";
$ListDir = "dir $Dir";
if ($pipe = popen($ListDir, "r")) {
while (!feof($pipe)) {
$line = trim(fgets($pipe));
if (strpos($line, ".$pattern")) {
print "$line\n";
}
}
pclose($pipe);
}
print"<pre>";
return "ok";
}
And after this the pages stop returning an error. Now to the
question; why is it that fgets() generates this CGI error
when fgets() read from an empty pipe?
--- End Message ---