Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
how do I change php.ini to set register_globals = off?
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- how do I change php.ini to set register_globals = ...
how do I change php.ini to set register_globals = off?
05-03-2014 7:55 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I know, I know, if I have to ask a question like this I probably shouldn't be playing with CGI stuff but even so, humour me...
When I first tried to install zenphoto (an image gallery) I was told:
Error!
PHP Register globals presents a security risk to any PHP application. See Using Register Globals. Change your PHP.ini settings to register_globals = off. Click here to acknowledge that you wish to ignore this issue. It will then become a warning.
So as requested I clicked here to acknowledge the issue. The installer then finished and I have a working zenphoto gallery. However, it seems prudent to revisit the cause of the warning and actually fix the issue but I don't know where to start.
Any suggestions please, preferably in Dummies Guide type language.
Thanks,
stuck
When I first tried to install zenphoto (an image gallery) I was told:
Error!
PHP Register globals presents a security risk to any PHP application. See Using Register Globals. Change your PHP.ini settings to register_globals = off. Click here to acknowledge that you wish to ignore this issue. It will then become a warning.
So as requested I clicked here to acknowledge the issue. The installer then finished and I have a working zenphoto gallery. However, it seems prudent to revisit the cause of the warning and actually fix the issue but I don't know where to start.
Any suggestions please, preferably in Dummies Guide type language.
Thanks,
stuck
Message 1 of 3
(1,309 Views)
2 REPLIES 2
Re: how do I change php.ini to set register_globals = off?
05-03-2014 8:20 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
User php.ini files are not supported on the new server. To turn off register_globals and magic_quotes_gpc you need to add the following lines to .htaccess in /public. The third line provides a suitable default timezone setting to keep PHP happy.
David
php_flag magic_quotes_gpc 0
php_flag register_globals 0
php_value date.timezone 'Europe/London'
David
David
Message 2 of 3
(367 Views)
Re: how do I change php.ini to set register_globals = off?
07-03-2014 7:07 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Quote from: spraxyt ...add the following lines to .htaccess in /public.
Ta, that seems to have done the trick.
stuck
Message 3 of 3
(367 Views)
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- how do I change php.ini to set register_globals = ...