php-general Digest 28 Sep 2003 10:49:11 -0000 Issue 2323

Topics (messages 164126 through 164157):

Re: apache logs reset at midnight
        164126 by: Jason Sheets
        164128 by: John Ryan

Re: IIS Ports
        164127 by: Jon Kriek

Re: Array question
        164129 by: Cristian Lavaque

Re: Please visit my php program
        164130 by: Cristian Lavaque
        164132 by: Ryan A
        164133 by: Cristian Lavaque
        164134 by: Ryan A

Re: php.general on your desktop
        164131 by: Cristian Lavaque

register_globals won't turn off!
        164135 by: Damon Kohler
        164136 by: Cristian Lavaque
        164137 by: Jon Kriek
        164138 by: Damon Kohler
        164139 by: Damon Kohler
        164140 by: Robert Cummings
        164141 by: Greg Beaver
        164142 by: Damon Kohler
        164143 by: Damon Kohler
        164144 by: Greg Beaver
        164145 by: Tom Rogers
        164146 by: Damon Kohler
        164147 by: Greg Beaver
        164148 by: Damon Kohler
        164149 by: Raquel Rice

mail() and Sender: field
        164150 by: Adam Whitehead
        164151 by: Jason Wong
        164154 by: Marek Kilimajer

Q on setlocale...
        164152 by: jsWalter
        164153 by: Tom Rogers

Re: wml and php
        164155 by: Patrik Fomin
        164156 by: Tom Rogers

Submit button
        164157 by: Karina S

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 --- If you are running Linux/Unix check /etc/newsyslog.conf as well, this is a program run from cron that rotates the systems and other daemon log files.



Jon Kriek wrote:

Rob is aspsoletly correct; this has to be a rotation called from crontab.



Jon Kriek

http://phpfreaks.com



"Robert Cummings" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]



You sure you don't have a cron that run every night and rotates the log
files such that the previous day's is archived?

Rob.

On Sat, 2003-09-27 at 16:49, John Ryan wrote:


for some reason, my apache log files reset every night at 12, whihc i


dont


want. how do i change this in the apache httpd.conf file?

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




--
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'






--- End Message ---
--- Begin Message ---
yeah, i found 'logrotate.conf' in the etc/conf/ folder. Thanks, I would
never have found it, only messed around with the apache httpd.conf file!

