Re: PHP Fatal error: Call to undefined function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux