Posted by ZeldorBlat on 11/29/07 21:04
On Nov 29, 4:00 pm, JP <jpseba...@gmail.com> wrote:
> Hi All,
>
> Thanks for the replies so far.
>
> Here is my exact code and the error I am receiving when I run this:
>
> Main file: example_include.php
> <?php
> include ('C:\Sebastian\work\php\testfunction.php');
> echo "Calling testfunction\n";
> testfunction("This is a test");
> ?>
>
> File: testfunction.php
> <?php
> funciton testfunction($text)
> {
> echo "Inside testfunction\n");
> echo "You passed the value " . $text . " to this function.\n";
> }
> ?>
>
> Now at my C: prompt, I run it as follows:
>
> C:\Sebastian\work\php>php example_include.php
> PHP Parse error: syntax error, unexpected T_STRING in C:\Sebastian
> \work\php\tes
> tfunction.php on line 2
>
> C:\Sebastian\work\php>
The line:
echo "Inside testfunction\n");
Has a right-paren that shouldn't be there.
[Back to original message]
|