<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Configuring PHP with Apache on Windows Vista</title>
	<atom:link href="http://www.simonwhatley.co.uk/configuring-php-with-apache-on-windows-vista/feed" rel="self" type="application/rss+xml" />
	<link>http://www.simonwhatley.co.uk/configuring-php-with-apache-on-windows-vista</link>
	<description>The opposite of every great idea is another great idea</description>
	<lastBuildDate>Tue, 24 Jan 2012 10:54:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Abhirup10</title>
		<link>http://www.simonwhatley.co.uk/configuring-php-with-apache-on-windows-vista/comment-page-1#comment-679</link>
		<dc:creator>Abhirup10</dc:creator>
		<pubDate>Wed, 09 Nov 2011 15:55:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.simonwhatley.co.uk/?p=397#comment-679</guid>
		<description>hi,i have done all the steps...but till now when ever i try to connect
i have this error


Fatal error:  Call to undefined function mysql_connect() in C:abhirupphp_progtest1.php
 on line 15my total code is


&lt;?php
    // hostname or ip of the server (for local testing localhost should work)
    $dbServer = &quot;localhost&quot;;

    // username and password to log onto db server (what you entered in MySQL installation)
    $dbUser = &quot;root&quot;;
    $dbPass = &quot;abhirup&quot;;

    // name of database (MySQL by default comes with an empty database named &quot;test&quot;)
    $dbName = &quot;test&quot;;

    // open server connection
    $link = mysql_connect($dbServer, $dbUser, $dbPass) or die(&quot;Could not connect to server&quot;);
    echo &quot;Connected successfully&quot;;

    // test database connection
    mysql_select_db($dbName) or die(&quot;Could not select database&quot;);
    echo &quot;Database selected successfully&quot;;

    // close server connection
    mysql_close($link);
?&gt;


