I've got my templates mostly converted over to the PHP and v2.x format, so I'm starting to get to being able to offer more informed feedback... :)
I'm getting the following warnings and errors:
[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
As you can see, they happen at the same time when viewing a page, but I think there is more than one problem there. I would guess the last three are related to running phpAdsNew within the page (I had similar eval() incompatibilities with phpBB's template parser), but the safe mode error looks to be separate. I didn't see this brought up anywhere else in the PHP forum, but it looks like another reason why the PHP scripts should not be installed in the cgi-bin...
Any way around it short of moving the /Links/PHP/ directory and changing all the include paths?
An unrelated question: I've read that any PHP code should work just fine in the templates, but it appears global variables cannot be defined within functions in the templates. Is this correct?
Thanks,
Dan
I'm getting the following warnings and errors:
[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
As you can see, they happen at the same time when viewing a page, but I think there is more than one problem there. I would guess the last three are related to running phpAdsNew within the page (I had similar eval() incompatibilities with phpBB's template parser), but the safe mode error looks to be separate. I didn't see this brought up anywhere else in the PHP forum, but it looks like another reason why the PHP scripts should not be installed in the cgi-bin...
Any way around it short of moving the /Links/PHP/ directory and changing all the include paths?
An unrelated question: I've read that any PHP code should work just fine in the templates, but it appears global variables cannot be defined within functions in the templates. Is this correct?
Thanks,
Dan