Page 1 of 1

Call to undefined function

PostPosted: 16. November 2009 02:39
by Lane
After upgrading XAMPP, I started getting "Call to undefined function" errors on web pages which previously worked.

The error was NOT related to php.ini, modules, or the like. It involved the calling of a function included in a require/include file. The file was successfully accessed, but the function was not recognized.

After an enormous amount of time spent isolating this error (!!), I discovered that the include file did not have "php" after the "<?" at the beginning of the file. After changing "<?" to "<?php", the function worked.

I hope this helps someone!

Lane

Re: Call to undefined function

PostPosted: 16. November 2009 06:34
by ym_chaitu
This the same problem i too have faced but not when i have upgraded the xampp.. :!:
i created my code in the Xampp and tried to access it in the IIS server then this have happened for me..
so i think it would be better for any one to use the following codes only while writing
<?php
?>

Re: Call to undefined function

PostPosted: 16. November 2009 06:53
by Izzy
The short_open_tag is configured On or Off (the default in XAMPP 1.7.2) in the Loaded Configuration php.ini file.

The php.ini file short_open_tag comments are worth reading to familiarize yourself on why shortcut tags should not be used anymore, as is a visit to the link in the php.ini file.
http://php.net/short-open-tag

All PHP scripts that will be run in XAMPP 1.7.2 should either use the long tags or turn On the short tags in the php.ini file in the php folder.