Hi,
Could someone explain what the following passage in php.ini means:
You should do your best to write your scripts so that they do not require
; register_globals to be on; Using form variables as globals can easily
lead
; to possible security problems, if the code is not very well thought
Hi,
What was so difficult about implementing my last post?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
Hi,
Go post your globals question at the php forum at www.devshed.com . You
will usually get extremely quick responses to questions about php.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To
Hi,
The default php setting is with track vars on, and register globals on I
believe. I have never tried anything else. I turned globals off to see if
I could help you with your problem. If you check the manual, they do not
put much explanation into how to use sessions with globals off
Also, you are registering a variable rather than a name. So, unless there
is a quoted name for the variable value, I don't think that would work. For
instance,
$a="b"
session_register($a);
actually registers a variable called $b. I made that mistake in my post
too.
--
PHP General Mailing
Hi,
That code causes php to crash. I have never had that happen before. Every
time I try to run that script, I am given an internal server warning.
""Johnson, Kirk"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Try a
Hi,
Just to explain a point on my previous post:
If at the top of your page that processes the registration info, you
include:
session_start();
session_register("is_registered");
is_registered="yes";
and then use this test:
if($PHPSESSID)
{
warning, redirect to login
Hi,
All the session functions check to see if you have a session running first
before starting a session, to prevent you from starting two sessions by
accident. If for some reason you want to start another session, you can do
that by supplying your own session id to the function session_start
Hi,
The php manual at: http://www.php.net/manual/en/ref.session.php
says:
"If track_vars is enabled and register_globals is disabled, only members of
the global associative array $HTTP_SESSION_VARS can be registered as session
variables. "
so, did you try this:
sessio
WRONG!!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
Don't even bother with that previous answer. You have what you want to
write in a string, $new. Read the file and put that into another string,
$previous. Then concatenate the strings with the "." operator:
$previous=$new . $previous
and write $previous to the file.
--
PHP General Mailin
AS SEEN ON NATIONAL TV:
Making over half million dollars every 4 to 5 months from your home for
an investment of only $25 U.S. Dollars expense one time
THANK'S TO THE COMPUTER AGE AND THE INTERNET !
==
BE A MILLIONAIRE LIKE OTHERS WITHIN A YEAR
12 matches
Mail list logo