</description>
		<content:encoded><![CDATA[<p>hi,i have done all the steps&#8230;but till now when ever i try to connect<br />
i have this error</p>
<p>Fatal error:  Call to undefined function mysql_connect() in C:abhirupphp_progtest1.php<br />
 on line 15my total code is</p>
<p>&lt;?php<br />
    // hostname or ip of the server (for local testing localhost should work)<br />
    $dbServer = &quot;localhost&quot;;</p>
<p>    // username and password to log onto db server (what you entered in MySQL installation)<br />
    $dbUser = &quot;root&quot;;<br />
    $dbPass = &quot;abhirup&quot;;</p>
<p>    // name of database (MySQL by default comes with an empty database named &quot;test&quot;)<br />
    $dbName = &quot;test&quot;;</p>
<p>    // open server connection<br />
    $link = mysql_connect($dbServer, $dbUser, $dbPass) or die(&quot;Could not connect to server&quot;);<br />
    echo &quot;Connected successfully&#8221;;</p>
<p>    // test database connection<br />
    mysql_select_db($dbName) or die(&#8220;Could not select database&#8221;);<br />
    echo &#8220;Database selected successfully&#8221;;</p>
<p>    // close server connection<br />
    mysql_close($link);<br />
?&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike122</title>
		<link>http://www.simonwhatley.co.uk/configuring-php-with-apache-on-windows-vista/comment-page-1#comment-648</link>
		<dc:creator>Mike122</dc:creator>
		<pubDate>Mon, 20 Jun 2011 02:51:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.simonwhatley.co.uk/?p=397#comment-648</guid>
		<description>Thanks a lot Simon for your online support. I
Just for the record there is one too many space in the start tag 
 should be Cheers!</description>
		<content:encoded><![CDATA[<p>Thanks a lot Simon for your online support. I<br />
Just for the record there is one too many space in the start tag<br />
 should be Cheers!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon</title>
		<link>http://www.simonwhatley.co.uk/configuring-php-with-apache-on-windows-vista/comment-page-1#comment-202</link>
		<dc:creator>Simon</dc:creator>
		<pubDate>Mon, 01 Mar 2010 21:20:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.simonwhatley.co.uk/?p=397#comment-202</guid>
		<description>@sergio I had a similar problem with the extensions killing the PHP install. You&#039;ll have to refer to the PHP community as to why; they&#039;ll probably say it&#039;s because you&#039;re using Vista! Not helpful, but the likely answer.

However, it does make sense to only enable those extensions that you require.</description>
		<content:encoded><![CDATA[<p>@sergio I had a similar problem with the extensions killing the PHP install. You&#8217;ll have to refer to the PHP community as to why; they&#8217;ll probably say it&#8217;s because you&#8217;re using Vista! Not helpful, but the likely answer.</p>
<p>However, it does make sense to only enable those extensions that you require.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sergio terroso</title>
		<link>http://www.simonwhatley.co.uk/configuring-php-with-apache-on-windows-vista/comment-page-1#comment-201</link>
		<dc:creator>sergio terroso</dc:creator>
		<pubDate>Mon, 01 Mar 2010 01:15:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.simonwhatley.co.uk/?p=397#comment-201</guid>
		<description>Hi Simon,

Almost everything went just fine, except for the php.ini location. I cannot copy it to C:\Windows because Apache would not start and the same happens when I refer the PHPInidir parameter to my PHP installation path (C:\Program Files\PHP\). I am currently using Windows Vista Business.

I thought it might be something related to file permissions but I copied the php.ini file to a new directory (C:\PHPINIDIR\) and changed the PhpInidir parameter in httpd.config and again it didn&#039;t start.

Finally I tried disabling all extensions and EUREKA! apache started. I enabled only those extensions that I will need and all works great since then. I think it would be great if you could clarify the reasons of PHP crash when all extensions are enabled upon installation.</description>
		<content:encoded><![CDATA[<p>Hi Simon,</p>
<p>Almost everything went just fine, except for the php.ini location. I cannot copy it to C:\Windows because Apache would not start and the same happens when I refer the PHPInidir parameter to my PHP installation path (C:\Program Files\PHP\). I am currently using Windows Vista Business.</p>
<p>I thought it might be something related to file permissions but I copied the php.ini file to a new directory (C:\PHPINIDIR\) and changed the PhpInidir parameter in httpd.config and again it didn&#8217;t start.</p>
<p>Finally I tried disabling all extensions and EUREKA! apache started. I enabled only those extensions that I will need and all works great since then. I think it would be great if you could clarify the reasons of PHP crash when all extensions are enabled upon installation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fotoranking.pl</title>
		<link>http://www.simonwhatley.co.uk/configuring-php-with-apache-on-windows-vista/comment-page-1#comment-200</link>
		<dc:creator>fotoranking.pl</dc:creator>
		<pubDate>Sat, 24 Oct 2009 10:01:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.simonwhatley.co.uk/?p=397#comment-200</guid>
		<description>For all who can&#039;t get the php code parsed ( seems to be not recognized as script). You have to set &quot;short_open_tag = On&quot; in your php.ini file.</description>
		<content:encoded><![CDATA[<p>For all who can&#8217;t get the php code parsed ( seems to be not recognized as script). You have to set &#8220;short_open_tag = On&#8221; in your php.ini file.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ANAND</title>
		<link>http://www.simonwhatley.co.uk/configuring-php-with-apache-on-windows-vista/comment-page-1#comment-199</link>
		<dc:creator>ANAND</dc:creator>
		<pubDate>Mon, 10 Aug 2009 01:08:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.simonwhatley.co.uk/?p=397#comment-199</guid>
		<description>Hi,

I installed apache as per your directions.. Thanks so much!!! But when I install php, it doesn&#039;t show me the option of setting Apache as the server.. I have tried working things around.. Doesn&#039;t work.. hope you could help me</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I installed apache as per your directions.. Thanks so much!!! But when I install php, it doesn&#8217;t show me the option of setting Apache as the server.. I have tried working things around.. Doesn&#8217;t work.. hope you could help me</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mary</title>
		<link>http://www.simonwhatley.co.uk/configuring-php-with-apache-on-windows-vista/comment-page-1#comment-198</link>
		<dc:creator>Mary</dc:creator>
		<pubDate>Wed, 08 Jul 2009 01:04:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.simonwhatley.co.uk/?p=397#comment-198</guid>
		<description>Bingo! It wound up being an incorrect path (C:\program files\php... when it should have been C:\php...), I noticed the discrepancy when checking the bits you mentioned. Thanks for pointing me in the right direction, Simon!</description>
		<content:encoded><![CDATA[<p>Bingo! It wound up being an incorrect path (C:\program files\php&#8230; when it should have been C:\php&#8230;), I noticed the discrepancy when checking the bits you mentioned. Thanks for pointing me in the right direction, Simon!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon</title>
		<link>http://www.simonwhatley.co.uk/configuring-php-with-apache-on-windows-vista/comment-page-1#comment-197</link>
		<dc:creator>Simon</dc:creator>
		<pubDate>Thu, 02 Jul 2009 10:17:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.simonwhatley.co.uk/?p=397#comment-197</guid>
		<description>@mary The mysql_connect() error could be related to the missing DLL file in your PHP installation. Look under [path to php install]\ext to see if the php_mysql.dll and php_mysqli.dll files are present (if not, go to the PHP website and download them manually). You&#039;ll also need to make sure that the extensions are added into your PHP.ini file. You can check what PHP has installed by creating and running a simple PHP file, including &lt;code&gt;&lt;?php phpinfo(); ?&gt;&lt;/code&gt;.

To add the extensions, you need to make sure the following exists/is uncommented:

extension_dir = &quot;c:\php\ext&quot;

Where &quot;c:\php\ext&quot; is the path to your PHP extensions directory (change if needed).

You also need to add the following to PHP.ini (if not already there):

extension=php_mysql.dll
extension=php_mysqli.dll

Another gotcha could be that the 3rd-party database provider doesn&#039;t allow remote connections to the database or may have changed the default port through which connections are made.</description>
		<content:encoded><![CDATA[<p>@mary The mysql_connect() error could be related to the missing DLL file in your PHP installation. Look under [path to php install]\ext to see if the php_mysql.dll and php_mysqli.dll files are present (if not, go to the PHP website and download them manually). You&#8217;ll also need to make sure that the extensions are added into your PHP.ini file. You can check what PHP has installed by creating and running a simple PHP file, including <code>&lt;?php phpinfo(); ?&gt;</code>.</p>
<p>To add the extensions, you need to make sure the following exists/is uncommented:</p>
<p>extension_dir = &#8220;c:\php\ext&#8221;</p>
<p>Where &#8220;c:\php\ext&#8221; is the path to your PHP extensions directory (change if needed).</p>
<p>You also need to add the following to PHP.ini (if not already there):</p>
<p>extension=php_mysql.dll<br />
extension=php_mysqli.dll</p>
<p>Another gotcha could be that the 3rd-party database provider doesn&#8217;t allow remote connections to the database or may have changed the default port through which connections are made.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mary</title>
		<link>http://www.simonwhatley.co.uk/configuring-php-with-apache-on-windows-vista/comment-page-1#comment-196</link>
		<dc:creator>Mary</dc:creator>
		<pubDate>Tue, 30 Jun 2009 17:01:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.simonwhatley.co.uk/?p=397#comment-196</guid>
		<description>Hi Simon,

I seem to have got Apache and PHP cooperating on my Vista-driven laptop, but would like to connect to a web-based database (the one that will be used when I upload the files to my &#039;live&#039; site) when editing php pages on the localhost. I have tried to indicate the &#039;mysql.default_host =&#039; (as well as the _user, and _password variables) in the php.ini to point to my sql server (ie: http://mysql.mywebsite.com) but still get the ol&#039; Fatal error: Call to undefined function mysql_connect().  Could the default port setting under the mysqli heading in the php.ini be affecting my abilities to point to my live database? Are there special rules/commands/workarounds I need to be looking for in order to edit files on a localhost while drawing info from a web-based mysql database? I have installed Apache 2.2, PHP 5, and MySql 5.1; the &#039;live&#039; database is MySql Server Version 4.1.16-standard-log.  My coding/technical skill level: just enough to be dangerous and break things. :P</description>
		<content:encoded><![CDATA[<p>Hi Simon,</p>
<p>I seem to have got Apache and PHP cooperating on my Vista-driven laptop, but would like to connect to a web-based database (the one that will be used when I upload the files to my &#8216;live&#8217; site) when editing php pages on the localhost. I have tried to indicate the &#8216;mysql.default_host =&#8217; (as well as the _user, and _password variables) in the php.ini to point to my sql server (ie: <a href="http://mysql.mywebsite.com" rel="nofollow">http://mysql.mywebsite.com</a>) but still get the ol&#8217; Fatal error: Call to undefined function mysql_connect().  Could the default port setting under the mysqli heading in the php.ini be affecting my abilities to point to my live database? Are there special rules/commands/workarounds I need to be looking for in order to edit files on a localhost while drawing info from a web-based mysql database? I have installed Apache 2.2, PHP 5, and MySql 5.1; the &#8216;live&#8217; database is MySql Server Version 4.1.16-standard-log.  My coding/technical skill level: just enough to be dangerous and break things. <img src='http://www.simonwhatley.co.uk/blog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon</title>
		<link>http://www.simonwhatley.co.uk/configuring-php-with-apache-on-windows-vista/comment-page-1#comment-195</link>
		<dc:creator>Simon</dc:creator>
		<pubDate>Tue, 17 Feb 2009 14:03:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.simonwhatley.co.uk/?p=397#comment-195</guid>
		<description>@michal, If you need to edit the php file, you&#039;ll need to right-click on the file name, select edit and choose your preferred editing tool. Alternatively, when in your editing software, open the file using the standard method for the tool, i.e. File -- Open.

To actually view the file, you can&#039;t simply double-click it, you&#039;ll need to browse to it in, for example, Firefox or Internet Explorer.</description>
		<content:encoded><![CDATA[<p>@michal, If you need to edit the php file, you&#8217;ll need to right-click on the file name, select edit and choose your preferred editing tool. Alternatively, when in your editing software, open the file using the standard method for the tool, i.e. File &#8212; Open.</p>
<p>To actually view the file, you can&#8217;t simply double-click it, you&#8217;ll need to browse to it in, for example, Firefox or Internet Explorer.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

