Reply to Re: What's changed between version 4.2.2 and 4.3.4 regarding POSTing?

Your name:

Reply:


Posted by Matthew Weier O'Phinney on 04/28/05 04:00

* mwestern@sola.com.au <mwestern@sola.com.au>:
> I've used the simple password script in the past to password protect
> pages with a session. http://www.phpbuddy.com/article.php?id=23
> Now that I have installed Fedora Core 2 and 3 the new version of php
> (4.3.4) doesn't like this script any more.
>
> Any ideas why?

Yes. It's using the global arrays HTTP_POST_VARS and HTTP_SESSION_VARS
arrays, and 4.3.x has the directive register_globals set to off by
default. It's safer to leave it off. You can easily update the script by
replacing these with $_POST and $_SESSION, respectively.

--
Matthew Weier O'Phinney | WEBSITES:
Webmaster and IT Specialist | http://www.garden.org
National Gardening Association | http://www.kidsgardening.com
802-863-5251 x156 | http://nationalgardenmonth.org
mailto:matthew@garden.org | http://vermontbotanical.org

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация