Re: function and global problems
| From: | Steve Werby | Date: | Fri, 06 Apr 2001 15:24:24 +0000 |
| Subject: | Re: function and global problems | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-47453@lists.php.net to get a copy of this message | ||
"Richard Kurth" <rkurth@pacifier.com> wrote:
> I can not seem to get this figuered out I whant to run this function to
pull
> data out of a file and thin use the data in the rest of the program. When
I
> do this I get a Parse error: parse error in
> c:/httpd/htdocs/autosetup/auto/test.php on line 25
<snip>
> }
> getdata( )
>
> echo $domain; <--This is line 25 which is outside of the function
</snip>
getdata(); // Don't forget the semicolon.
As a general rule, missing semicolons ";" and braces "}" on lines above
those mentioned in the error output are often culprits for parse errors.
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/