Contact Form Message

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

briofoz
New php-forum User
New php-forum User
Posts: 2
Joined: Wed Jul 10, 2013 7:29 am

Contact Form Message

Postby briofoz » Wed Jul 10, 2013 7:56 am

I receive this message when I send a contact form...

"register globals may be on, please switch this setting off (look at php.net for details, specifically the ini_set() function )"

Not sure if I am allowed to post link. This site is 5 yo and i have been tasked to fix it. It is using an old Secure Contact Form Script (FREE Version)

I know to solve it you will need more info...but what info?

johnj
php-forum Super User
php-forum Super User
Posts: 1805
Joined: Thu Mar 10, 2011 5:07 pm

Re: Contact Form Message

Postby johnj » Thu Jul 11, 2013 6:30 am

open your php.ini file and switch the register gloabls to off. register globals opens a lot of security holes and that is why it is wise to turn it off.

briofoz
New php-forum User
New php-forum User
Posts: 2
Joined: Wed Jul 10, 2013 7:29 am

Re: Contact Form Message

Postby briofoz » Fri Jul 12, 2013 1:32 am

Thanks Johnj, but where is it switched? In PHP Myadmin or elsewhere?

johnj
php-forum Super User
php-forum Super User
Posts: 1805
Joined: Thu Mar 10, 2011 5:07 pm

Re: Contact Form Message

Postby johnj » Sat Jul 13, 2013 5:58 am

In your php.ini file (provided you have permission to edit it). Please read about php.ini.

If my understanding is correct then register_globals cannot be set at runtime (ini_set())

Some people say that it(register global variable) can be set using .htaccess file though I haven't tried it.


Return to “PHP coding => General”

Who is online

Users browsing this forum: No registered users and 3 guests