php register_globals

  • UniquelyYoursPC
  • Web Master
  • Web Master
  • User avatar
  • Posts: 2997
  • Loc: Canada "A"

Post 3+ Months Ago

You are running an insecure setup with register_globals set to ON. PHP
how do i turn them off?
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • this213
  • Guru
  • Guru
  • User avatar
  • Posts: 1260
  • Loc: ./

Post 3+ Months Ago

set
register_globals = Off
in your php.ini file
  • UniquelyYoursPC
  • Web Master
  • Web Master
  • User avatar
  • Posts: 2997
  • Loc: Canada "A"

Post 3+ Months Ago

were would that be?
  • this213
  • Guru
  • Guru
  • User avatar
  • Posts: 1260
  • Loc: ./

Post 3+ Months Ago

In *nix it's probably in /etc/
In Windows it's probably Windows/ or WINNT/ (depending on what version)

these could be different depending on how PHP was installed

*edit*
on windows you can Start>Search>For Files And FOlders and type in php.ini

on *nix, do:
locate php.ini
from a command line
  • UniquelyYoursPC
  • Web Master
  • Web Master
  • User avatar
  • Posts: 2997
  • Loc: Canada "A"

Post 3+ Months Ago

found it thanks
  • UniquelyYoursPC
  • Web Master
  • Web Master
  • User avatar
  • Posts: 2997
  • Loc: Canada "A"

Post 3+ Months Ago

ok it was there before and now it ig gone were eles would it be?
  • this213
  • Guru
  • Guru
  • User avatar
  • Posts: 1260
  • Loc: ./

Post 3+ Months Ago

what operating system?
  • veedee
  • Graduate
  • Graduate
  • User avatar
  • Posts: 110

Post 3+ Months Ago

You dropped it below the table..... :lol:
Just.. kidding.
  • UniquelyYoursPC
  • Web Master
  • Web Master
  • User avatar
  • Posts: 2997
  • Loc: Canada "A"

Post 3+ Months Ago

apctche
  • this213
  • Guru
  • Guru
  • User avatar
  • Posts: 1260
  • Loc: ./

Post 3+ Months Ago

Apache is your web server, is your operating system Windows, *nix, or (dare I say it?) Mac - does Apache even run on Mac? I would think so being OS X is Linux based (from what I hear - I don't work with them)
  • MatB
  • Newbie
  • Newbie
  • User avatar
  • Posts: 6

Post 3+ Months Ago

If you're on a Mac, the file is "php.ini.default" and is located in the /etc/directory on your system disc (or /private/etc/).
By default, this directory is hidden, but you can easily turn it visible with a tool such as TinkerTool: http://www.bresink.de/osx/TinkerTool.html
(Check: "Show hidden and system files" in the Finder tab, and relaunch finder)

Btw, Mac is Unix based and comes with Apache.
For anyone who cares to stay informed:
http://www.apple.com/macosx/features/unix/
http://www.apple.com/macosx/features/websharing/

:wink:
  • this213
  • Guru
  • Guru
  • User avatar
  • Posts: 1260
  • Loc: ./

Post 3+ Months Ago

Thanks for the info MatB
  • MatB
  • Newbie
  • Newbie
  • User avatar
  • Posts: 6

Post 3+ Months Ago

You're very welcome :)

Post Information

  • Total Posts in this topic: 13 posts
  • Users browsing this forum: No registered users and 78 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.