It is deprecated as it creates a massive security hole. However, all
you have to do is change the setting in your php.ini file. Set
register_globals=On. That's all. However, for all code you write from
now on you should use $_POST, $_GET and the like.
Read this article.
I'm not actually running PostgreSQL so it's setup could be different
that MySQL. But if you want to install PHP with MySQL support and the
database isn't running locally you just do '--with-mysql' in the
configure statement. It'll give you a warning saying that its not
suggested to do this, but
As Joni said you need to read about the GRANT functions in the MySQL
manual. But basically here's what's happening.
Each person your hosting has a specific login/pass into the database.
When they login MySQL looks in the 'MySQL' database and checks the users
privileges. By default Ensim sets
...listen to Ramsus =)
~Matthew
-Original Message-
From: Brian Noecker [mailto:[EMAIL PROTECTED]]
Sent: Saturday, August 17, 2002 9:08 PM
To: '[EMAIL PROTECTED]'
Subject: [PHP-DB] installing to connect to a remote database server
Newbie here.
I need to install php with postgres
What's your current website? Why do you think you need one?
~MET
-Original Message-
From: Leif K-Brooks [mailto:[EMAIL PROTECTED]]
Sent: Saturday, August 17, 2002 3:28 PM
To: [EMAIL PROTECTED]
Subject: [PHP-DB] Database abstraction layer needed?
I'm redoing my web site, and I'm
Don't forget to make register_globals equal to on instead of off. Well,
actually this is just a security/preference issue.
Prior to PHP 4.2.0 globals were default to on, but now they're default
to off meaning that you have to use _GET['query_string_value'] instead
of just $query_string_value.
I'm getting some massive errors on some pretty simple code. Included
are the errors as well as the PHP function that is giving me issues.
Any help would be greatly appreciated. And the weirdest thing, is that
the code used to work ??
Line 267 is equal to this PHP line:
...slightly in regards to my last email.
I have a database query which requires a variable (
$USER[$id][cbannerID] ) to be equal to the ID of the current banner
being viewed. If you've come to the page for the first time my script
gives that variable a default value of -1 .