Thanks again
"Jason Sheets" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> If you are running Linux/Unix check /etc/newsyslog.conf as well, this is
> a program run from cron that rotates the systems and other daemon log
files.
>
>
>
> Jon Kriek wrote:
>
> >Rob is aspsoletly correct; this has to be a rotation called from crontab.
> >
> >
> >
> >Jon Kriek
> >
> >http://phpfreaks.com
> >
> >
> >
> >"Robert Cummings" <[EMAIL PROTECTED]> wrote in message
> >news:[EMAIL PROTECTED]
> >
> >
> >
> >>You sure you don't have a cron that run every night and rotates the log
> >>files such that the previous day's is archived?
> >>
> >>Rob.
> >>
> >>On Sat, 2003-09-27 at 16:49, John Ryan wrote:
> >>
> >>
> >>>for some reason, my apache log files reset every night at 12, whihc i
> >>>
> >>>
> >dont
> >
> >
> >>>want. how do i change this in the apache httpd.conf file?
> >>>
> >>>--
> >>>PHP General Mailing List (http://www.php.net/)
> >>>To unsubscribe, visit: http://www.php.net/unsub.php
> >>>
> >>>
> >>>
> >>>
> >>--
> >>.------------------------------------------------------------.
> >>| InterJinn Application Framework - http://www.interjinn.com |
> >>:------------------------------------------------------------:
> >>| An application and templating framework for PHP. Boasting  |
> >>| a powerful, scalable system for accessing system services  |
> >>| such as forms, properties, sessions, and caches. InterJinn |
> >>| also provides an extremely flexible architecture for       |
> >>| creating re-usable components quickly and easily.          |
> >>`------------------------------------------------------------'
> >>
> >>
> >
> >
> >

--- End Message ---
--- Begin Message ---
The point is get a "good" firewall, doesn't matter which one.

Personally I prefer Sygate Personal Firewall PRO
http://smb.sygate.com/products/pspf/pspf_ov.htm

--
Jon Kriek
http://phpfreaks.com

"Jason Sheets" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]

> Install ZoneAlarm,  and configure your web server to listen to IP
> 127.0.0.1. If you aren't using ASP and you are using PHP you might
> consider installing Apache for Windows.  If your brother is attempting
> to exploit you from your LAN set the LAN trust level in Zone Alarm lower
> so that it is the same as the Internet trust level.  Also make sure you
> have all critical updates installed for Windows.

--- End Message ---
--- Begin Message ---
http://www.php.net/manual/en/language.types.array.php

If you mean having an array inside an array, of course <? $arr =
array(array('data')); ?>. There you have an array inside another
one, 'data' will be here $var['0']['0'].

If you meant using an array item as the key in another array,
then you do it as with a normal var <? $arr1[$arr2['0']]; ?>.
Remember not to quote $arr2 just as you wouldn't a quote a var
when using it as the key.

In your question you're mixing both:
> Example: $paArgs['aCheckBoxes[$iIndex]['sName']']

Unquote 'aCheckBoxes[$iIndex]['sName']' and put the $ sign in
front:
$paArgs[$aCheckBoxes[$iIndex]['sName']]

I hope this helped.

Cristian



Robin Kopetzky wrote:
> Good morning all!!
>
> Can you nest an array within an array??
>
> Example: $paArgs['aCheckBoxes[$iIndex]['sName']']
>
> Thank you in advance.
>
> Robin 'Sparky' Kopetzky
> Black Mesa Computers/Internet Service
> Grants, NM 87020

--- End Message ---
--- Begin Message ---
Looks good. You should use nonsense words too, including numbers.
You could also change the patter, not just move it. Also,
changing the font used, not just for the whole word, but mixing
fonts in the string could be good. Good job :)

Cristian



Ryan A wrote:
> Hey everyone,
> Please visit my captcha program here and tell me if its good or
if
> you think i need to make some changes in text,color or
anything.
>
> http://bestwebhosters.com/captcha/test.php
>
> Reload the page a couple of times and see.
>
> Do you think its good enough for most uses or should i add
"nonsense
> words (+ numbers?)"
> eg:
>  fgsgej,asghdq...
>  instead of the normal words?
>
> Thanks for your time and opinion.
>
> Cheers,
> -Ryan

--- End Message ---
--- Begin Message ---
Hey,
Thanks for replying.

One of the main problems i faced was that GD does not have the same
flexability of GIMP (for now anyway) but have made up partly for it in
another way...
Have a look at this graphic, it loads fast, is clean and still confusing
enough...IMHO but if you think differiently or have any comments/suggestions
....seattle, I'm listening :-D

http://bestwebhosters.com/captcha/2/test.php

Cheers,
-Ryan


> Looks good. You should use nonsense words too, including numbers.
> You could also change the patter, not just move it. Also,
> changing the font used, not just for the whole word, but mixing
> fonts in the string could be good. Good job :)
>
> Cristian
>
>
>
> Ryan A wrote:
> > Hey everyone,
> > Please visit my captcha program here and tell me if its good or
> if
> > you think i need to make some changes in text,color or
> anything.
> >
> > http://bestwebhosters.com/captcha/test.php
> >
> > Reload the page a couple of times and see.
> >
> > Do you think its good enough for most uses or should i add
> "nonsense
> > words (+ numbers?)"
> > eg:
> >  fgsgej,asghdq...
> >  instead of the normal words?
> >
> > Thanks for your time and opinion.
> >
> > Cheers,
> > -Ryan
>
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>

--- End Message ---
--- Begin Message ---
One of the words had the last letter out of the picture, so it
gave me an error when I typed the incomplete word. After going
back and guessing the complete word (there was a tiny fragment of
the last letter visible), it passed. You should make sure that
the whole word will always be in sight.

Cristian


Ryan A wrote:
> Hey,
> Thanks for replying.
>
> One of the main problems i faced was that GD does not have the
same
> flexability of GIMP (for now anyway) but have made up partly
for it in
> another way...
> Have a look at this graphic, it loads fast, is clean and still
> confusing enough...IMHO but if you think differiently or have
any
> comments/suggestions ....seattle, I'm listening :-D
>
> http://bestwebhosters.com/captcha/2/test.php
>
> Cheers,
> -Ryan
>
>
>> Looks good. You should use nonsense words too, including
numbers.
>> You could also change the patter, not just move it. Also,
>> changing the font used, not just for the whole word, but
mixing
>> fonts in the string could be good. Good job :)
>>
>> Cristian
>>
>>
>>
>> Ryan A wrote:
>>> Hey everyone,
>>> Please visit my captcha program here and tell me if its good
or
>> if
>>> you think i need to make some changes in text,color or
>> anything.
>>>
>>> http://bestwebhosters.com/captcha/test.php
>>>
>>> Reload the page a couple of times and see.
>>>
>>> Do you think its good enough for most uses or should i add
>> "nonsense
>>> words (+ numbers?)"
>>> eg:
>>>  fgsgej,asghdq...
>>>  instead of the normal words?
>>>
>>> Thanks for your time and opinion.
>>>
>>> Cheers,
>>> -Ryan
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php

--- End Message ---
--- Begin Message ---
Hey,
Yes, i have noticed that problem with words over or around 7 chars, so will
shorten all words to around 5 to be totally safe.
Heres another good example with a differient effect:

http://bestwebhosters.com/captcha/3/test.php

Ignore the words over 6 chars as they will either be shortened out or
deleted.

Will be putting this on our website (free download of course ) after i am
done if it comes out good.

Cheers,
-Ryan


> One of the words had the last letter out of the picture, so it
> gave me an error when I typed the incomplete word. After going
> back and guessing the complete word (there was a tiny fragment of
> the last letter visible), it passed. You should make sure that
> the whole word will always be in sight.
>
> Cristian
>
>
> Ryan A wrote:
> > Hey,
> > Thanks for replying.
> >
> > One of the main problems i faced was that GD does not have the
> same
> > flexability of GIMP (for now anyway) but have made up partly
> for it in
> > another way...
> > Have a look at this graphic, it loads fast, is clean and still
> > confusing enough...IMHO but if you think differiently or have
> any
> > comments/suggestions ....seattle, I'm listening :-D
> >
> > http://bestwebhosters.com/captcha/2/test.php
> >
> > Cheers,
> > -Ryan
> >
> >
> >> Looks good. You should use nonsense words too, including
> numbers.
> >> You could also change the patter, not just move it. Also,
> >> changing the font used, not just for the whole word, but
> mixing
> >> fonts in the string could be good. Good job :)
> >>
> >> Cristian
> >>
> >>
> >>
> >> Ryan A wrote:
> >>> Hey everyone,
> >>> Please visit my captcha program here and tell me if its good
> or
> >> if
> >>> you think i need to make some changes in text,color or
> >> anything.
> >>>
> >>> http://bestwebhosters.com/captcha/test.php
> >>>
> >>> Reload the page a couple of times and see.
> >>>
> >>> Do you think its good enough for most uses or should i add
> >> "nonsense
> >>> words (+ numbers?)"
> >>> eg:
> >>>  fgsgej,asghdq...
> >>>  instead of the normal words?
> >>>
> >>> Thanks for your time and opinion.
> >>>
> >>> Cheers,
> >>> -Ryan
> >>
> >> --
> >> PHP General Mailing List (http://www.php.net/)
> >> To unsubscribe, visit: http://www.php.net/unsub.php
>
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>

--- End Message ---
--- Begin Message ---
Very nice! Thank you Jon! =)

Cristian


Jon Kriek wrote:
> Serence KlipFolio
>
http://www.serence.com/site.php?action=ser_products,prod_klipfoli
o
>
> php.general Klip
> http://www.klipfarm.com/farm.php?page=info&klip=1767
>
> Pulling from the experimental web interface
> http://news.php.net/group.php?group=php.general
>
> --
> Jon Kriek
> http://phpfreaks.com

--- End Message ---
--- Begin Message ---
Well, it does turn off. At least phpinfo() says that it's off. However, PHP
is acting as though it's still turned on. The source code for the page I'm
using to test this odd result is:

<html>
<head>
</head>
<body>
<form action="<?=$_SERVER['PHP_SELF']?>" method="post">
<input name="test">
<input type="submit">
</form>
</body>
</html>
<?php

print $test;

phpinfo();
?>

I'm running PHP 4.3.3 on RH7. When the form is submited, the value is
printed despite the fact it's printing $test and not $_POST['test']. This is
copy pasted from the results:

      register_argc_argv Off Off
      register_globals Off Off


I'm completely stumped.

Thanks in advance,
Damon

--- End Message ---
--- Begin Message ---
I don't know much about this, but could it have been cached?

Cristian


Damon Kohler wrote:
> Well, it does turn off. At least phpinfo() says that it's off.
> However, PHP is acting as though it's still turned on. The
source
> code for the page I'm using to test this odd result is:
>
> <html>
> <head>
> </head>
> <body>
> <form action="<?=$_SERVER['PHP_SELF']?>" method="post">
> <input name="test">
> <input type="submit">
> </form>
> </body>
> </html>
> <?php
>
> print $test;
>
> phpinfo();
>>
>
> I'm running PHP 4.3.3 on RH7. When the form is submited, the
value is
> printed despite the fact it's printing $test and not
$_POST['test'].
> This is copy pasted from the results:
>
>       register_argc_argv Off Off
>       register_globals Off Off
>
>
> I'm completely stumped.
>
> Thanks in advance,
> Damon

--- End Message ---
--- Begin Message ---
What does it say at script level?

$register_globals = (bool) ini_get('register_gobals');

"Damon Kohler" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Well, it does turn off. At least phpinfo() says that it's off. However,
PHP
> is acting as though it's still turned on. The source code for the page I'm
> using to test this odd result is:
>
> <html>
> <head>
> </head>
> <body>
> <form action="<?=$_SERVER['PHP_SELF']?>" method="post">
> <input name="test">
> <input type="submit">
> </form>
> </body>
> </html>
> <?php
>
> print $test;
>
> phpinfo();
> ?>
>
> I'm running PHP 4.3.3 on RH7. When the form is submited, the value is
> printed despite the fact it's printing $test and not $_POST['test']. This
is
> copy pasted from the results:
>
>       register_argc_argv Off Off
>       register_globals Off Off
>
>
> I'm completely stumped.
>
> Thanks in advance,
> Damon

--- End Message ---
--- Begin Message ---
No, it's not cached. I can type in anything to the input and it'll show up.
As in, if I type "test" into the form, it prints test. Then if I type "hello
world" it'll print hello world. So I'm pretty sure caching  isn't the
problem.

Damon

"Cristian Lavaque" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I don't know much about this, but could it have been cached?
>
> Cristian
>
>
> Damon Kohler wrote:
> > Well, it does turn off. At least phpinfo() says that it's off.
> > However, PHP is acting as though it's still turned on. The
> source
> > code for the page I'm using to test this odd result is:
> >
> > <html>
> > <head>
> > </head>
> > <body>
> > <form action="<?=$_SERVER['PHP_SELF']?>" method="post">
> > <input name="test">
> > <input type="submit">
> > </form>
> > </body>
> > </html>
> > <?php
> >
> > print $test;
> >
> > phpinfo();
> >>
> >
> > I'm running PHP 4.3.3 on RH7. When the form is submited, the
> value is
> > printed despite the fact it's printing $test and not
> $_POST['test'].
> > This is copy pasted from the results:
> >
> >       register_argc_argv Off Off
> >       register_globals Off Off
> >
> >
> > I'm completely stumped.
> >
> > Thanks in advance,
> > Damon

--- End Message ---
--- Begin Message ---
I changed the code to the snippet below. It displays register globals off.

Damon

<html>
<head>
</head>
<body>
<form action="<?=$_SERVER['PHP_SELF']?>" method="post">
<input name="test">
<input type="submit">
</form>
</body>
</html>
<?php

print $test;

print "<br>";

$register_globals = (bool) ini_get('register_gobals');

print "register globals: " . ($register_globals ? "on" : "off");

phpinfo();
?>

"Jon Kriek" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> What does it say at script level?
>
> $register_globals = (bool) ini_get('register_gobals');
>
> "Damon Kohler" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > Well, it does turn off. At least phpinfo() says that it's off. However,
> PHP
> > is acting as though it's still turned on. The source code for the page
I'm
> > using to test this odd result is:
> >
> > <html>
> > <head>
> > </head>
> > <body>
> > <form action="<?=$_SERVER['PHP_SELF']?>" method="post">
> > <input name="test">
> > <input type="submit">
> > </form>
> > </body>
> > </html>
> > <?php
> >
> > print $test;
> >
> > phpinfo();
> > ?>
> >
> > I'm running PHP 4.3.3 on RH7. When the form is submited, the value is
> > printed despite the fact it's printing $test and not $_POST['test'].
This
> is
> > copy pasted from the results:
> >
> >       register_argc_argv Off Off
> >       register_globals Off Off
> >
> >
> > I'm completely stumped.
> >
> > Thanks in advance,
> > Damon

--- End Message ---
--- Begin Message ---
Are you using third party code that might be doing the export to global
space itself?

Rob.

On Sat, 2003-09-27 at 22:21, Damon Kohler wrote:
> No, it's not cached. I can type in anything to the input and it'll show up.
> As in, if I type "test" into the form, it prints test. Then if I type "hello
> world" it'll print hello world. So I'm pretty sure caching  isn't the
> problem.
> 
> Damon
> 
> "Cristian Lavaque" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > I don't know much about this, but could it have been cached?
> >
> > Cristian
> >
> >
> > Damon Kohler wrote:
> > > Well, it does turn off. At least phpinfo() says that it's off.
> > > However, PHP is acting as though it's still turned on. The
> > source
> > > code for the page I'm using to test this odd result is:
> > >
> > > <html>
> > > <head>
> > > </head>
> > > <body>
> > > <form action="<?=$_SERVER['PHP_SELF']?>" method="post">
> > > <input name="test">
> > > <input type="submit">
> > > </form>
> > > </body>
> > > </html>
> > > <?php
> > >
> > > print $test;
> > >
> > > phpinfo();
> > >>
> > >
> > > I'm running PHP 4.3.3 on RH7. When the form is submited, the
> > value is
> > > printed despite the fact it's printing $test and not
> > $_POST['test'].
> > > This is copy pasted from the results:
> > >
> > >       register_argc_argv Off Off
> > >       register_globals Off Off
> > >
> > >
> > > I'm completely stumped.
> > >
> > > Thanks in advance,
> > > Damon
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
-- 
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for       |
| creating re-usable components quickly and easily.          |
`------------------------------------------------------------'

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

Do you have an auto_prepend_file? Also, check the contents of .htaccess, make sure register_globals is not set to on there.

Greg

Damon Kohler wrote:
Well, it does turn off. At least phpinfo() says that it's off. However, PHP
is acting as though it's still turned on. The source code for the page I'm
using to test this odd result is:

<html>
<head>
</head>
<body>
<form action="<?=$_SERVER['PHP_SELF']?>" method="post">
<input name="test">
<input type="submit">
</form>
</body>
</html>
<?php

print $test;

phpinfo();
?>

I'm running PHP 4.3.3 on RH7. When the form is submited, the value is
printed despite the fact it's printing $test and not $_POST['test']. This is
copy pasted from the results:

      register_argc_argv Off Off
      register_globals Off Off


I'm completely stumped.


Thanks in advance,
Damon

--- End Message ---
--- Begin Message ---
I don't think so... You have something particular in mind? You can check out
the page itself at http://my.innermetrix.cc/test.php

Damon

"Robert Cummings" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Are you using third party code that might be doing the export to global
> space itself?
>
> Rob.
>
> On Sat, 2003-09-27 at 22:21, Damon Kohler wrote:
> > No, it's not cached. I can type in anything to the input and it'll show
up.
> > As in, if I type "test" into the form, it prints test. Then if I type
"hello
> > world" it'll print hello world. So I'm pretty sure caching  isn't the
> > problem.
> >
> > Damon
> >
> > "Cristian Lavaque" <[EMAIL PROTECTED]> wrote in message
> > news:[EMAIL PROTECTED]
> > > I don't know much about this, but could it have been cached?
> > >
> > > Cristian
> > >
> > >
> > > Damon Kohler wrote:
> > > > Well, it does turn off. At least phpinfo() says that it's off.
> > > > However, PHP is acting as though it's still turned on. The
> > > source
> > > > code for the page I'm using to test this odd result is:
> > > >
> > > > <html>
> > > > <head>
> > > > </head>
> > > > <body>
> > > > <form action="<?=$_SERVER['PHP_SELF']?>" method="post">
> > > > <input name="test">
> > > > <input type="submit">
> > > > </form>
> > > > </body>
> > > > </html>
> > > > <?php
> > > >
> > > > print $test;
> > > >
> > > > phpinfo();
> > > >>
> > > >
> > > > I'm running PHP 4.3.3 on RH7. When the form is submited, the
> > > value is
> > > > printed despite the fact it's printing $test and not
> > > $_POST['test'].
> > > > This is copy pasted from the results:
> > > >
> > > >       register_argc_argv Off Off
> > > >       register_globals Off Off
> > > >
> > > >
> > > > I'm completely stumped.
> > > >
> > > > Thanks in advance,
> > > > Damon
> >
> > -- 
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> -- 
> .------------------------------------------------------------.
> | InterJinn Application Framework - http://www.interjinn.com |
> :------------------------------------------------------------:
> | An application and templating framework for PHP. Boasting  |
> | a powerful, scalable system for accessing system services  |
> | such as forms, properties, sessions, and caches. InterJinn |
> | also provides an extremely flexible architecture for       |
> | creating re-usable components quickly and easily.          |
> `------------------------------------------------------------'

--- End Message ---
--- Begin Message ---
Don't know anything about an auto_prepend_file. There is no .htaccess file.
Beside, phpinfo says register_globals is off both globaly and localy.

Damon

"Greg Beaver" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi Damon,
>
> Do you have an auto_prepend_file?  Also, check the contents of
> .htaccess, make sure register_globals is not set to on there.
>
> Greg
>
> Damon Kohler wrote:
> > Well, it does turn off. At least phpinfo() says that it's off. However,
PHP
> > is acting as though it's still turned on. The source code for the page
I'm
> > using to test this odd result is:
> >
> > <html>
> > <head>
> > </head>
> > <body>
> > <form action="<?=$_SERVER['PHP_SELF']?>" method="post">
> > <input name="test">
> > <input type="submit">
> > </form>
> > </body>
> > </html>
> > <?php
> >
> > print $test;
> >
> > phpinfo();
> > ?>
> >
> > I'm running PHP 4.3.3 on RH7. When the form is submited, the value is
> > printed despite the fact it's printing $test and not $_POST['test'].
This is
> > copy pasted from the results:
> >
> >       register_argc_argv Off Off
> >       register_globals Off Off
> >
> >
> > I'm completely stumped.
> >
> > Thanks in advance,
> > Damon

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

if you append ?test=foo to the url you supplied, it will print "foo" - register_globals is definitely on, perhaps you could add this to the start of the file:

ini_set('error_reporting', E_ALL);

so we can see the result? You should also be seeing a notice of an undefined variable. It's possible you've found a bug, maybe one of the many extensions you have loaded enables register_globals - do you have access to recompile php?

Greg

Damon Kohler wrote:

Don't know anything about an auto_prepend_file. There is no .htaccess file.
Beside, phpinfo says register_globals is off both globaly and localy.

Damon

"Greg Beaver" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]

Hi Damon,

Do you have an auto_prepend_file?  Also, check the contents of
.htaccess, make sure register_globals is not set to on there.

Greg

Damon Kohler wrote:

Well, it does turn off. At least phpinfo() says that it's off. However,

PHP


is acting as though it's still turned on. The source code for the page

I'm


using to test this odd result is:

<html>
<head>
</head>
<body>
<form action="<?=$_SERVER['PHP_SELF']?>" method="post">
<input name="test">
<input type="submit">
</form>
</body>
</html>
<?php

print $test;

phpinfo();
?>

I'm running PHP 4.3.3 on RH7. When the form is submited, the value is
printed despite the fact it's printing $test and not $_POST['test'].

This is


copy pasted from the results:

     register_argc_argv Off Off
     register_globals Off Off


I'm completely stumped.


Thanks in advance,
Damon

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

Sunday, September 28, 2003, 12:36:19 PM, you wrote:
DK> Don't know anything about an auto_prepend_file. There is no .htaccess file.
DK> Beside, phpinfo says register_globals is off both globaly and localy.

DK> Damon

DK> "Greg Beaver" <[EMAIL PROTECTED]> wrote in message
DK> news:[EMAIL PROTECTED]

Sounds like your web host has put an auto-prepend file with a kludge to emulate
globals being on to get rid of all the complaints about scripts failing :)

-- 
regards,
Tom

--- End Message ---
--- Begin Message ---
I added the error_reporting line and it doesn't seem to make any difference
actually. No warnings or notices. Yes, I can recompile PHP.

Damon

"Greg Beaver" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
>
> if you append ?test=foo to the url you supplied, it will print "foo" -
> register_globals is definitely on, perhaps you could add this to the
> start of the file:
>
> ini_set('error_reporting', E_ALL);
>
> so we can see the result?  You should also be seeing a notice of an
> undefined variable.  It's possible you've found a bug, maybe one of the
> many extensions you have loaded enables register_globals - do you have
> access to recompile php?
>
> Greg
>
> Damon Kohler wrote:
>
> > Don't know anything about an auto_prepend_file. There is no .htaccess
file.
> > Beside, phpinfo says register_globals is off both globaly and localy.
> >
> > Damon
> >
> > "Greg Beaver" <[EMAIL PROTECTED]> wrote in message
> > news:[EMAIL PROTECTED]
> >
> >>Hi Damon,
> >>
> >>Do you have an auto_prepend_file?  Also, check the contents of
> >>.htaccess, make sure register_globals is not set to on there.
> >>
> >>Greg
> >>
> >>Damon Kohler wrote:
> >>
> >>>Well, it does turn off. At least phpinfo() says that it's off. However,
> >
> > PHP
> >
> >>>is acting as though it's still turned on. The source code for the page
> >
> > I'm
> >
> >>>using to test this odd result is:
> >>>
> >>><html>
> >>><head>
> >>></head>
> >>><body>
> >>><form action="<?=$_SERVER['PHP_SELF']?>" method="post">
> >>><input name="test">
> >>><input type="submit">
> >>></form>
> >>></body>
> >>></html>
> >>><?php
> >>>
> >>>print $test;
> >>>
> >>>phpinfo();
> >>>?>
> >>>
> >>>I'm running PHP 4.3.3 on RH7. When the form is submited, the value is
> >>>printed despite the fact it's printing $test and not $_POST['test'].
> >
> > This is
> >
> >>>copy pasted from the results:
> >>>
> >>>      register_argc_argv Off Off
> >>>      register_globals Off Off
> >>>
> >>>
> >>>I'm completely stumped.
> >>>
> >>>Thanks in advance,
> >>>Damon

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

I would try recompiling PHP with the bare minimum, and see if you can reproduce the behavior. If not, then add in extensions one by one. If you still see the behavior, modify a value in php.ini, and make sure you see it show up in phpinfo() (don't forget to restart Apache). If changes don't show up, it's reading a different php.ini, which can be a bit loopy.

Greg

Damon Kohler wrote:

I added the error_reporting line and it doesn't seem to make any difference
actually. No warnings or notices. Yes, I can recompile PHP.

Damon

"Greg Beaver" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]

Hi,

if you append ?test=foo to the url you supplied, it will print "foo" -
register_globals is definitely on, perhaps you could add this to the
start of the file:

ini_set('error_reporting', E_ALL);

so we can see the result?  You should also be seeing a notice of an
undefined variable.  It's possible you've found a bug, maybe one of the
many extensions you have loaded enables register_globals - do you have
access to recompile php?

Greg

Damon Kohler wrote:


Don't know anything about an auto_prepend_file. There is no .htaccess

file.


Beside, phpinfo says register_globals is off both globaly and localy.

Damon

"Greg Beaver" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]


Hi Damon,

Do you have an auto_prepend_file?  Also, check the contents of
.htaccess, make sure register_globals is not set to on there.

Greg

Damon Kohler wrote:


Well, it does turn off. At least phpinfo() says that it's off. However,

PHP



is acting as though it's still turned on. The source code for the page

I'm



using to test this odd result is:

<html>
<head>
</head>
<body>
<form action="<?=$_SERVER['PHP_SELF']?>" method="post">
<input name="test">
<input type="submit">
</form>
</body>
</html>
<?php

print $test;

phpinfo();
?>

I'm running PHP 4.3.3 on RH7. When the form is submited, the value is
printed despite the fact it's printing $test and not $_POST['test'].

This is



copy pasted from the results:

    register_argc_argv Off Off
    register_globals Off Off


I'm completely stumped.


Thanks in advance,
Damon


--- End Message ---
--- Begin Message ---
Ok. I'll get around to that sometime. But I think to start, I'll use that
code from php|a that unregisters globals and such. Guess that is a smart
thing to do. Never know when it's gonna fail like that.

Thanks for your help all,
Damon

"Greg Beaver" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
>
> I would try recompiling PHP with the bare minimum, and see if you can
> reproduce the behavior.  If not, then add in extensions one by one.  If
> you still see the behavior, modify a value in php.ini, and make sure you
> see it show up in phpinfo() (don't forget to restart Apache).  If
> changes don't show up, it's reading a different php.ini, which can be a
> bit loopy.
>
> Greg
>
> Damon Kohler wrote:
>
> > I added the error_reporting line and it doesn't seem to make any
difference
> > actually. No warnings or notices. Yes, I can recompile PHP.
> >
> > Damon
> >
> > "Greg Beaver" <[EMAIL PROTECTED]> wrote in message
> > news:[EMAIL PROTECTED]
> >
> >>Hi,
> >>
> >>if you append ?test=foo to the url you supplied, it will print "foo" -
> >>register_globals is definitely on, perhaps you could add this to the
> >>start of the file:
> >>
> >>ini_set('error_reporting', E_ALL);
> >>
> >>so we can see the result?  You should also be seeing a notice of an
> >>undefined variable.  It's possible you've found a bug, maybe one of the
> >>many extensions you have loaded enables register_globals - do you have
> >>access to recompile php?
> >>
> >>Greg
> >>
> >>Damon Kohler wrote:
> >>
> >>
> >>>Don't know anything about an auto_prepend_file. There is no .htaccess
> >
> > file.
> >
> >>>Beside, phpinfo says register_globals is off both globaly and localy.
> >>>
> >>>Damon
> >>>
> >>>"Greg Beaver" <[EMAIL PROTECTED]> wrote in message
> >>>news:[EMAIL PROTECTED]
> >>>
> >>>
> >>>>Hi Damon,
> >>>>
> >>>>Do you have an auto_prepend_file?  Also, check the contents of
> >>>>.htaccess, make sure register_globals is not set to on there.
> >>>>
> >>>>Greg
> >>>>
> >>>>Damon Kohler wrote:
> >>>>
> >>>>
> >>>>>Well, it does turn off. At least phpinfo() says that it's off.
However,
> >>>
> >>>PHP
> >>>
> >>>
> >>>>>is acting as though it's still turned on. The source code for the
page
> >>>
> >>>I'm
> >>>
> >>>
> >>>>>using to test this odd result is:
> >>>>>
> >>>>><html>
> >>>>><head>
> >>>>></head>
> >>>>><body>
> >>>>><form action="<?=$_SERVER['PHP_SELF']?>" method="post">
> >>>>><input name="test">
> >>>>><input type="submit">
> >>>>></form>
> >>>>></body>
> >>>>></html>
> >>>>><?php
> >>>>>
> >>>>>print $test;
> >>>>>
> >>>>>phpinfo();
> >>>>>?>
> >>>>>
> >>>>>I'm running PHP 4.3.3 on RH7. When the form is submited, the value is
> >>>>>printed despite the fact it's printing $test and not $_POST['test'].
> >>>
> >>>This is
> >>>
> >>>
> >>>>>copy pasted from the results:
> >>>>>
> >>>>>     register_argc_argv Off Off
> >>>>>     register_globals Off Off
> >>>>>
> >>>>>
> >>>>>I'm completely stumped.
> >>>>>
> >>>>>Thanks in advance,
> >>>>>Damon
>

--- End Message ---
--- Begin Message ---
On Sat, 27 Sep 2003 20:05:10 -0400
"Damon Kohler" <[EMAIL PROTECTED]> wrote:

> Well, it does turn off. At least phpinfo() says that it's off.
> However, PHP is acting as though it's still turned on. The source
> code for the page I'm using to test this odd result is:
> 
<snip>
> 
> I'm running PHP 4.3.3 on RH7. When the form is submited, the value
> is printed despite the fact it's printing $test and not
> $_POST['test']. This is copy pasted from the results:
> 
>       register_argc_argv Off Off
>       register_globals Off Off
> 
> 
> I'm completely stumped.
> 
> Thanks in advance,
> Damon

Did you reload your http server?

--
Raquel
============================================================
If our words are not consistent with our actions, they will never be
heard above the thunder of our deeds.
  --H. Burke Peterson

--
Raquel
============================================================
If our words are not consistent with our actions, they will never be
heard above the thunder of our deeds.
  --H. Burke Peterson

--- End Message ---
--- Begin Message ---
Hi All

I'm having a problem using the mail() function of PHP. It seems to vary
between platforms (ie. this problem doesn't not occur on my Win32
development platform, but does on my Linux production server).

I'm sending mail using the mail() function and including a "From:" and
"Reply-To:" header.

Usually this is sufficient to ensure that receipients will see that the
mail is from the desired address I included in the From: header.

However on my Linux server (PHP 4.3.2/Sendmail 8.11.6), something is
automatically adding a "Sender: " field which is populated with the
address of the apache user
([EMAIL PROTECTED]) -- so this appears to the e-mail recipient as
From: [EMAIL PROTECTED] ON BEHALF OF [the name/address i specified in
From]

Any idea what is causing this, and how I might be able to disable it?

Adam

--- End Message ---
--- Begin Message ---
On Sunday 28 September 2003 14:26, Adam Whitehead wrote:


> I'm having a problem using the mail() function of PHP. It seems to vary
> between platforms (ie. this problem doesn't not occur on my Win32
> development platform, but does on my Linux production server).
>
> I'm sending mail using the mail() function and including a "From:" and
> "Reply-To:" header.
>
> Usually this is sufficient to ensure that receipients will see that the
> mail is from the desired address I included in the From: header.
>
> However on my Linux server (PHP 4.3.2/Sendmail 8.11.6), something is
> automatically adding a "Sender: " field which is populated with the
> address of the apache user
> ([EMAIL PROTECTED]) -- so this appears to the e-mail recipient as
> From: [EMAIL PROTECTED] ON BEHALF OF [the name/address i specified in
> From]
>
> Any idea what is causing this, and how I might be able to disable it?

manual > mail() > example 3

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
The nozzle behind the sprayer tank will be the first one to plug 
                -- The Law of Inverse Visibility
*/

--- End Message ---
--- Begin Message --- Use a class that sends mail by conecting directly to smtp server. For example smtp_message.php in www.phpclasses.org/mimemessage

Adam Whitehead wrote:
Hi All

I'm having a problem using the mail() function of PHP. It seems to vary
between platforms (ie. this problem doesn't not occur on my Win32
development platform, but does on my Linux production server).

I'm sending mail using the mail() function and including a "From:" and
"Reply-To:" header.

Usually this is sufficient to ensure that receipients will see that the
mail is from the desired address I included in the From: header.

However on my Linux server (PHP 4.3.2/Sendmail 8.11.6), something is
automatically adding a "Sender: " field which is populated with the
address of the apache user
([EMAIL PROTECTED]) -- so this appears to the e-mail recipient as
From: [EMAIL PROTECTED] ON BEHALF OF [the name/address i specified in
From]

Any idea what is causing this, and how I might be able to disable it?

Adam



--- End Message ---
--- Begin Message ---
I found this function, setlocale...

now, is there a way to GET the LOCALE setting of a machine?

Walter

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

Sunday, September 28, 2003, 5:39:53 PM, you wrote:
j> I found this function, setlocale...

j> now, is there a way to GET the LOCALE setting of a machine?

j> Walter


call setlocale with 0 (zero or NULL) as the second parameter and it returns the 
current setting

-- 
regards,
Tom

--- End Message ---
--- Begin Message ---
i cant get this $latnum2 = $_REQUEST['nummer'];  to work either,

when i use this i dont get anything in $latnum2;

regards
patrick

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

Sunday, September 28, 2003, 9:32:45 PM, you wrote:
PF> i cant get this $latnum2 = $_REQUEST['nummer'];  to work either,

PF> when i use this i dont get anything in $latnum2;

PF> regards
PF> patrick
You will have to do a page refresh to pass the typed in info back to php which
is running on the server. Split it into 2 pages and change the first href to

<go href="nameOfPage.php?nummer=$(nummer)"/>

Then on the second page it will show up as $_REQUEST['nummer'}

I think you are trying to do too much in one go :)

-- 
regards,
Tom

--- End Message ---
--- Begin Message ---
Hello,

I want to use an image as submit button on my form. Now I use the following
code with button:

  if (!(isset($_Post['SubmitForm'])))
  {
    .......
    .....
     <input type="submit" name="SubmitForm" value="Submit">
    }
else
{
    .....
}

Is it possible to change the Submit button with an image?

Thanks!

--- End Message ---

Reply via email to