In Reply To:
[27-Jun-2002 18:10:48] PHP Warning: SAFE MODE Restriction in effect. The script whose uid is 41925 is not allowed to access /path/to/cgi-bin/links/admin/templates/default_php/compiled/globals.txt.php owned by uid 98 in /path/to/www/pages/PHP/Links.inc.php on line 351
[27-Jun-2002 18:10:48] PHP Warning: file("/path/to/cgi-bin/links/admin/templates/default_php/compiled/globals.txt.php") - Success in /path/to/www/pages/PHP/Links.inc.php on line 351
[27-Jun-2002 18:10:48] PHP Warning: Bad arguments to join() in /path/to/www/pages/PHP/Links.inc.php on line 351
[27-Jun-2002 18:10:48] PHP Parse error: parse error in /path/to/www/pages/PHP/Links.inc.php(353) : eval()'d code on line 1
These errors are all due to the first error. Because PHP on your server's running in safe mode, scripts can't access files which are owned by other users. In this case, the PHP front end caches the converted Perl dumps of configurations, globals, etc. They are saved to file, but your webserver is saving them as owned by nobody (or whatever user the webserver is run as). That's fine, but then the script itself is owned by you and therefore doesn't match the user that owns the cached files.
In Reply To:
but it looks like another reason why the PHP scripts should not be installed in the cgi-bin...
That's got nothing to do with it being installed in the cgi-bin. Being installed in cgi-bin makes no difference unless your webserver is configured to treat everything in cgi-bin as a cgi script.
In Reply To:
Any way around it short of moving the /Links/PHP/ directory and changing all the include paths?
There's no need/reason to move those files. If you want to move page.php out of cgi-bin, just move that single file to whereever you want, and update the db_php_url setting in the admin.
In Reply To:
An unrelated question: I've read that any PHP code should work just fine in the templates
Yes, PHP code should work fine in the templates (remember you need to put the code inside <? ?>).
In Reply To:
but it appears global variables cannot be defined within functions in the templates. Is this correct?
Can you clarify on this? I'm not sure what you mean.
Adrian