Call to undefined function

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Call to undefined function

Postby Lane » 16. November 2009 02:39

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
Lane
 
Posts: 1
Joined: 16. November 2009 02:29

Re: Call to undefined function

Postby ym_chaitu » 16. November 2009 06:34

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
?>
--
Chaitanya Babu Yanamadala
www.drvirusindia.co.cc
User avatar
ym_chaitu
 
Posts: 33
Joined: 13. November 2009 08:26
Location: Bangalore,India

Re: Call to undefined function

Postby Izzy » 16. November 2009 06:53

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.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 53 guests