Re: PHP Fatal error: Call to undefined function

From: Date: Thu, 05 Mar 2015 14:42:42 +0000
Subject: Re: PHP Fatal error: Call to undefined function
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-324588@lists.php.net to get a copy of this message
On 5-3-2015 13:04, hadi wrote:
Hi, I created function, but im getting error: (PHP Fatal error: Call to undefined function rss1() in C:\phptest\test9.php on line 17)
The error explains it perfectly. You're calling a function which has not been defined yet. So... define your function BEFORE you call it, not AFTER calling it. So <?php function rss1() { ... } rss1(); instead of <?php rss1(); function rss1() { ... } - Tul --- This email has been checked for viruses by Avast antivirus software. http://www.avast.com

« previous php.general (#324588) next »