Re: Re: PHP Fatal error: Call to undefined function
| From: | Pete Ford | Date: | Thu, 05 Mar 2015 14:49:28 +0000 |
| Subject: | Re: Re: PHP Fatal error: Call to undefined function | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-324589@lists.php.net to get a copy of this message | ||
On 05/03/15 14:42, Maciek Sokolewicz wrote:
On 5-3-2015 13:04, hadi wrote:There is also the problem is that his function is being defined inside the Exception block (as far as I can tell from the parentheses) which looks weird... -- Peter Ford phone: 01580 893333 fax: 01580 893399 Justcroft International Ltd. www.justcroft.com Justcroft House, High Street, Staplehurst, Kent TN12 0AH United Kingdom Registered in England and Wales: 2297906 Registered office: Stag Gates House, 63/64 The Avenue, Southampton SO17 1XSHi, 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