|
|
 |
RE: FN-FORUM php question
date posted 8th December 2002 23:38
If it is off you can turn it on by changing the php.ini file or via an
.htaccess file.
You can in theory also turn it on via the script itself but by the time
the script actions that request it is too late!.
However.
Ensure that it is turned off and keep it off. If you are learning PHP
get used to it being off, it is safer and better that way and it is
possible that future versions will not allow it to be turned on at all.
If however you are installing existing software then you may have to
turn it on.
BTW: If learning PHP then any book written for a version of PHP 4.2.0 or
below will not be entirely correct for current versions, a common
example is that they often tell you to use commands like
session_register whereas with register_globals being off you should
never use that particular command (according to the latest version of
the manual). So treat sections regarding autoglobals like POST, GET,
SESSION and COOKIE variables with care.
Regards
---
www.galcomp.net - Full Featured Web hosting
www.cvdb.info - Free CV storage and autoresponder
-----Original Message-----
From: [EMAIL REMOVED]
[EMAIL REMOVED] On Behalf Of Darren Beale
Sent: 08 December 2002 22:16
To: [EMAIL REMOVED]
Subject: Re: FN-FORUM php question
> PHP 4.2.3 is installed on the server so I should use $_POST then for
> collecting the data.
Almost certainly yes although FYI create a one liner page, put the
following in it
You'll get lots of useful environment info, and find out if register
globals is actually turned on or not.
;D
--
Darren Beale - Acksys Ltd
Office: 020 8530 1454
Fax: 07092 394822
Mobile: 07711 716197
http://www.acksys.co.uk
* i just made that up
========
Advertise with Freelancers.net +Additions+
http://www.freelancers.net/advert.php
Freelancers and Freelance Jobs:
http://www.freelancers.net
Forum FAQs:
http://freelancers.netrickery.com
To unsubscribe please email:
[EMAIL REMOVED]
If you have difficulties unsubscribing please email:
[EMAIL REMOVED]
|
 |
|