php-windows Digest 5 Mar 2002 01:29:46 -0000 Issue 1029
Topics (messages 12430 through 12454):
shell commands...
12430 by: crizz
12436 by: Nicole Amashta
12437 by: Scott St. John
Mail with php and w2k
12431 by: Mike Schmid
Re: error query
12432 by: DL Neil
Re: Warning: Undefined variable
12433 by: Nicole Amashta
12434 by: Nicole Amashta
12448 by: DL Neil
Re: cannot write to mySQL database
12435 by: Nicole Amashta
12439 by: pilotdave
12441 by: Nicole Amashta
12442 by: Nicole Amashta
12443 by: Nicole Amashta
12444 by: Nicole Amashta
12446 by: pilotdave
12447 by: Athene McGregor-Macdonald
12450 by: pilotdave
12451 by: Nicole Amashta
PHP 4.1.2 for Win32 - File Upload Exploit
12438 by: Fabio De Martin
12440 by: Rasmus Lerdorf
mail() is sometimes very slow
12445 by: Athene McGregor-Macdonald
t1lib
12449 by: think a Bit
12453 by: Pac mon
12454 by: Pac mon
Reading cookies set by PHP/WIN using ASP
12452 by: Krane, John
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 ---
How can execute a shell command through PHP? A small example will be great!
--- End Message ---
--- Begin Message ---
exec()
system()
For more detailed info on using these php functions, go to php.net here:
http://www.php.net/manual/en/ref.exec.php
Hope this puts you on the right track.
Good luck,
Nicole
www.aeontrek.com
"Crizz" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED].;
> How can execute a shell command through PHP? A small example will be
great!
>
>
--- End Message ---
--- Begin Message ---
I am doing an exex on Windows to power my mp3 jukebox, something like
this:
exec('winamp.exe M100101.mp3');
You may have to tweak around and check the php.net docs. Pay close
attention to the part about sending the output to null.
-Scott
On Mon, 4 Mar 2002, crizz wrote:
> How can execute a shell command through PHP? A small example will be great!
>
>
>
>
--
--- End Message ---
--- Begin Message ---
Hi NG
how you have configured your php.ini (mail point) and your windws to mail?
Thanks
--- End Message ---
--- Begin Message ---
Mark,
I seem to be jumping in part-way, but...
I seem to have isolated my problem. My code will only work with
non-numerical tables for some reason, which is kind of a pain.
=Why do you say that?
Is there any way to use php to connect to a mysql table that has a
numerical value as its name (1,2,3 etc)?
=Check out http://www.mysql.com/doc/L/e/Legal_names.html
Regards,
=dn
--- End Message ---
--- Begin Message ---
error_reporting = E_ALL & ~E_NOTICE
"Crizz" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED].;
> No, now it's ok, my scripts works . It doesn't show any Warnings, but the
> bad is that it will probably, won't show any error when exist, right. So,
> I'd like a good value for error_reporting, show I'll know my mistake
without
> having all silly wanrings destroying the look of the page.
>
> Thanks for your immediate help,
> crizz
> "Alain Samoun" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED].;
> > Crizz:
> > Obviously you don't want to do that at this point - No error reporting
for
> a
> > novice - can be challenging...
> > Show us your script and we may be able to help. (Sorry I did not see
your
> > previous post(s)...)
> > A+
> > Alain
> >
> >
> > -----Original Message-----
> > From: crizz [mailto:[EMAIL PROTECTED]]
> > Sent: Saturday, March 02, 2002 7:32 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: [PHP-WIN] Warning: Undefined variable
> >
> >
> > Ok, I changed error_reporting to "no". But now I take no notice about
> errors
> > at all. Any convinience mode for a novice?
> >
> >
> > "Dl Neil" <[EMAIL PROTECTED]> wrote in message
> > 121301c1c250$9afa6d40$c200a8c0@jrbrown...">news:121301c1c250$9afa6d40$c200a8c0@jrbrown...;
> > > crizz,
> > >
> > > > I'm really newbye in PHP and just installed php on my IIS on my XP.
> > > All
> > > > sample scripts I tried returns me error messages about "Warning:
> > > Undefined
> > > > variable"
> > > > It's probably something with the configuration, right?
> > >
> > >
> > > You got it!
> > > Check out php.ini (in Windows folder).
> > > There is a load of 'documentation' in amongst the
settings/definitions.
> > > There are a number of 'levels' for error reporting, so you can dial it
> > > back a notch if you want.
> > >
> > > Regards,
> > > =dn
> > >
> >
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>
--- End Message ---
--- Begin Message ---
Haha, that's what I'm saying!
Why do people need to be so ambiguous and beat around the bush? Hehe.
nix0r.
www.aeontrek.com
"Mike Flynn" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED].;
> Duh, just let him know the proper setting:
>
> error_reporting = E_ALL & ~E_NOTICE
>
> That will keep everything but minor warnings. That's what most people
use.
>
> -Mike
>
> At 07:40 PM 3/2/02 -0800, alain samoun wrote:
> >Crizz:
> >Obviously you don't want to do that at this point - No error reporting
for a
> >novice - can be challenging...
> >Show us your script and we may be able to help. (Sorry I did not see your
> >previous post(s)...)
> >A+
> >Alain
>
--- End Message ---
--- Begin Message ---
Crizz,
You have had two good answers to your original question. One telling you
to turn errmsgs completely off, and another telling you how to turn them
on for debugging. Since then the water has been muddied by all sorts of
'jumping in'.
If you have completed your debugging (my interpretation) and want to run
a 'production' system that won't toss out strange-looking msgs to users,
then stick with the former advice. If you are still in development and
need all the advice you can get, then stick with Alain's advice. You
hadn't stated where you are at, so both extremes of answer were 'valid'
responses! Trouble is talk of "novices" confused the issue...
Given that you now state that errmsgs (to users) should be turned off,
but want to see problems when they do arise, then push error-reporting
to its lowest level and initiate/up-rate the logging facility (one or
two more lines further down the php.ini).
Regards,
=dn
> error_reporting = E_ALL & ~E_NOTICE
>
> > No, now it's ok, my scripts works . It doesn't show any Warnings,
but the
> > bad is that it will probably, won't show any error when exist,
right. So,
> > I'd like a good value for error_reporting, show I'll know my mistake
> without
> > having all silly wanrings destroying the look of the page.
> >
> > Thanks for your immediate help,
> > crizz
> > > Crizz:
> > > Obviously you don't want to do that at this point - No error
reporting
> for
> > a
> > > novice - can be challenging...
> > > Show us your script and we may be able to help. (Sorry I did not
see
> your
> > > previous post(s)...)
> > > A+
> > > Alain
> > >
> > > Ok, I changed error_reporting to "no". But now I take no notice
about
> > errors
> > > at all. Any convinience mode for a novice?
> > >
> > > > crizz,
> > > >
> > > > > I'm really newbye in PHP and just installed php on my IIS on
my XP.
> > > > All
> > > > > sample scripts I tried returns me error messages about
"Warning:
> > > > Undefined
> > > > > variable"
> > > > > It's probably something with the configuration, right?
> > > >
> > > >
> > > > You got it!
> > > > Check out php.ini (in Windows folder).
> > > > There is a load of 'documentation' in amongst the
> settings/definitions.
> > > > There are a number of 'levels' for error reporting, so you can
dial it
> > > > back a notch if you want.
> > > >
> > > > Regards,
> > > > =dn
--- End Message ---
--- Begin Message ---
Could you post the code you are trying to use to do this? It may just be a
coding issue and not MySQL at all.
Nicole
www.aeontrek.com
"Pilotdave" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED].;
> I don't think that's it. Here's more info if it helps... I can input
data
> from the mysql command line, just not through web pages. I have tried a
> number of different scripts and they all work to view data from the
> database, but none seem to be able to send data back to the database. I
get
> no error messages but the scripts stop working at "if ($submit)" or "if
> (($REQUEST_METHOD=='POST')) " I guess. Could it be set as readonly? I
> cant find where that would be set. Any help would be very appreciated.
> Thanks,
>
> Dave
>
>
> > You probably have Mysql set as 'Read Only' Look at the doc.
> > A+
> > Alain
> >
> >
> > -----Original Message-----
> > From: pilotdave [mailto:[EMAIL PROTECTED]]
> > Sent: Saturday, March 02, 2002 5:06 PM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP-WIN] cannot write to mySQL database
> >
> >
> > I am just setting up my first php/mySQL/Apache website running on a
win98
> > machine. I got it working so it can read data from the database,
however
> it
> > seems to be unable to write to the database. I can send queries to it.
I
> am
> > getting the feeling that its a problem with write permission somehow. I
> > know very little about mySQL and Apache so I'm not sure what might need
to
> > be changed. Any ideas?
> >
> > Thanks,
> >
> > Dave
> >
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>
--- End Message ---
--- Begin Message ---
"Nicole Amashta" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED].;
> Could you post the code you are trying to use to do this? It may just be a
> coding issue and not MySQL at all.
>
Sure. The database is called movies1db, username is movies, password is
database. This definitely could be an issue with how i set up the user or
something. Here's the code for one form I'm trying:
-------
<html>
<body>
<?php
if ($submit) {
// process form
$db = mysql_connect("localhost", "movies","database");
mysql_select_db("movies1db",$db);
$sql = "INSERT INTO tbl1 (name,location,length,size,description) VALUES
('$name','$location','$length','$size','description')";
$result = mysql_query($sql);
echo "Thank you! Information entered.\n";
} else{
// display form
?>
<form method="post" action="<?php echo $PHP_SELF ?>">
Name:<input type="Text" name="name"><br>
Location:<input type="Text" name="location"><br>
Length:<input type="Text" name="length"><br>
Size:<input type="Text" name="size"><br>
Description:<input type="Text" name="description"><br>
<input type="Submit" name="submit" value="Enter information">
</form>
<?php
} // end if
?>
</body>
</html>
------
Here's more info. I checked my apache error log and found that when I open
that page, I get the following errors:
[Mon Mar 04 12:14:27 2002] [error] PHP Warning: Undefined variable: submit
in c:\homepage\phptest\dataform2.php on line 11
[Mon Mar 04 12:14:27 2002] [error] PHP Warning: Undefined variable:
PHP_SELF in c:\homepage\phptest\dataform2.php on line 37
I get the same errors when I hit the submit button. Hope this helps!
Dave
--- End Message ---
--- Begin Message ---
OK, go to your php.ini file
and change your error_reporting level to this:
error_reporting = E_ALL & ~E_NOTICE
See if that at least yields different "error" or "warning" messages.
Let me know what happens.
Nicole
www.aeontrek.com
"Pilotdave" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED].;
>
> "Nicole Amashta" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED].;
> > Could you post the code you are trying to use to do this? It may just be
a
> > coding issue and not MySQL at all.
> >
>
>
> Sure. The database is called movies1db, username is movies, password is
> database. This definitely could be an issue with how i set up the user or
> something. Here's the code for one form I'm trying:
> -------
> <html>
> <body>
> <?php
>
> if ($submit) {
>
> // process form
>
> $db = mysql_connect("localhost", "movies","database");
>
> mysql_select_db("movies1db",$db);
>
> $sql = "INSERT INTO tbl1 (name,location,length,size,description) VALUES
> ('$name','$location','$length','$size','description')";
>
> $result = mysql_query($sql);
>
> echo "Thank you! Information entered.\n";
>
> } else{
>
> // display form
>
> ?>
>
> <form method="post" action="<?php echo $PHP_SELF ?>">
>
> Name:<input type="Text" name="name"><br>
>
> Location:<input type="Text" name="location"><br>
>
> Length:<input type="Text" name="length"><br>
>
> Size:<input type="Text" name="size"><br>
>
> Description:<input type="Text" name="description"><br>
>
> <input type="Submit" name="submit" value="Enter information">
>
> </form>
>
> <?php
> } // end if
> ?>
> </body>
> </html>
> ------
>
> Here's more info. I checked my apache error log and found that when I
open
> that page, I get the following errors:
> [Mon Mar 04 12:14:27 2002] [error] PHP Warning: Undefined variable:
submit
> in c:\homepage\phptest\dataform2.php on line 11
> [Mon Mar 04 12:14:27 2002] [error] PHP Warning: Undefined variable:
> PHP_SELF in c:\homepage\phptest\dataform2.php on line 37
>
> I get the same errors when I hit the submit button. Hope this helps!
>
> Dave
>
>
--- End Message ---
--- Begin Message ---
Another thing I suggest is, instead of relying on the value from $submit
(your submit button), create a hidden field and call it "action" or whatever
you want that makes sense to you. This hidden field will store the value of
the action you will take when the form is submitted. For example, you can
call it "action" and give it the value "submit."
Ex:
<input type="hidden" name="action" value="submit">
Then, in your php, you can do this:
If ( $action == "submit" )
## do your insert query here
}
else {
## display the form
}
Good luck,
Nicole
www.aeontrek.com
"Pilotdave" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED].;
>
> "Nicole Amashta" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED].;
> > Could you post the code you are trying to use to do this? It may just be
a
> > coding issue and not MySQL at all.
> >
>
>
> Sure. The database is called movies1db, username is movies, password is
> database. This definitely could be an issue with how i set up the user or
> something. Here's the code for one form I'm trying:
> -------
> <html>
> <body>
> <?php
>
> if ($submit) {
>
> // process form
>
> $db = mysql_connect("localhost", "movies","database");
>
> mysql_select_db("movies1db",$db);
>
> $sql = "INSERT INTO tbl1 (name,location,length,size,description) VALUES
> ('$name','$location','$length','$size','description')";
>
> $result = mysql_query($sql);
>
> echo "Thank you! Information entered.\n";
>
> } else{
>
> // display form
>
> ?>
>
> <form method="post" action="<?php echo $PHP_SELF ?>">
>
> Name:<input type="Text" name="name"><br>
>
> Location:<input type="Text" name="location"><br>
>
> Length:<input type="Text" name="length"><br>
>
> Size:<input type="Text" name="size"><br>
>
> Description:<input type="Text" name="description"><br>
>
> <input type="Submit" name="submit" value="Enter information">
>
> </form>
>
> <?php
> } // end if
> ?>
> </body>
> </html>
> ------
>
> Here's more info. I checked my apache error log and found that when I
open
> that page, I get the following errors:
> [Mon Mar 04 12:14:27 2002] [error] PHP Warning: Undefined variable:
submit
> in c:\homepage\phptest\dataform2.php on line 11
> [Mon Mar 04 12:14:27 2002] [error] PHP Warning: Undefined variable:
> PHP_SELF in c:\homepage\phptest\dataform2.php on line 37
>
> I get the same errors when I hit the submit button. Hope this helps!
>
> Dave
>
>
--- End Message ---
--- Begin Message ---
Sorry, i lost the { in my code. Below it is corrected.
If ( $action == "submit" )
{
## do your insert query here
}
else {
## display the form
}
"Nicole Amashta" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED].;
> Another thing I suggest is, instead of relying on the value from $submit
> (your submit button), create a hidden field and call it "action" or
whatever
> you want that makes sense to you. This hidden field will store the value
of
> the action you will take when the form is submitted. For example, you can
> call it "action" and give it the value "submit."
>
> Ex:
>
> <input type="hidden" name="action" value="submit">
>
> Then, in your php, you can do this:
>
> If ( $action == "submit" )
>
>
> ## do your insert query here
> }
> else {
> ## display the form
> }
>
>
> Good luck,
> Nicole
> www.aeontrek.com
>
> "Pilotdave" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED].;
> >
> > "Nicole Amashta" <[EMAIL PROTECTED]> wrote in message
> > news:[EMAIL PROTECTED].;
> > > Could you post the code you are trying to use to do this? It may just
be
> a
> > > coding issue and not MySQL at all.
> > >
> >
> >
> > Sure. The database is called movies1db, username is movies, password is
> > database. This definitely could be an issue with how i set up the user
or
> > something. Here's the code for one form I'm trying:
> > -------
> > <html>
> > <body>
> > <?php
> >
> > if ($submit) {
> >
> > // process form
> >
> > $db = mysql_connect("localhost", "movies","database");
> >
> > mysql_select_db("movies1db",$db);
> >
> > $sql = "INSERT INTO tbl1 (name,location,length,size,description)
VALUES
> > ('$name','$location','$length','$size','description')";
> >
> > $result = mysql_query($sql);
> >
> > echo "Thank you! Information entered.\n";
> >
> > } else{
> >
> > // display form
> >
> > ?>
> >
> > <form method="post" action="<?php echo $PHP_SELF ?>">
> >
> > Name:<input type="Text" name="name"><br>
> >
> > Location:<input type="Text" name="location"><br>
> >
> > Length:<input type="Text" name="length"><br>
> >
> > Size:<input type="Text" name="size"><br>
> >
> > Description:<input type="Text" name="description"><br>
> >
> > <input type="Submit" name="submit" value="Enter information">
> >
> > </form>
> >
> > <?php
> > } // end if
> > ?>
> > </body>
> > </html>
> > ------
> >
> > Here's more info. I checked my apache error log and found that when I
> open
> > that page, I get the following errors:
> > [Mon Mar 04 12:14:27 2002] [error] PHP Warning: Undefined variable:
> submit
> > in c:\homepage\phptest\dataform2.php on line 11
> > [Mon Mar 04 12:14:27 2002] [error] PHP Warning: Undefined variable:
> > PHP_SELF in c:\homepage\phptest\dataform2.php on line 37
> >
> > I get the same errors when I hit the submit button. Hope this helps!
> >
> > Dave
> >
> >
>
>
--- End Message ---
--- Begin Message ---
Also, for the sake of testing, replace <?=$PHP_SELF;?> with the actual
script name.
Nicole
www.aeontrek.com
"Nicole Amashta" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED].;
> Another thing I suggest is, instead of relying on the value from $submit
> (your submit button), create a hidden field and call it "action" or
whatever
> you want that makes sense to you. This hidden field will store the value
of
> the action you will take when the form is submitted. For example, you can
> call it "action" and give it the value "submit."
>
> Ex:
>
> <input type="hidden" name="action" value="submit">
>
> Then, in your php, you can do this:
>
> If ( $action == "submit" )
> {
>
> ## do your insert query here
> }
> else {
> ## display the form
> }
>
>
> Good luck,
> Nicole
> www.aeontrek.com
>
> "Pilotdave" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED].;
> >
> > "Nicole Amashta" <[EMAIL PROTECTED]> wrote in message
> > news:[EMAIL PROTECTED].;
> > > Could you post the code you are trying to use to do this? It may just
be
> a
> > > coding issue and not MySQL at all.
> > >
> >
> >
> > Sure. The database is called movies1db, username is movies, password is
> > database. This definitely could be an issue with how i set up the user
or
> > something. Here's the code for one form I'm trying:
> > -------
> > <html>
> > <body>
> > <?php
> >
> > if ($submit) {
> >
> > // process form
> >
> > $db = mysql_connect("localhost", "movies","database");
> >
> > mysql_select_db("movies1db",$db);
> >
> > $sql = "INSERT INTO tbl1 (name,location,length,size,description)
VALUES
> > ('$name','$location','$length','$size','description')";
> >
> > $result = mysql_query($sql);
> >
> > echo "Thank you! Information entered.\n";
> >
> > } else{
> >
> > // display form
> >
> > ?>
> >
> > <form method="post" action="<?php echo $PHP_SELF ?>">
> >
> > Name:<input type="Text" name="name"><br>
> >
> > Location:<input type="Text" name="location"><br>
> >
> > Length:<input type="Text" name="length"><br>
> >
> > Size:<input type="Text" name="size"><br>
> >
> > Description:<input type="Text" name="description"><br>
> >
> > <input type="Submit" name="submit" value="Enter information">
> >
> > </form>
> >
> > <?php
> > } // end if
> > ?>
> > </body>
> > </html>
> > ------
> >
> > Here's more info. I checked my apache error log and found that when I
> open
> > that page, I get the following errors:
> > [Mon Mar 04 12:14:27 2002] [error] PHP Warning: Undefined variable:
> submit
> > in c:\homepage\phptest\dataform2.php on line 11
> > [Mon Mar 04 12:14:27 2002] [error] PHP Warning: Undefined variable:
> > PHP_SELF in c:\homepage\phptest\dataform2.php on line 37
> >
> > I get the same errors when I hit the submit button. Hope this helps!
> >
> > Dave
> >
> >
>
>
--- End Message ---
--- Begin Message ---
Ok, making progress. My updated code is below. with full error checking, i
get no errors on loading the page. I do get an error when i attempt to
submit. It does not recognize $action as being a variable:
[Mon Mar 04 13:46:33 2002] [error] PHP Warning: Undefined variable: action
in c:\homepage\phptest\dataform2.php on line 10
This seems to be the root of the problem. If I enter a URL as
http:/..../whatever.php?me=hello, shouldnt $me be a variable equal to the
string "hello" in whatever.php? I cant get this to work. There seems to be
some problem with my settings such that it doesnt recognize variables that
arent defined explicitely (like $me="hello" in the code). Could there be
some setting in an ini file or config file for apache that needs to be
changed? ALMOST THERE (i think!).
Dave
--- End Message ---
--- Begin Message ---
if you are using a high version of php (say 4.1.1) you will need to
reference variables in the url by $_GET['me'] and post variables by
$_POST['action']
-----Original Message-----
From: pilotdave [mailto:[EMAIL PROTECTED]]
Sent: 04 March 2002 18:54
To: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] cannot write to mySQL database
Ok, making progress. My updated code is below. with full error checking, i
get no errors on loading the page. I do get an error when i attempt to
submit. It does not recognize $action as being a variable:
[Mon Mar 04 13:46:33 2002] [error] PHP Warning: Undefined variable: action
in c:\homepage\phptest\dataform2.php on line 10
This seems to be the root of the problem. If I enter a URL as
http:/..../whatever.php?me=hello, shouldnt $me be a variable equal to the
string "hello" in whatever.php? I cant get this to work. There seems to be
some problem with my settings such that it doesnt recognize variables that
arent defined explicitely (like $me="hello" in the code). Could there be
some setting in an ini file or config file for apache that needs to be
changed? ALMOST THERE (i think!).
Dave
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
*****************************************************************
Calling abroad? Save your precious pounds with
1st Contact Telecom! http://www.1stcontact.co.uk
*****************************************************************
This is a confidential message for the named persons
only. It may contain confidential, proprietary or legally
privileged information. If you receive this message in error
please notify the sender and immediately delete the
message. You must not, directly or indirectly, use,
disclose, distribute, print or copy any part of this
message if you are not the intended recipient. All views
expressed in this message are those of the individual
sender and do not necessarily reflect those of
1st Contact Group or any of its subsidiaries.
--- End Message ---
--- Begin Message ---
Woohoo, the problem seems to have been register_globals being off. In
reading the php.ini info about it, it sounds like having it on can be
dangerous. I tried following the instructions in the manual about using
variables with register_globals off but couldnt get it to work so i just
turned it on.
Dave
--- End Message ---
--- Begin Message ---
In that case, you probably could have accessed your variables like so:
$HTTP_POST_VARS["action"]
or $HTTP_GET_VARS["me"]
Depending on how the variables were submitted (POST or GET).
Nicole
www.aeontrek.com
Pilotdave <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED].;
> Woohoo, the problem seems to have been register_globals being off. In
> reading the php.ini info about it, it sounds like having it on can be
> dangerous. I tried following the instructions in the manual about using
> variables with register_globals off but couldnt get it to work so i just
> turned it on.
>
> Dave
>
>
>
--- End Message ---
--- Begin Message ---
Where can I find a documentation about the PHP exploit regarding file
uploads that excludes the WIN32 version from this problem?
On e-matters security advisory
(http://security.e-matters.de/advisories/012002.html), this information is
not clear and what I can understand is that all servers running PHP are
vulnerable without the patch.
But on PHP.NET website we can only find the patch for Linux!!!
Please, I need an official report from PHP.net about this issue because my
ASP just disabled the file_uploads INI set while the patch for Win32 is
released.
Regards,
--
Fabio De Martin
BASE64 Soluções em Tecnologia
Telefone: 011.5507.2426
Celular: 011.9639.8990
The information in this e-mail and any attachments is confidential and is
intended for the addressee only. If you are not the intended recipient,
please delete this message and any attachments and advise the sender by
return e-mail.
Visit our website: http://www.base64.com.br
--- End Message ---
--- Begin Message ---
There are no known win32 exploits for this particular bug. At some point
we will have a Windows version of 4.1.2, but the Windows version always
lags behind by a bit. You will just have to wait.
As far as I am concerned, an ISP running a Windows web server has much
bigger problems than this particular tiny buffer overflow.
-Rasmus
On Mon, 4 Mar 2002, Fabio De Martin wrote:
> Where can I find a documentation about the PHP exploit regarding file
> uploads that excludes the WIN32 version from this problem?
> On e-matters security advisory
> (http://security.e-matters.de/advisories/012002.html), this information is
> not clear and what I can understand is that all servers running PHP are
> vulnerable without the patch.
> But on PHP.NET website we can only find the patch for Linux!!!
>
> Please, I need an official report from PHP.net about this issue because my
> ASP just disabled the file_uploads INI set while the patch for Win32 is
> released.
>
> Regards,
>
> --
> Fabio De Martin
> BASE64 Soluções em Tecnologia
> Telefone: 011.5507.2426
> Celular: 011.9639.8990
>
> The information in this e-mail and any attachments is confidential and is
> intended for the addressee only. If you are not the intended recipient,
> please delete this message and any attachments and advise the sender by
> return e-mail.
>
> Visit our website: http://www.base64.com.br
>
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
hi,
i am having a problem with mail() function being very slow but only on some
days. the network traffic on these days doesn't seem to be higher than
normal and the mail server (exchange server 5.5, SP4, located on another
machine) is working fine through outlook. i tried connecting to another mail
server and it was also very slow. i also tried using a non existent smtp ip
and it was very quick to realise it didn't exist. i am using php 4.1.1 with
apache 1.3.20 (win32). any help would be greatly appreciated.
thanks
athene
*****************************************************************
Calling abroad? Save your precious pounds with
1st Contact Telecom! http://www.1stcontact.co.uk
*****************************************************************
This is a confidential message for the named persons
only. It may contain confidential, proprietary or legally
privileged information. If you receive this message in error
please notify the sender and immediately delete the
message. You must not, directly or indirectly, use,
disclose, distribute, print or copy any part of this
message if you are not the intended recipient. All views
expressed in this message are those of the individual
sender and do not necessarily reflect those of
1st Contact Group or any of its subsidiaries.
--- End Message ---
--- Begin Message ---
After finally having succeeded compiling php4.1.2 on my win2k-system
with vc++6.0 and even getting it (i.e. php.exe, php4ts.dll and
php4ts.lib) to work with apache1.3.23 i don’t know how to get on getting
t1lib in there.
Please help!
Do i have to start ./configure –with-t1lib=... in cygwin? Or can that
–with- stuff be done somewhere else as well?
I get the error:
$ ./configure
loading cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... make: not found
no
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... missing
checking whether to enable maintainer-specific portions of Makefiles...
no
checking host system type... i686-pc-cygwin
checking for gawk... gawk
checking for bison... bison -y
checking bison version... 1.27 (ok)
checking for gcc... no
checking for cc... no
configure: error: no acceptable cc found in $PATH
what’s wrong? And what then?
Thanx in advance,
Oliver!
--- End Message ---
--- Begin Message ---
Well here's the big problem:
configure: error: no acceptable cc found in $PATH
cc is the compiler so you need to make sure that the c++ compiler: is
believe it's cl.exe is in the enviroment variable PATH.
----Original Message Follows----
From: "think a Bit" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Subject: [PHP-WIN] t1lib
Date: Mon, 4 Mar 2002 20:45:41 +0100
After finally having succeeded compiling php4.1.2 on my win2k-system
with vc++6.0 and even getting it (i.e. php.exe, php4ts.dll and
php4ts.lib) to work with apache1.3.23 i don’t know how to get on getting
t1lib in there.
Please help!
Do i have to start ./configure –with-t1lib=... in cygwin? Or can that
–with- stuff be done somewhere else as well?
I get the error:
$ ./configure
loading cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... make: not found
no
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... missing
checking whether to enable maintainer-specific portions of Makefiles...
no
checking host system type... i686-pc-cygwin
checking for gawk... gawk
checking for bison... bison -y
checking bison version... 1.27 (ok)
checking for gcc... no
checking for cc... no
configure: error: no acceptable cc found in $PATH
what’s wrong? And what then?
Thanx in advance,
Oliver!
_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com
--- End Message ---
--- Begin Message ---
Did you try doing the ./configure -with-t1lib yet?
----Original Message Follows----
From: "think a Bit" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Subject: AW: [PHP-WIN] t1lib
Date: Tue, 5 Mar 2002 00:33:12 +0100
Ooops, sorry, i found cl.exe in
C:\Programme\Microsoft Visual Studio\VC98\Bin
And added that to $path
But it didn't change anything ;-(
Any other ideas?
Thanx,
oliver!
-----Ursprüngliche Nachricht-----
Von: Pac mon [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 04. März 2002 23:14
An: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Betreff: Re: [PHP-WIN] t1lib
Well here's the big problem:
configure: error: no acceptable cc found in $PATH
cc is the compiler so you need to make sure that the c++ compiler: is
believe it's cl.exe is in the enviroment variable PATH.
----Original Message Follows----
From: "think a Bit" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Subject: [PHP-WIN] t1lib
Date: Mon, 4 Mar 2002 20:45:41 +0100
After finally having succeeded compiling php4.1.2 on my win2k-system
with vc++6.0 and even getting it (i.e. php.exe, php4ts.dll and
php4ts.lib) to work with apache1.3.23 i don’t know how to get on getting
t1lib in there.
Please help!
Do i have to start ./configure –with-t1lib=... in cygwin? Or can that
–with- stuff be done somewhere else as well?
I get the error:
$ ./configure
loading cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... make: not found
no
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... missing
checking whether to enable maintainer-specific portions of Makefiles...
no
checking host system type... i686-pc-cygwin
checking for gawk... gawk
checking for bison... bison -y
checking bison version... 1.27 (ok)
checking for gcc... no
checking for cc... no
configure: error: no acceptable cc found in $PATH
what’s wrong? And what then?
Thanx in advance,
Oliver!
_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com
_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail.
http://www.hotmail.com
--- End Message ---
--- Begin Message ---
I'm having trouble reading cookies with ASP that are set with PHP's
setcookie() on a win2k (PHP 4.1.1) platform.
When setting a cookie on win2k using PHP, that cookie CANNOT be read by
either PHP or ASP running on that same win2k machine. If I set the cookie
using PHP (PHP 4.0.5) on a unix box, that cookie can be read by BOTH PHP and
ASP running on the win2k machine. It just seems like PHP can't write
cookies while running on windows.
Is there some special way to use PHP to write cookies on windows that I
don't know about?
John Krane
Web Developer
Internet Services Department
New Jersey Institute of Technology
p:973.596.5465
f:973.596.2306
e:[EMAIL PROTECTED]
--- End Message ---