You are here: Re: [PHP] php 5.04 register_globals aint acting right. « PHP « IT news, forums, messages
Re: [PHP] php 5.04 register_globals aint acting right.

Posted by Jochem Maas on 08/17/05 15:21

Daniel Baughman wrote:
> Its simply a Boolean to indicate whether or not a query should be ran and
> displayed, and further more its for a small intranet.
>
> Register_globals is the directive I meant to say. But your right about
> globals. Some applications haven't made that change yet... So unless I want
> to rewrite them (which is time consuming if you didn't originally write the
> thing) I need to enable it.


stick this in a auto_prepend_file (or at the top of a global include:

<?

extract($_REQUEST);

?>

crude, but not exactly a rewrite.

>
> I have the directive in my php.ini, which is defaulted to the %systemdir% in
> windows... But it certainly isn't registering them... I can easily write an
> include and stick in to mimic the behaviour.. but was wondering if anyone
> else ran into these issues.

probably the php.ini you are editing is not the same as the file php is using
to determine its config.

>
> -----Original Message-----
> From: Jochem Maas [mailto:jochem@iamjochem.com]
> Sent: Tuesday, August 16, 2005 7:27 AM
> To: Daniel Baughman
> Cc: php-general@lists.php.net
> Subject: Re: [PHP] php 5.04 register_globals aint acting right.
>
>
> Daniel Baughman wrote:
>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> I have register globals enabled, or set to "On". Isn't this suppose to
>>take all of the $_POST variables and $_GET variables and make initialize
>>them by name?
>
>
> register_globals should do that. but not "register globals",
> regardless is a shitty setting. don't use it. besides its depreciated
> just use $_POST['whatever']
>
>
>>i.e. $_POST['runquery'] will be accessible via simply $runquery
>
>
> looks like you are stuffing SQL into a GET/POST param - sure you want to do
> that?
>
>
>
>
>>??
>>
>>
>>Dan Baughman
>>IT Technician
>>Professional Bull Riders, Inc.
>>719-471-3008 x 3161
>>
>>CONFIDENTIAL, FOR DESIGNATED RECIPIENTS ONLY: The preceding e-mail
>
> message
>
>>(including any attachments) contains information that may be confidential,
>>privileged, or non-public information. It is intended to be conveyed only
>
> to
>
>>the designated recipient(s) named above. If you are not an intended
>>recipient, please notify the sender by replying to this message and then
>>delete all copies of it from your computer system. Any use, dissemination,
>>distribution, or reproduction of this message by unintended recipients is
>>not authorized and may be unlawful. DISCLAIMER OF ELECTRONIC TRANSACTION:
>
>
>>This communication does not reflect an intention by the sender to conduct
>
> a
>
>>transaction or make any agreement by electronic means. Nothing contained
>>herein shall constitute an electronic signature or a contract under any
>
> law,
>
>>rule or regulation applicable to electronic transactions.
>>
>>
>>
>
>

 

Navigation:

[Reply to this 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

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