The short answer to the issues relating to the demos contained in the xampp\htdocs\xampp\special
folder is not to use them until the author Uwe Steinmann has cleaned up the code mess, as they simply will not work in their present state - these demos were obviously not checked by the XAMPP developers before insertion into the XAMPP distribution but simply taken as being correct because they came from a php contributing author Uwe Steinmann who also did not check his work before releasing it to the XAMPP developers or he would have seen that the path code was incorrect.
The relevant path code in ps.php starts around line 29 which, if you know php, you may be able to edit the paths to get rid of the error messages but as always make a backup of the file first:
- Code: Select all
// Some path variables
$curdir = getcwd();
list($xamppdir, $docdir) = split ('xampp\\\\htdocs', $curdir);
$htdir=ereg_replace("\\\\", "/", $docdir);
$newpsdoc=ereg_replace("/", "\\", $psdoc);
#$newpsdoc = "/tmp/draw.ps";
#$fontdir = "/home/steinm/sourceforge/pslib/tests/c";
Incidentally the draw.ps file is created by the draw.php file (which also contains incorrect path code
) and places the draw.ps file in the xampp\htdocs folder.
In fact Uwe Steinmann
who created this demo or at least contributed to it's creation should take it back and have another close look at the paths in all the php files as in draw.php
he has a path htdocs/xampp/external/ps/draw.ps
and the fonts in htdocs/xampp/external/ps/Helvetica
which clearly do not exist - as mentioned above the draw.ps file is in xampp\htdocs
folder and the fonts are in the xampp\htdocs\xampp\special\ps
folder - what a mess!
If you or anyone manages to sort out this mess, please post back with your amended working code.
I have also sent feedback on this issue to the developers working on the 1.7.1 Beta program and hopefully it will be looked at and finally sorted out so we don't get any more posts about these errors clogging up our forums.