Setting up a .htaccess file
If you want to continue using global variables, you will need to create a
.htaccess file in your site's main directory (or the main directory of your
site that contains PHP scripts). Your .htaccess file should contain the
following line:
php_flag register_globals on
We recommend that you create the .htaccess file by logging into your site
with SecureCRT, Nifty Telnet, or another telnet application and using a Unix
editor (such as pico, jove, vi, or emacs). Windows and Macintosh editors
often insert special characters that may corrupt the .htaccess file and make
your site unreachable.
Setting up a .htaccess file for testing
If you want to test your site with the register_globals setting off, you
will need to create a .htaccess file in your site's main directory (or the
main directory of your site that contains PHP scripts). Your .htaccess file
should contain the following line:
php_flag register_globals off
We recommend that you create the .htaccess file by logging into your site
with SecureCRT, Nifty Telnet, or another telnet application and using a Unix
editor (such as pico, jove, vi, or emacs). Windows and Macintosh editors
often insert special characters that may corrupt the .htaccess file and make
your site unreachable.
----- Original Message -----
From: "Willy Sudiarto Raharjo" <[EMAIL PROTECTED]>
To: <tanya-jawab@linux.or.id>
Sent: Thursday, June 22, 2006 8:30 AM
Subject: Re: [tanya-jawab] Register_globals Off
Aku bikin website dengan asumsi register_globals-nya php on.
Namun ketika aku upload ke server (web hosting), ternyata
ketahuan register_globals-nya php off.
Tentunya aku nggak bisa ganti settingan php ini,
karena bukan yang punya server.
Ada solusi yang gampang nggak,
tanpa harus ganti form method-nya
sehingga nggak edit satu per satu filenya ?
Yang cepat da mudah gitu.
Paling aman emang bikin code dengan asumsi register_global off, jadi tidak
peduli statusnya on atau off, pasti bisa jalan
--
Willy Sudiarto Raharjo
Registered Linux User : 336579
Web : http://www.informatix.or.id/willy/
Blog : http://willysr.blogspot.com
--
FAQ milis di http://wiki.linux.or.id/FAQ_milis_tanya-jawab
Unsubscribe: kirim email ke [EMAIL PROTECTED]
Arsip dan info milis selengkapnya di http://linux.or.id/milis
--
FAQ milis di http://wiki.linux.or.id/FAQ_milis_tanya-jawab
Unsubscribe: kirim email ke [EMAIL PROTECTED]
Arsip dan info milis selengkapnya di http://linux.or.id/milis