php-windows Digest 28 Nov 2002 16:03:19 -0000 Issue 1461
Topics (messages 17180 through 17206):
Stupid Question About IIS and PHP
17180 by: Diggy Bell
17183 by: J.Veenhuijsen
Re: Redirect browser to another URL?
17181 by: Max Graham
17185 by: Rich Gray
17187 by: Rich Gray
17190 by: Stephen Edmonds
17193 by: Ignatius Reilly
17202 by: Max Graham
17203 by: Max Graham
17204 by: Max Graham
Re: Getting my IP adress (not 127.0.0.1)
17182 by: Steve Yates
Re: help with db selection with php .............
17184 by: toby z
17189 by: Rich Gray
17205 by: Diggy Bell
perhaps this e' the indica
17186 by: Franco Pozzer
Calling DB Oracle from PHP scrip
17188 by: Franco Pozzer
Who is on line?
17191 by: mst
17192 by: Stephen Edmonds
17195 by: mst
17196 by: Svensson, B.A.T. (HKG)
17200 by: mst
17206 by: Stephen Edmonds
404 error
17194 by: Kristof Troch
get service status on win32 from php
17197 by: Alexander Kuznetsov
17198 by: Ignatius Reilly
17199 by: Ignatius Reilly
17201 by: Alexander Kuznetsov
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 ---
Ok, I've left several handfuls of hair on the floor over this one, but I
gotta ask... I apologize in advance for the stupidity. I normally work
with Apache, but the client is always rignt! :P.
I'm running IIS 5 on Win2K with PHP 4.2.3. I've been able to get one
application completely working, but on a second app, I've run into problems
when I try to submit a form.
IMPORTANT NOTE: I'm working with a home-built version of PHP. I've added
support for a new database as an extension. I can't see where this would be
impacting anything, but that doesn't mean much.
Application One - Working Successfully
The project is in C:\Projects\ClientName\html
The application is able to serve pages and accept forms.
Application Two - NOT Working!!!
The project is in C:\Projects\DirName\html
The application is able to serve pages, but when I submit a form, the server
returns Error 405 - Resource Not Allowed
I've tried as my different combinations of permissions as I can, but nothing
seems to work properly. Has anyone seen this before and have the one thing
I haven't tried yet?
Thanks in advance...
--
William D. 'Diggy' Bell
Principal
DB Software Development
http://www.dbsoftdev.com
--- End Message ---
--- Begin Message ---
Diggy Bell wrote:
Ok, I've left several handfuls of hair on the floor over this one, but I
gotta ask... I apologize in advance for the stupidity. I normally work
with Apache, but the client is always rignt! :P.
I'm running IIS 5 on Win2K with PHP 4.2.3. I've been able to get one
application completely working, but on a second app, I've run into problems
when I try to submit a form.
IMPORTANT NOTE: I'm working with a home-built version of PHP. I've added
support for a new database as an extension. I can't see where this would be
impacting anything, but that doesn't mean much.
Application One - Working Successfully
The project is in C:\Projects\ClientName\html
The application is able to serve pages and accept forms.
Application Two - NOT Working!!!
The project is in C:\Projects\DirName\html
The application is able to serve pages, but when I submit a form, the server
returns Error 405 - Resource Not Allowed
I've tried as my different combinations of permissions as I can, but nothing
seems to work properly. Has anyone seen this before and have the one thing
I haven't tried yet?
Thanks in advance...
--
William D. 'Diggy' Bell
Principal
DB Software Development
http://www.dbsoftdev.com
Seems a IIS configuration problem.
Are the properties for both directories the same?
Jochem
--- End Message ---
--- Begin Message ---
You know, this is exactly what happened to me. I was trying to design a
comments page for a weblog to open in a popup. The page had a submission
form that would submit back to itself. 'course, I was banging my head on the
wall trying to come up with a way to get the page to detect whether it had
received a form submission and write the comments to a comment file, and
then include the comment file with the form afterwards. I kept coming up
with the results of fopen(), fputs(), fflush(), and fclose() coming back as
false, which equals failed. I eventually did go to a separate page to do the
file writing, and that page finishes up with a 1-second delay using the
javascript setTimeout() for this command in a standalone function:
echo "location.replace('blogcomments.php?target=".$target."');\n";
Inelegant, but it works. I haven't had too much experience with the header
function, and knowing how long it took me to bang this one out, I might set
something on fire trying it :)
Anyone else had any fun with this issue?
Message-ID: <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Reply-To: "Jack Kelly Dobson" <[EMAIL PROTECTED]>
From: "Jack Kelly Dobson" <[EMAIL PROTECTED]>
Date: Wed, 27 Nov 2002 10:19:30 -0600
Subject: Re: [PHP-WIN] Redirect browser to another URL?
Thanks for all the help guys.
My problem, as most of you figured, is that my script has a form in it that
re-runs itself when the form is submitted so there is only one script
including the form and all the validation for the form. If the validation is
successful it sends you to a different page depending on the information
posted in the form. There was therefore no way I could get the header() to
be at the top of the returned data.
I ended up using:
if ($condition) {
print("<SCRIPT LANGUAGE='JavaScript'>window.location='" . $url .
"'</SCRIPT>");
}
A rather elegant solution I've decided.
Oh, and FYI to all you IIS users out there... (At least I'm assuming it's
IIS and not the Windows platform itself. I'd be interested to know what
Windows users running Apache are experiencing).
I didn't have this problem with my script until I migrated it to a
Linux/Apache platform.
I assume that means that when I was doing it the original way that I had
multiple sets of header information and no telling what else being sent back
to the browser and IIS wasn't producing any error. Anyone using IIS and the
header(location: '') function might want to make sure they aren't exposing
data they didn't mean to.
j-
--- End Message ---
--- Begin Message ---
Jack
Sorry - I am a bit confused... Are you saying you could not get a header()
re-direct to work in a script that posts form data to itself? As someone
else has mentioned the header() call does not have to be at the top of the
script it just has to be executed before any output has gone to the
browser...it could be the last line of a script.
BTW your javascript solution won't work if the user has switched off
javascript...
Rich
-----Original Message-----
From: Jack Kelly Dobson [mailto:[EMAIL PROTECTED]]
Sent: 27 November 2002 16:20
To: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] Redirect browser to another URL?
Thanks for all the help guys.
My problem, as most of you figured, is that my script has a form in it that
re-runs itself when the form is submitted so there is only one script
including the form and all the validation for the form. If the validation is
successful it sends you to a different page depending on the information
posted in the form. There was therefore no way I could get the header() to
be at the top of the returned data.
I ended up using:
if ($condition) {
print("<SCRIPT LANGUAGE='JavaScript'>window.location='" . $url .
"'</SCRIPT>");
}
A rather elegant solution I've decided.
Oh, and FYI to all you IIS users out there... (At least I'm assuming it's
IIS and not the Windows platform itself. I'd be interested to know what
Windows users running Apache are experiencing).
I didn't have this problem with my script until I migrated it to a
Linux/Apache platform.
I assume that means that when I was doing it the original way that I had
multiple sets of header information and no telling what else being sent back
to the browser and IIS wasn't producing any error. Anyone using IIS and the
header(location: '') function might want to make sure they aren't exposing
data they didn't mean to.
j-
"Cam Dunstan" <[EMAIL PROTECTED]> wrote in message
002801c29602$d3e50da0$7866a8c0@camhome">news:002801c29602$d3e50da0$7866a8c0@camhome...
> Jack,
> here is another quick and dirty function to stick in your library, yet
> another way to redirect from anywhere in your script
>
> function redirect($url){
> echo "<script>window.location.replace(\"".$url."\")</script>";
> }
>
> usage:
>
> blah
> blah
> redirect("any_url");
>
> exit;
>
>
>
> >
> > -----Original Message-----
> > From: Jack Kelly Dobson [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, November 26, 2002 2:43 PM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP-WIN] Redirect browser to another URL?
> >
> >
> > Hello,
> >
> > Anyone know how to have a script re-direct the browser to a URL cleanly?
> >
>
>
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Hi Max
Well it seems you are messing around with text files rather than a
database - this sounds like hard work :) I'm not sure I fully understand
your issue but are you saying you could not make the code 'refresh' the
comments data on the form page without a javascript redirect?
What happens if you switch off javascript in your browser - does it fail?
Rich
-----Original Message-----
From: Max Graham [mailto:[EMAIL PROTECTED]]
Sent: 28 November 2002 05:51
To: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] Redirect browser to another URL?
You know, this is exactly what happened to me. I was trying to design a
comments page for a weblog to open in a popup. The page had a submission
form that would submit back to itself. 'course, I was banging my head on the
wall trying to come up with a way to get the page to detect whether it had
received a form submission and write the comments to a comment file, and
then include the comment file with the form afterwards. I kept coming up
with the results of fopen(), fputs(), fflush(), and fclose() coming back as
false, which equals failed. I eventually did go to a separate page to do the
file writing, and that page finishes up with a 1-second delay using the
javascript setTimeout() for this command in a standalone function:
echo "location.replace('blogcomments.php?target=".$target."');\n";
Inelegant, but it works. I haven't had too much experience with the header
function, and knowing how long it took me to bang this one out, I might set
something on fire trying it :)
Anyone else had any fun with this issue?
--- End Message ---
--- Begin Message ---
if ( $FormIsSent == "My-String ) {
process form
header( "Location: url" );
}
else {
display form
<input type = "hidden" name = "FormIsSent" value = "My-String">
}
I use this technique on my sites all the time. The only restriction is you
can't have any output before the header. If there is an error in the form,
store it in an error variable:
$error[NameForError] = "Problem with form";
then use a foreach to get the values back out
if ( count( $error ) ) {
foreach ( $error as $key=>$value ) {
print "Error with $key - $value<br>";
}
}
else {
header( "location: http://youurl.com/formsuccess.php" );
exit;
}
----- Original Message -----
From: "Max Graham" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 28, 2002 5:50 AM
Subject: Re: [PHP-WIN] Redirect browser to another URL?
> You know, this is exactly what happened to me. I was trying to design a
> comments page for a weblog to open in a popup. The page had a submission
> form that would submit back to itself. 'course, I was banging my head on
the
> wall trying to come up with a way to get the page to detect whether it had
> received a form submission and write the comments to a comment file, and
> then include the comment file with the form afterwards. I kept coming up
> with the results of fopen(), fputs(), fflush(), and fclose() coming back
as
> false, which equals failed. I eventually did go to a separate page to do
the
> file writing, and that page finishes up with a 1-second delay using the
> javascript setTimeout() for this command in a standalone function:
>
> echo "location.replace('blogcomments.php?target=".$target."');\n";
>
> Inelegant, but it works. I haven't had too much experience with the header
> function, and knowing how long it took me to bang this one out, I might
set
> something on fire trying it :)
>
> Anyone else had any fun with this issue?
>
> Message-ID: <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Reply-To: "Jack Kelly Dobson" <[EMAIL PROTECTED]>
> From: "Jack Kelly Dobson" <[EMAIL PROTECTED]>
> Date: Wed, 27 Nov 2002 10:19:30 -0600
> Subject: Re: [PHP-WIN] Redirect browser to another URL?
>
> Thanks for all the help guys.
>
> My problem, as most of you figured, is that my script has a form in it
that
> re-runs itself when the form is submitted so there is only one script
> including the form and all the validation for the form. If the validation
is
> successful it sends you to a different page depending on the information
> posted in the form. There was therefore no way I could get the header() to
> be at the top of the returned data.
>
> I ended up using:
>
> if ($condition) {
> print("<SCRIPT LANGUAGE='JavaScript'>window.location='" . $url .
> "'</SCRIPT>");
> }
>
> A rather elegant solution I've decided.
>
> Oh, and FYI to all you IIS users out there... (At least I'm assuming it's
> IIS and not the Windows platform itself. I'd be interested to know what
> Windows users running Apache are experiencing).
>
> I didn't have this problem with my script until I migrated it to a
> Linux/Apache platform.
>
> I assume that means that when I was doing it the original way that I had
> multiple sets of header information and no telling what else being sent
back
> to the browser and IIS wasn't producing any error. Anyone using IIS and
the
> header(location: '') function might want to make sure they aren't exposing
> data they didn't mean to.
>
> j-
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
I concur with Stephen. However, there is an EXTREMELY simple and convenient
way to control output - that has not been mentioned in this thread:
start all your PHP scripts with :
ob_start() ;
then you can pepper your script with one < header:Location... > statement
EVERYWHERE you want (in my case I redirect to custom error pages)
when you are done (at the end of the display form that follows the
validation script), output the buffered content:
ob_end_flush() ;
HTH
Ignatius
____________________________________________
----- Original Message -----
From: "Stephen Edmonds" <[EMAIL PROTECTED]>
To: "PHP Helplist Windows" <[EMAIL PROTECTED]>
Cc: "Max Graham" <[EMAIL PROTECTED]>
Sent: Thursday, November 28, 2002 2:21 PM
Subject: Re: [PHP-WIN] Redirect browser to another URL?
> if ( $FormIsSent == "My-String ) {
> process form
> header( "Location: url" );
> }
> else {
> display form
> <input type = "hidden" name = "FormIsSent" value = "My-String">
> }
>
> I use this technique on my sites all the time. The only restriction is you
> can't have any output before the header. If there is an error in the form,
> store it in an error variable:
>
> $error[NameForError] = "Problem with form";
>
> then use a foreach to get the values back out
>
> if ( count( $error ) ) {
> foreach ( $error as $key=>$value ) {
> print "Error with $key - $value<br>";
> }
> }
> else {
> header( "location: http://youurl.com/formsuccess.php" );
> exit;
> }
>
> ----- Original Message -----
> From: "Max Graham" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, November 28, 2002 5:50 AM
> Subject: Re: [PHP-WIN] Redirect browser to another URL?
>
>
> > You know, this is exactly what happened to me. I was trying to design a
> > comments page for a weblog to open in a popup. The page had a submission
> > form that would submit back to itself. 'course, I was banging my head on
> the
> > wall trying to come up with a way to get the page to detect whether it
had
> > received a form submission and write the comments to a comment file, and
> > then include the comment file with the form afterwards. I kept coming up
> > with the results of fopen(), fputs(), fflush(), and fclose() coming back
> as
> > false, which equals failed. I eventually did go to a separate page to do
> the
> > file writing, and that page finishes up with a 1-second delay using the
> > javascript setTimeout() for this command in a standalone function:
> >
> > echo "location.replace('blogcomments.php?target=".$target."');\n";
> >
> > Inelegant, but it works. I haven't had too much experience with the
header
> > function, and knowing how long it took me to bang this one out, I might
> set
> > something on fire trying it :)
> >
> > Anyone else had any fun with this issue?
> >
> > Message-ID: <[EMAIL PROTECTED]>
> > To: [EMAIL PROTECTED]
> > Reply-To: "Jack Kelly Dobson" <[EMAIL PROTECTED]>
> > From: "Jack Kelly Dobson" <[EMAIL PROTECTED]>
> > Date: Wed, 27 Nov 2002 10:19:30 -0600
> > Subject: Re: [PHP-WIN] Redirect browser to another URL?
> >
> > Thanks for all the help guys.
> >
> > My problem, as most of you figured, is that my script has a form in it
> that
> > re-runs itself when the form is submitted so there is only one script
> > including the form and all the validation for the form. If the
validation
> is
> > successful it sends you to a different page depending on the information
> > posted in the form. There was therefore no way I could get the header()
to
> > be at the top of the returned data.
> >
> > I ended up using:
> >
> > if ($condition) {
> > print("<SCRIPT LANGUAGE='JavaScript'>window.location='" . $url .
> > "'</SCRIPT>");
> > }
> >
> > A rather elegant solution I've decided.
> >
> > Oh, and FYI to all you IIS users out there... (At least I'm assuming
it's
> > IIS and not the Windows platform itself. I'd be interested to know what
> > Windows users running Apache are experiencing).
> >
> > I didn't have this problem with my script until I migrated it to a
> > Linux/Apache platform.
> >
> > I assume that means that when I was doing it the original way that I had
> > multiple sets of header information and no telling what else being sent
> back
> > to the browser and IIS wasn't producing any error. Anyone using IIS and
> the
> > header(location: '') function might want to make sure they aren't
exposing
> > data they didn't mean to.
> >
> > j-
> >
> >
> >
> > --
> > 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
>
>
--- End Message ---
--- Begin Message ---
Ahhh yes .... I have seen this mentioned somewhere, and yet I can't remember
where right now. This is the output buffering that lets you even put header
content after page content and still have it appear before, isn't it?
If I remember correctly, this is controlled by setup on the server, right? A
setting in the php.ini file that controls this? If so ... I may have to
plead with my web host, I don't actually own and run the server my site is
hosted on ... but definitely something I'll do some more reading on
I am pretty much a newbie, having taught myself what I need to know, and
I've done some major experimenting ... I haven't even gotten into some of
the more complex functions of PHP. I used to have my site primarily coded in
Javascript/DHTML, and I basically adopted what I was trying to do with DHTML
into Javascript if that tells you the complexity I'm currently working on.
I've only started playing with file functions, to say nothing of databases.
...
----- Original Message -----
From: "Ignatius Reilly" <[EMAIL PROTECTED]>
To: "Stephen Edmonds" <[EMAIL PROTECTED]>; "PHP Helplist
Windows" <[EMAIL PROTECTED]>
Cc: "Max Graham" <[EMAIL PROTECTED]>
Sent: Thursday, November 28, 2002 6:32 AM
Subject: Re: [PHP-WIN] Redirect browser to another URL?
> I concur with Stephen. However, there is an EXTREMELY simple and
convenient
> way to control output - that has not been mentioned in this thread:
> start all your PHP scripts with :
> ob_start() ;
>
> then you can pepper your script with one < header:Location... > statement
> EVERYWHERE you want (in my case I redirect to custom error pages)
>
> when you are done (at the end of the display form that follows the
> validation script), output the buffered content:
> ob_end_flush() ;
>
> HTH
> Ignatius
> ____________________________________________
> ----- Original Message -----
> From: "Stephen Edmonds" <[EMAIL PROTECTED]>
> To: "PHP Helplist Windows" <[EMAIL PROTECTED]>
> Cc: "Max Graham" <[EMAIL PROTECTED]>
> Sent: Thursday, November 28, 2002 2:21 PM
> Subject: Re: [PHP-WIN] Redirect browser to another URL?
>
>
> > if ( $FormIsSent == "My-String ) {
> > process form
> > header( "Location: url" );
> > }
> > else {
> > display form
> > <input type = "hidden" name = "FormIsSent" value = "My-String">
> > }
> >
> > I use this technique on my sites all the time. The only restriction is
you
> > can't have any output before the header. If there is an error in the
form,
> > store it in an error variable:
> >
> > $error[NameForError] = "Problem with form";
> >
> > then use a foreach to get the values back out
> >
> > if ( count( $error ) ) {
> > foreach ( $error as $key=>$value ) {
> > print "Error with $key - $value<br>";
> > }
> > }
> > else {
> > header( "location: http://youurl.com/formsuccess.php" );
> > exit;
> > }
> >
> > ----- Original Message -----
> > From: "Max Graham" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, November 28, 2002 5:50 AM
> > Subject: Re: [PHP-WIN] Redirect browser to another URL?
> >
> >
> > > You know, this is exactly what happened to me. I was trying to design
a
> > > comments page for a weblog to open in a popup. The page had a
submission
> > > form that would submit back to itself. 'course, I was banging my head
on
> > the
> > > wall trying to come up with a way to get the page to detect whether it
> had
> > > received a form submission and write the comments to a comment file,
and
> > > then include the comment file with the form afterwards. I kept coming
up
> > > with the results of fopen(), fputs(), fflush(), and fclose() coming
back
> > as
> > > false, which equals failed. I eventually did go to a separate page to
do
> > the
> > > file writing, and that page finishes up with a 1-second delay using
the
> > > javascript setTimeout() for this command in a standalone function:
> > >
> > > echo "location.replace('blogcomments.php?target=".$target."');\n";
> > >
> > > Inelegant, but it works. I haven't had too much experience with the
> header
> > > function, and knowing how long it took me to bang this one out, I
might
> > set
> > > something on fire trying it :)
> > >
> > > Anyone else had any fun with this issue?
> > >
> > > Message-ID: <[EMAIL PROTECTED]>
> > > To: [EMAIL PROTECTED]
> > > Reply-To: "Jack Kelly Dobson" <[EMAIL PROTECTED]>
> > > From: "Jack Kelly Dobson" <[EMAIL PROTECTED]>
> > > Date: Wed, 27 Nov 2002 10:19:30 -0600
> > > Subject: Re: [PHP-WIN] Redirect browser to another URL?
> > >
> > > Thanks for all the help guys.
> > >
> > > My problem, as most of you figured, is that my script has a form in it
> > that
> > > re-runs itself when the form is submitted so there is only one script
> > > including the form and all the validation for the form. If the
> validation
> > is
> > > successful it sends you to a different page depending on the
information
> > > posted in the form. There was therefore no way I could get the
header()
> to
> > > be at the top of the returned data.
> > >
> > > I ended up using:
> > >
> > > if ($condition) {
> > > print("<SCRIPT LANGUAGE='JavaScript'>window.location='" . $url .
> > > "'</SCRIPT>");
> > > }
> > >
> > > A rather elegant solution I've decided.
> > >
> > > Oh, and FYI to all you IIS users out there... (At least I'm assuming
> it's
> > > IIS and not the Windows platform itself. I'd be interested to know
what
> > > Windows users running Apache are experiencing).
> > >
> > > I didn't have this problem with my script until I migrated it to a
> > > Linux/Apache platform.
> > >
> > > I assume that means that when I was doing it the original way that I
had
> > > multiple sets of header information and no telling what else being
sent
> > back
> > > to the browser and IIS wasn't producing any error. Anyone using IIS
and
> > the
> > > header(location: '') function might want to make sure they aren't
> exposing
> > > data they didn't mean to.
> > >
> > > j-
> > >
> > >
> > >
> > > --
> > > 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
> >
> >
>
>
>
--- End Message ---
--- Begin Message ---
I like this approach. I may try that out sometime, because in this case I
didn't really want any output before the header. All the scripting work was
to be done before any output hit the browser window anyways.
----- Original Message -----
From: "Stephen Edmonds" <[EMAIL PROTECTED]>
To: "PHP Helplist Windows" <[EMAIL PROTECTED]>
Cc: "Max Graham" <[EMAIL PROTECTED]>
Sent: Thursday, November 28, 2002 6:21 AM
Subject: Re: [PHP-WIN] Redirect browser to another URL?
> if ( $FormIsSent == "My-String ) {
> process form
> header( "Location: url" );
> }
> else {
> display form
> <input type = "hidden" name = "FormIsSent" value = "My-String">
> }
>
> I use this technique on my sites all the time. The only restriction is you
> can't have any output before the header. If there is an error in the form,
> store it in an error variable:
>
> $error[NameForError] = "Problem with form";
>
> then use a foreach to get the values back out
>
> if ( count( $error ) ) {
> foreach ( $error as $key=>$value ) {
> print "Error with $key - $value<br>";
> }
> }
> else {
> header( "location: http://youurl.com/formsuccess.php" );
> exit;
> }
>
> ----- Original Message -----
> From: "Max Graham" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, November 28, 2002 5:50 AM
> Subject: Re: [PHP-WIN] Redirect browser to another URL?
>
>
> > You know, this is exactly what happened to me. I was trying to design a
> > comments page for a weblog to open in a popup. The page had a submission
> > form that would submit back to itself. 'course, I was banging my head on
> the
> > wall trying to come up with a way to get the page to detect whether it
had
> > received a form submission and write the comments to a comment file, and
> > then include the comment file with the form afterwards. I kept coming up
> > with the results of fopen(), fputs(), fflush(), and fclose() coming back
> as
> > false, which equals failed. I eventually did go to a separate page to do
> the
> > file writing, and that page finishes up with a 1-second delay using the
> > javascript setTimeout() for this command in a standalone function:
> >
> > echo "location.replace('blogcomments.php?target=".$target."');\n";
> >
> > Inelegant, but it works. I haven't had too much experience with the
header
> > function, and knowing how long it took me to bang this one out, I might
> set
> > something on fire trying it :)
> >
> > Anyone else had any fun with this issue?
> >
> > Message-ID: <[EMAIL PROTECTED]>
> > To: [EMAIL PROTECTED]
> > Reply-To: "Jack Kelly Dobson" <[EMAIL PROTECTED]>
> > From: "Jack Kelly Dobson" <[EMAIL PROTECTED]>
> > Date: Wed, 27 Nov 2002 10:19:30 -0600
> > Subject: Re: [PHP-WIN] Redirect browser to another URL?
> >
> > Thanks for all the help guys.
> >
> > My problem, as most of you figured, is that my script has a form in it
> that
> > re-runs itself when the form is submitted so there is only one script
> > including the form and all the validation for the form. If the
validation
> is
> > successful it sends you to a different page depending on the information
> > posted in the form. There was therefore no way I could get the header()
to
> > be at the top of the returned data.
> >
> > I ended up using:
> >
> > if ($condition) {
> > print("<SCRIPT LANGUAGE='JavaScript'>window.location='" . $url .
> > "'</SCRIPT>");
> > }
> >
> > A rather elegant solution I've decided.
> >
> > Oh, and FYI to all you IIS users out there... (At least I'm assuming
it's
> > IIS and not the Windows platform itself. I'd be interested to know what
> > Windows users running Apache are experiencing).
> >
> > I didn't have this problem with my script until I migrated it to a
> > Linux/Apache platform.
> >
> > I assume that means that when I was doing it the original way that I had
> > multiple sets of header information and no telling what else being sent
> back
> > to the browser and IIS wasn't producing any error. Anyone using IIS and
> the
> > header(location: '') function might want to make sure they aren't
exposing
> > data they didn't mean to.
> >
> > j-
> >
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>
>
>
--- End Message ---
--- Begin Message ---
The original issue was, I tried to have the single page to display any
previous comments, and then a form to add comments. Then, once it was
submitted, it would submit itself. The page was supposed to detect whether
any new data had been submitted, by way of a hidden input in the form, and
if so, would first write to the output file and then display the output
file. It wasn't a text file in this case, it was actually an HTML snippet I
would get the script to grab with the include() function. What I had to do,
because I suspected there wasn't enough of a delay between
writing/flushing/closing the file and including it (maybe it thought the
include file was still locked from being written to), was split the file
into two separate files. The first comments page shows the past comments and
the submission form. The form submits to a separate file that writes to the
include file and then displays the only displayed code in the page. In the
header I have a refresh function, and in the body tag I have the onload
handler set to trigger the refresh function.
I just realized, though, the setTimeout may be redundant ... :P I'm still
managing to learn slowly ... like most things I do, it's all self-taught,
and you're right -- I haven't even touched SQL databases. My only
familiarity with databases was with FoxPro before it became "Visual FoxPro"
(ominous music here). And I haven't even toyed with turning off Javascript
... there are services I'll turn off, but javascript ... for all its
resemblance to C++ with bipolarism, I have been tempted to turn it off, but
it just somehow reminds me of that scene from the Indiana Jones movie where
he's trying to weigh how much sand in the bag will equal the weight of the
statue to avoid triggering the booby traps ...
----- Original Message -----
From: "Rich Gray" <[EMAIL PROTECTED]>
To: "Max Graham" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, November 28, 2002 3:05 AM
Subject: RE: [PHP-WIN] Redirect browser to another URL?
> Hi Max
>
> Well it seems you are messing around with text files rather than a
> database - this sounds like hard work :) I'm not sure I fully understand
> your issue but are you saying you could not make the code 'refresh' the
> comments data on the form page without a javascript redirect?
>
> What happens if you switch off javascript in your browser - does it fail?
>
> Rich
> -----Original Message-----
> From: Max Graham [mailto:[EMAIL PROTECTED]]
> Sent: 28 November 2002 05:51
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP-WIN] Redirect browser to another URL?
>
>
> You know, this is exactly what happened to me. I was trying to design a
> comments page for a weblog to open in a popup. The page had a submission
> form that would submit back to itself. 'course, I was banging my head on
the
> wall trying to come up with a way to get the page to detect whether it had
> received a form submission and write the comments to a comment file, and
> then include the comment file with the form afterwards. I kept coming up
> with the results of fopen(), fputs(), fflush(), and fclose() coming back
as
> false, which equals failed. I eventually did go to a separate page to do
the
> file writing, and that page finishes up with a 1-second delay using the
> javascript setTimeout() for this command in a standalone function:
>
> echo "location.replace('blogcomments.php?target=".$target."');\n";
>
> Inelegant, but it works. I haven't had too much experience with the header
> function, and knowing how long it took me to bang this one out, I might
set
> something on fire trying it :)
>
> Anyone else had any fun with this issue?
>
>
>
>
--- End Message ---
--- Begin Message ---
"Michael Delorme" <[EMAIL PROTECTED]> wrote
> However I only get 127.0.0.1
> But I want the "public" dynamic adress my ISP gave me,
Don't use localhost, that's always 127.0.0.1 by definition. You didn't
say what server you are using but if it's Apache try...
getenv('SERVER_ADDR');
or
gethostbynamel(getenv('HTTP_HOST'));
phpinfo() should tell you what environment variables are available for your
server.
- Steve Yates
- I have nothing against MS-DOS, stone knives, or bearskins.
~ Taglines by Taglinator - www.srtware.com ~
--- End Message ---
--- Begin Message ---
thnx a million diggy
pardon my ignorance ..... i think postgre only works with freebsd,
unix,linx or solaris can it work with windows ?????
2ndly how much will i get to pay fo it if i get to pay .....
(rite now im searchin thru http://www.pgsql.com/ .... :$)
3rd i ve to get an alternative for visual practice developed in fox
pro so i guess i HAVE to run what ever i run on windows
4th can freebird work with windows .... i think it works with
interbase
what can i do ??????
plz tell .....
thnx a zillion again .......
lost as ever
toby .....
--- Diggy Bell <[EMAIL PROTECTED]> wrote: > Toby,
>
> Either MySQL or PostgreSQL are good database alternatives. I'm
> more of a
> hardcore database person so I prefer PostgreSQL because of it's
> support for
> transactions. I've also found the SQL grammar in PostgreSQL to be
> a little
> more standard. Another option would be the Firebird project
> (http://firebird.sourceforge.net/). It was originally the
> Interbase product
> from Borland.
>
> Coming from FoxPro, either database is going to be a nice step up
> in the
> world. The main thing to keep in mind is that you'll have to pay a
> bit more
> attention to some of the standard database things like
> normalization and
> referential integrity.
>
>
> --
> William D. 'Diggy' Bell
> Principal
> DB Software Development
> http://www.dbsoftdev.com
>
> "Toby z" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> >
> >
> > ok guyz i need some inside info .....
> >
> > plz help me with:
> >
> >
> > 1. if i ve to conver a db in foxpro to mysql or sql which one
> should
> > i preffer to use with php and y ????
> >
> >
> > 2. and while im converting the foxpro db to mysql what will i ve
> to
> > loose ???? the common pitfalls ......
> >
> >
> > 3. there aint no foreign keys in mysql then what can i do about
> > cascading updates, deletes and all
> >
> >
> > 5. n finally do i have anyother choice of open source database
> > (cheapest if not completely free) for this conversion ?????
> >
> >
> >
> > id be eternally gratefull if anyone cud guide me thru this ......
> >
> >
> > thnx a billion zillion guyz .....
> >
> > toby ......
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Everything you'll ever need on one web page
> > from News and Sport to Email and Music Charts
> > http://uk.my.yahoo.com
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
--- End Message ---
--- Begin Message ---
Toby
Er... MySQL supports transactions as well (with InnoDB tables) but Diggy is
right postgresql is more fully featured IIRC foreign keys/subselects etc
etc. It can run on Windows but needs quite a bit of setup...
http://www.ejip.net/faq/postgresql_win_setup_faq.jsp
Cheers
Rich
-----Original Message-----
From: toby z [mailto:[EMAIL PROTECTED]]
Sent: 28 November 2002 09:50
To: Diggy Bell; [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] Re: help with db selection with php .............
thnx a million diggy
pardon my ignorance ..... i think postgre only works with freebsd,
unix,linx or solaris can it work with windows ?????
2ndly how much will i get to pay fo it if i get to pay .....
(rite now im searchin thru http://www.pgsql.com/ .... :$)
3rd i ve to get an alternative for visual practice developed in fox
pro so i guess i HAVE to run what ever i run on windows
4th can freebird work with windows .... i think it works with
interbase
what can i do ??????
plz tell .....
thnx a zillion again .......
lost as ever
toby .....
--- Diggy Bell <[EMAIL PROTECTED]> wrote: > Toby,
>
> Either MySQL or PostgreSQL are good database alternatives. I'm
> more of a
> hardcore database person so I prefer PostgreSQL because of it's
> support for
> transactions. I've also found the SQL grammar in PostgreSQL to be
> a little
> more standard. Another option would be the Firebird project
> (http://firebird.sourceforge.net/). It was originally the
> Interbase product
> from Borland.
>
> Coming from FoxPro, either database is going to be a nice step up
> in the
> world. The main thing to keep in mind is that you'll have to pay a
> bit more
> attention to some of the standard database things like
> normalization and
> referential integrity.
>
>
> --
> William D. 'Diggy' Bell
> Principal
> DB Software Development
> http://www.dbsoftdev.com
>
> "Toby z" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> >
> >
> > ok guyz i need some inside info .....
> >
> > plz help me with:
> >
> >
> > 1. if i ve to conver a db in foxpro to mysql or sql which one
> should
> > i preffer to use with php and y ????
> >
> >
> > 2. and while im converting the foxpro db to mysql what will i ve
> to
> > loose ???? the common pitfalls ......
> >
> >
> > 3. there aint no foreign keys in mysql then what can i do about
> > cascading updates, deletes and all
> >
> >
> > 5. n finally do i have anyother choice of open source database
> > (cheapest if not completely free) for this conversion ?????
> >
> >
> >
> > id be eternally gratefull if anyone cud guide me thru this ......
> >
> >
> > thnx a billion zillion guyz .....
> >
> > toby ......
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Everything you'll ever need on one web page
> > from News and Sport to Email and Music Charts
> > http://uk.my.yahoo.com
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Toby,
> pardon my ignorance ..... i think postgre only works with freebsd,
> unix,linx or solaris can it work with windows ?????
You can get PostgreSQL on Windows if you use the Cygwin tools
(www.cygwin.com). Along with the database, you can also pick up Apache and
PHP as well. The price is right, and you'll never have to type another
backslash in a filename again! :P
> 2ndly how much will i get to pay fo it if i get to pay .....
> (rite now im searchin thru http://www.pgsql.com/ .... :$)
Ahhh...the beauty of open source! $0.00
> 3rd i ve to get an alternative for visual practice developed in fox
> pro so i guess i HAVE to run what ever i run on windows
Ok, so it's not a perfect world...
> 4th can freebird work with windows .... i think it works with
> interbase
Firebird actually came from Interbase. Borland opened the source a few
years ago, then decided to discontinue the project. The community has
picked it up and it's going. The downside is that Firebird is now totally
divergent from Interbase, but it was already a solid product so Firebird has
a good foundation.
William D. 'Diggy' Bell
Principal
DB Software Development
http://www.dbsoftdev.com
----- Original Message -----
From: "toby z" <[EMAIL PROTECTED]>
To: "Diggy Bell" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, November 28, 2002 1:50 AM
Subject: Re: [PHP-WIN] Re: help with db selection with php .............
>
> thnx a million diggy
>
>
>
>
>
> what can i do ??????
>
> plz tell .....
>
> thnx a zillion again .......
>
>
> lost as ever
> toby .....
>
>
>
> --- Diggy Bell <[EMAIL PROTECTED]> wrote: > Toby,
> >
> > Either MySQL or PostgreSQL are good database alternatives. I'm
> > more of a
> > hardcore database person so I prefer PostgreSQL because of it's
> > support for
> > transactions. I've also found the SQL grammar in PostgreSQL to be
> > a little
> > more standard. Another option would be the Firebird project
> > (http://firebird.sourceforge.net/). It was originally the
> > Interbase product
> > from Borland.
> >
> > Coming from FoxPro, either database is going to be a nice step up
> > in the
> > world. The main thing to keep in mind is that you'll have to pay a
> > bit more
> > attention to some of the standard database things like
> > normalization and
> > referential integrity.
> >
> >
> > --
> > William D. 'Diggy' Bell
> > Principal
> > DB Software Development
> > http://www.dbsoftdev.com
> >
> > "Toby z" <[EMAIL PROTECTED]> wrote in message
> > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > >
> > >
> > > ok guyz i need some inside info .....
> > >
> > > plz help me with:
> > >
> > >
> > > 1. if i ve to conver a db in foxpro to mysql or sql which one
> > should
> > > i preffer to use with php and y ????
> > >
> > >
> > > 2. and while im converting the foxpro db to mysql what will i ve
> > to
> > > loose ???? the common pitfalls ......
> > >
> > >
> > > 3. there aint no foreign keys in mysql then what can i do about
> > > cascading updates, deletes and all
> > >
> > >
> > > 5. n finally do i have anyother choice of open source database
> > > (cheapest if not completely free) for this conversion ?????
> > >
> > >
> > >
> > > id be eternally gratefull if anyone cud guide me thru this ......
> > >
> > >
> > > thnx a billion zillion guyz .....
> > >
> > > toby ......
> > >
> > >
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Everything you'll ever need on one web page
> > > from News and Sport to Email and Music Charts
> > > http://uk.my.yahoo.com
> >
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
> __________________________________________________
> Do You Yahoo!?
> Everything you'll ever need on one web page
> from News and Sport to Email and Music Charts
> http://uk.my.yahoo.com
>
--- End Message ---
--- Begin Message ---
Perhaps this it is not the indicated NG piu' but I do not have a
previewed question care a problem not to resolve.
I hope that there is someone in a position to helping who writes: Thnaks
of this.
in this moment I have a script PHP that reads XMl rows and manifactures a
upgrade for a DBV Postgresql. All it comes used in an only one system
that it is linux. They are not in a position to saying which linux
(macredo RH) and the other caracteristics of the system and the DB.
The problem it is this. Instead using Postgresql a BD Oracle is wanted
to be used 8i version that it comes installed on system a Unix (HP).
I would want to know which are the participations that I must make on the
PHP configuration, admitted that ve they are some, that it resides on
Linux and if someone can to supply to me of the code of example on like
connecting to me from PHP to Oracle.
In alternative I ask to you if sameone it could supply me of the
solutions alternatives like as an example: there are of the converters of
DB that concur me of trasfrmare a DB of a type (PostGresSql) in a DB of
an other type (Orcale).
Thanks for all. Ciao franco.
--- End Message ---
--- Begin Message ---
Sorry for all if I repeat the msg with sobject exatly.
Franco Pozzer wrote:
> Perhaps this it is not the indicated NG piu' but I do not have a
> previewed question care a problem not to resolve.
>
> I hope that there is someone in a position to helping who writes: Thnaks
> of this.
>
> in this moment I have a script PHP that reads XMl rows and manifactures a
> upgrade for a DB Postgresql. All it comes used in an only one system
> that it is linux. They are not in a position to saying which linux
> (macredo RH) and the other caracteristics of the system and the DB.
>
> The problem it is this. Instead using Postgresql a BD Oracle is wanted
> to be used 8i version that it comes installed on system a Unix (HP).
>
> I would want to know which are the participations that I must make on the
> PHP configuration, admitted that ve they are some, that it resides on
> Linux and if someone can to supply to me of the code of example on like
> connecting to me from PHP to Oracle.
>
> In alternative I ask to you if sameone it could supply me of the
> solutions alternatives like as an example: there are of the converters of
> DB that concur me of trasfrmare a DB of a type (PostGresSql) in a DB of
> an other type (Orcale).
>
> Thanks for all. Ciao franco.
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
I try to check "who is on line" in my php script.
How I can do it?
mst
--- End Message ---
--- Begin Message ---
You would have to store when a user visits a page into a database and have
some sort of time limit on when you remove them, or remove them when they
logout/visit another page type thing
Basically... database interactions
----- Original Message -----
From: "mst" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 28, 2002 1:19 PM
Subject: [PHP-WIN] Who is on line?
> I try to check "who is on line" in my php script.
> How I can do it?
>
>
> mst
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
Ok. But how i can check when user go out?
mst
Uzytkownik "Stephen Edmonds" <[EMAIL PROTECTED]> napisal w
wiadomosci 002d01c296e1$7af48b50$2500a8c0@q">news:002d01c296e1$7af48b50$2500a8c0@q...
> You would have to store when a user visits a page into a database and have
> some sort of time limit on when you remove them, or remove them when they
> logout/visit another page type thing
>
> Basically... database interactions
>
> ----- Original Message -----
> From: "mst" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, November 28, 2002 1:19 PM
> Subject: [PHP-WIN] Who is on line?
>
>
> > I try to check "who is on line" in my php script.
> > How I can do it?
> >
> >
> > mst
> >
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>
--- End Message ---
--- Begin Message ---
> Ok. But how i can check when user go out?
If they don't logout properly you can't. (You can only make a smart guess about it.)
--- End Message ---
--- Begin Message ---
Maybe I can send some http post or something using javascript?
mst
Uzytkownik "B.A.T. Svensson" <[EMAIL PROTECTED]> napisal w wiadomosci
000301c296e8$c41f7450$[EMAIL PROTECTED]">news:000301c296e8$c41f7450$[EMAIL PROTECTED]...
> > Ok. But how i can check when user go out?
>
> If they don't logout properly you can't. (You can only make a smart guess
about it.)
--- End Message ---
--- Begin Message ---
I don't believe that is possible. The problem is with the way the internet
works. You do not have a connection to your user while they are browsing
your site, only when they request a page.
Client -> Requests a Page -> Connection to server open
Server -> Sends the page -> Connection closed...
This means you can not tell if a user is still on your site, as the
connection is closed.
Stephen
----- Original Message -----
From: "mst" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 28, 2002 2:56 PM
Subject: Re: [PHP-WIN] Who is on line?
> Maybe I can send some http post or something using javascript?
> mst
> Uzytkownik "B.A.T. Svensson" <[EMAIL PROTECTED]> napisal w wiadomosci
> 000301c296e8$c41f7450$[EMAIL PROTECTED]">news:000301c296e8$c41f7450$[EMAIL PROTECTED]...
> > > Ok. But how i can check when user go out?
> >
> > If they don't logout properly you can't. (You can only make a smart
guess
> about it.)
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
Hello,
Does anybody have a clue why every time I try to execute a php page I get a
404 error. (None-php files in the same virtual dir can be accessed without
any problem) I installed the php module on IIS 6.0. Installed php manually
and via the win installer.
Thanks,
Kristof
--- End Message ---
--- Begin Message ---
Hello All,
Can I get list of services running on win32 machine via php script?
And if I can how I can do this or where I can read about it?
--
Best regards,
Alexander Kuznetsov
--- End Message ---
--- Begin Message ---
you can do:
`net start c:/netlist.txt` // back ticks
the resulting file is trivial to parse.
HTH
Ignatius
____________________________________________
----- Original Message -----
From: "Alexander Kuznetsov" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 28, 2002 3:39 PM
Subject: [PHP-WIN] get service status on win32 from php
> Hello All,
>
> Can I get list of services running on win32 machine via php script?
> And if I can how I can do this or where I can read about it?
>
> --
> Best regards,
> Alexander Kuznetsov
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
Oops!
This is better:
`net start > c:/netlist.txt` // back ticks
^^
Ignatius
____________________________________________
----- Original Message -----
From: "Ignatius Reilly" <[EMAIL PROTECTED]>
To: "Alexander Kuznetsov" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Thursday, November 28, 2002 3:56 PM
Subject: Re: [PHP-WIN] get service status on win32 from php
> you can do:
>
> `net start c:/netlist.txt` // back ticks
>
> the resulting file is trivial to parse.
>
> HTH
> Ignatius
> ____________________________________________
> ----- Original Message -----
> From: "Alexander Kuznetsov" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, November 28, 2002 3:39 PM
> Subject: [PHP-WIN] get service status on win32 from php
>
>
> > Hello All,
> >
> > Can I get list of services running on win32 machine via php script?
> > And if I can how I can do this or where I can read about it?
> >
> > --
> > Best regards,
> > Alexander Kuznetsov
> >
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
--- End Message ---
--- Begin Message ---
Hello Ignatius,
Thursday, November 28, 2002, 4:58:16 PM, you wrote:
IR> Oops!
IR> This is better:
`net start >> c:/netlist.txt` // back ticks
IR> ^^
>> you can do:
>> `net start c:/netlist.txt` // back ticks
>> the resulting file is trivial to parse.
Thanks!
Before sending my question in this mail list I've tried to make
"net start" but there was error like command not found.
After your answer I've tried
c:\windows\system32\net start
and all seems working :)
My problem was in PATH environment variable.
--
Best regards,
Alexander Kuznetsov
--- End Message ---