<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: What are apikey.php and db_credentials.php?</title>
	<link>http://googlemapsbook.com/2006/10/19/api-key-db-credentials/</link>
	<description>with PHP or Rails and AJAX: From Novice to Professional</description>
	<pubDate>Sun, 07 Sep 2008 17:12:12 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.3</generator>
		<item>
		<title>By: Cam</title>
		<link>http://googlemapsbook.com/2006/10/19/api-key-db-credentials/#comment-12240</link>
		<dc:creator>Cam</dc:creator>
		<pubDate>Mon, 03 Sep 2007 12:15:51 +0000</pubDate>
		<guid>http://googlemapsbook.com/2006/10/19/api-key-db-credentials/#comment-12240</guid>
		<description>Hi Kevin,

The fourth line is the one defining $db_db (the database name for the MySQL database). However, most of our code has a hard coded value instead of this paramter for this -- which was an oversight in the rush to publish. 

Also there is no image above. It's a code listing with CSS styling. The code is in there for you to see, maybe your browser is doing something silly to cause you to not see the 4th line?

Cam</description>
		<content:encoded><![CDATA[<p>Hi Kevin,</p>
<p>The fourth line is the one defining $db_db (the database name for the MySQL database). However, most of our code has a hard coded value instead of this paramter for this &#8212; which was an oversight in the rush to publish. </p>
<p>Also there is no image above. It&#8217;s a code listing with CSS styling. The code is in there for you to see, maybe your browser is doing something silly to cause you to not see the 4th line?</p>
<p>Cam</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin</title>
		<link>http://googlemapsbook.com/2006/10/19/api-key-db-credentials/#comment-11999</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Wed, 29 Aug 2007 17:46:36 +0000</pubDate>
		<guid>http://googlemapsbook.com/2006/10/19/api-key-db-credentials/#comment-11999</guid>
		<description>What is the fourth line of db_credentials.php script?

This line is missing from the image you pasted above. Please let us know or correct that above image.

Thank you very much,

Kevin.</description>
		<content:encoded><![CDATA[<p>What is the fourth line of db_credentials.php script?</p>
<p>This line is missing from the image you pasted above. Please let us know or correct that above image.</p>
<p>Thank you very much,</p>
<p>Kevin.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://googlemapsbook.com/2006/10/19/api-key-db-credentials/#comment-4242</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Wed, 07 Mar 2007 00:06:34 +0000</pubDate>
		<guid>http://googlemapsbook.com/2006/10/19/api-key-db-credentials/#comment-4242</guid>
		<description>Hi,

I had a little different problem getting this to work, partly because I'm new to PHP and partly because I'm running under IIS.

I had to change the syntax of the URL in listing 2-2 from this
"key="

...to this:
"key="

Also, when including the apikey.php file, IIS didn't know what DOCUMENT_ROOT was, so I had to use a different path.

Just thought I'd pass along what I'd learned in case someone else encounters the problems I did.

-Matt</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I had a little different problem getting this to work, partly because I&#8217;m new to PHP and partly because I&#8217;m running under IIS.</p>
<p>I had to change the syntax of the URL in listing 2-2 from this<br />
&#8220;key=&#8221;</p>
<p>&#8230;to this:<br />
&#8220;key=&#8221;</p>
<p>Also, when including the apikey.php file, IIS didn&#8217;t know what DOCUMENT_ROOT was, so I had to use a different path.</p>
<p>Just thought I&#8217;d pass along what I&#8217;d learned in case someone else encounters the problems I did.</p>
<p>-Matt</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://googlemapsbook.com/2006/10/19/api-key-db-credentials/#comment-4241</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Wed, 07 Mar 2007 00:05:09 +0000</pubDate>
		<guid>http://googlemapsbook.com/2006/10/19/api-key-db-credentials/#comment-4241</guid>
		<description>Hi,

I had a little different problem getting this to work, partly because I'm new to PHP and partly because I'm running under IIS.

I had to change the syntax of the URL in listing 2-2 from this
key=

...to this:
key=

Also, when including the apikey.php file, IIS didn't know what DOCUMENT_ROOT was, so I had to use a different path.

Just thought I'd pass along what I'd learned in case someone else encounters the problems I did.

-Matt</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I had a little different problem getting this to work, partly because I&#8217;m new to PHP and partly because I&#8217;m running under IIS.</p>
<p>I had to change the syntax of the URL in listing 2-2 from this<br />
key=</p>
<p>&#8230;to this:<br />
key=</p>
<p>Also, when including the apikey.php file, IIS didn&#8217;t know what DOCUMENT_ROOT was, so I had to use a different path.</p>
<p>Just thought I&#8217;d pass along what I&#8217;d learned in case someone else encounters the problems I did.</p>
<p>-Matt</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cam</title>
		<link>http://googlemapsbook.com/2006/10/19/api-key-db-credentials/#comment-120</link>
		<dc:creator>Cam</dc:creator>
		<pubDate>Wed, 01 Nov 2006 13:57:27 +0000</pubDate>
		<guid>http://googlemapsbook.com/2006/10/19/api-key-db-credentials/#comment-120</guid>
		<description>Hi Remco,

Before I answer your questions, your comment led me to find a mistake in my post. I had incorrectly stated that apikey.php contained a single variable declaration of $apikey. I missed the underscore. It should have been $api_key and is now corrected above.

Your questions:
1) The complete apikey.php file is the single line of code from above plus the PHP enclosures &#60;?PHP and ?&#62; at the start and end of the file respectively.

2) $_SERVER is a super global and is created by PHP at the start of your script. It is pre-populated with various server related information like which operating system and web server software PHP is running under. It also contains the full path to the start of your web document root relative to the start of the web server's file system. This array element is called 'DOCUMENT_ROOT' and does not need to be changed. It should work in all cases.

I hope this helps.</description>
		<content:encoded><![CDATA[<p>Hi Remco,</p>
<p>Before I answer your questions, your comment led me to find a mistake in my post. I had incorrectly stated that apikey.php contained a single variable declaration of $apikey. I missed the underscore. It should have been $api_key and is now corrected above.</p>
<p>Your questions:<br />
1) The complete apikey.php file is the single line of code from above plus the PHP enclosures &lt;?PHP and ?&gt; at the start and end of the file respectively.</p>
<p>2) $_SERVER is a super global and is created by PHP at the start of your script. It is pre-populated with various server related information like which operating system and web server software PHP is running under. It also contains the full path to the start of your web document root relative to the start of the web server&#8217;s file system. This array element is called &#8216;DOCUMENT_ROOT&#8217; and does not need to be changed. It should work in all cases.</p>
<p>I hope this helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Remco</title>
		<link>http://googlemapsbook.com/2006/10/19/api-key-db-credentials/#comment-117</link>
		<dc:creator>Remco</dc:creator>
		<pubDate>Tue, 31 Oct 2006 18:30:56 +0000</pubDate>
		<guid>http://googlemapsbook.com/2006/10/19/api-key-db-credentials/#comment-117</guid>
		<description>Hi all, Im reading your book, and I'm trying to make sense of your explanation of the use the apikey.php. Im sorry to say, but I dont understand it. 

Two questions: 
1) what does the complete code of the apikey.php look like?
2) how does this $_SERVER['DOCUMENT_ROOT'] thing work? Do I have to edit it?

Thanks in advance.</description>
		<content:encoded><![CDATA[<p>Hi all, Im reading your book, and I&#8217;m trying to make sense of your explanation of the use the apikey.php. Im sorry to say, but I dont understand it. </p>
<p>Two questions:<br />
1) what does the complete code of the apikey.php look like?<br />
2) how does this $_SERVER[&#8217;DOCUMENT_ROOT&#8217;] thing work? Do I have to edit it?</p>
<p>Thanks in advance.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
