Hi!
PHP is a web scripting language and unfortunately it's next to impossible to do what you are saying with PHP. You would need to force your client to install Apache, PHP and MySQL - you probably anticipate their reaction.
PHP has released the GTK toolkit which could be used to create software with PHP installed on the same machine. But this is not what you are looking for.
The PHP Compiler has a confusing name because it's nothing more than encoder of PHP code to make it unreadable and a bit more friendly for the interpreter.
With some modifications in code of your PHP files, you could generate HTML for each page and then distribute this instead of the dynamic version. Of course, this would prevent you from giving your client such features as search forms, etc.
To make these modifications, use a function like this and replace all links in your dynamic scripts to calls to this function:
define ("USE_STATIC_LINKING", true);
function MakeFuzzyLink($dynamic_link, $static_link) {
if (USE_STATIC_LINKING)
{
return $static_link;
}
return $dynamic_link;
}
Instead of these arguments, you could create a hash table (assoc arrays) with unique keys like:
$site_links = array("employees"=>array("employees.php", "employees.html"));
and return either $site_links['employees'][0] for dynamic link or [1] for static link.
Then the above function could use only one input argument specifying the id of the link to return.
This could also help you generate the script for wget for Unix or Url2File for Windows (if you need this prog, email me). You will need these programs to actually generate in batch mode html files for every php file (you will be able to specify query strings as well).
Hope this helps,
Stas