<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>NewSourceMedia Blog &#187; Setup / Config</title>
	<atom:link href="http://newsourcemedia.com/blog/category/php/settup-config/feed/" rel="self" type="application/rss+xml" />
	<link>http://newsourcemedia.com/blog</link>
	<description>Focused on Interactive Design, Development and Marketing</description>
	<lastBuildDate>Mon, 07 May 2012 01:26:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Register_Globals workaround for config on or off</title>
		<link>http://newsourcemedia.com/blog/register_globals-workaround-for-config-on-or-off/</link>
		<comments>http://newsourcemedia.com/blog/register_globals-workaround-for-config-on-or-off/#comments</comments>
		<pubDate>Sat, 16 Feb 2008 00:22:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Setup / Config]]></category>
		<category><![CDATA[off]]></category>
		<category><![CDATA[on]]></category>
		<category><![CDATA[php php.ini config]]></category>
		<category><![CDATA[register globals]]></category>
		<category><![CDATA[register_globales]]></category>
		<category><![CDATA[set]]></category>

		<guid isPermaLink="false">http://newsourcemedia.com/blog/2008/02/15/register_globals-workaround-for-config-on-or-off/</guid>
		<description><![CDATA[how to turn Register_Globals on or off from the config file. Option 1 - PHP Config File: First place to look is to open up the php config file on your root server and find the line register_globals and set &#8230; <a href="http://newsourcemedia.com/blog/register_globals-workaround-for-config-on-or-off/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[how to turn Register_Globals  on or off from the config file.
<span id="more-156"></span>

Option 1 - PHP Config File:
First place to look is to open up the php config file on your root server and find the line register_globals and set it to "on" or "off". Some may want you to set it to "0" or "1".

Option 2 - php.ini File:
If you do not have access to your php config file (most people using shared servers will not have access), you may be able to us a "php.ini" file on any public directory (like under /public_html/). There you will be able to set register_globals on or off to that directory, including all sub-directories. Once you've created the file using the name "php.ini" just type "<span class="code">register_globals = on</span>" in the file and upload that to your server.

Option 3 - .htaccess File:
If the above does not work, just use the .htaccess file  and type the following:
<p class="code">#Turn off register_globals
php_value register_globals 0

or
<p class="code">#Turn on register globals
php_value register_globals 1

If all else fails, just do this at the begining of your code:
<p class="code">while(list($k,$v)=each($_POST)){
$$k=$v; //Yes, that's two dollar signs
}

This will set all post data (if you want to use $_GET, just subsatute <span class="code">$_POST</span> to <span class="code">$_GET</span>) as a variable so your code now can read all the data passed to it via Post or Get.

That's it.]]></content:encoded>
			<wfw:commentRss>http://newsourcemedia.com/blog/register_globals-workaround-for-config-on-or-off/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
