Archive for the ‘PHP’ Category

h1

Running cakePHP on IIS

July 3, 2008

I am trying to get cakePHP 1.2 running on IIS6 with a MSSQL backend, and so far it’s going pretty well. Once I got PHP running on the server using instructions from Peter Guy, it was a simple thing to copy up the cake folder.

I tried loading up the URL for the site but only got a directory listing. To fix this, go to the permissions window of your site and then to the Documents tab. Add index.php to the default content page section and voila, it now loads without any CSS.

To enable the css, there was one more change to make. Thats was in /app/config/core.php. Just uncomment the following line:
define ('BASE_URL', env('SCRIPT_NAME'));
hit reload and Bob’s your auntie’s husband.

h1

Debugging and benchmarking MySQL in PHP

August 27, 2007

I stumbled across this link on my travels and it helped quite a bit in sriting some small piece of benchmarking MySQL with PHP. I took the code and replaced it into my own script that wrote to a database and then read from it. It needed one small change to make it work for me, I needed to add in:
$res = array();

Here is the link:
http://3rdmover.com/mysql-debugging-in-php

Follow

Get every new post delivered to your Inbox.