|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-12-14 10:00 UTC] hholzgra@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Wed Jul 15 21:00:01 2026 UTC |
In php.ini file: auto_append_file =/usr/local/apache/htdocs/www/after.phtml File test.phtml: <? test(); ?> File after.phtml: <? echo "after.phtml start<br>"; function test() { echo "test"; } echo "after.phtml end<br>"; ?> When I run file test.phtml I see the message: "Fatal error: Call to undefined function: test() in /usr/local/apache3/htdocs/www/oc/test.phtml on line 2" After removing the call of test() function in test.phtml everything works OK. It shows: after.phtml start after.phtml end