I’m getting an error
Parse error: syntax error, unexpected T_STRING
On the line with $szSearchDBPath below. It seems like PHP doesn’t like something about the drive path.
I’ve spent hours Googling to try and find the problem, but with no success.
From my understanding, a single quoted string is not parsed and should be interpreted literally.
Does anyone know what could be the problem?
<?php
$szHost = getcwd();
$szAddDir = "";
$g_bSaveSearch = 'True';
$szContentRoot = 'd:\websites\lycos\Alpha_Pourri\';
$szSearchDBPath = 'd:\websites\lycos\Alpha_Pourri\searches\';
$bPRODSite = 'False';
$i = 0;
...
Since backslashes are used for escape characters, you’re accidentally escaping the ending single quote by putting a backslash before it. Try turning all your backslashes into double backslashes, eg