Date: 06/14/02
- Next message: martin.adler <email protected>: "[PHP-DB] REGEXP problem"
- Previous message: José Moreira: "FW: [PHP-DB] --- correction --- auto increment"
- Maybe in reply to: suman: "[PHP-DB] problem with login script"
- Next in thread: Jason Wong: "Re: [PHP-DB] problem with login script"
- Reply: Jason Wong: "Re: [PHP-DB] problem with login script"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I haven't been following your whole thread on this issue, but I did notice
that the syntax for your include statement is incorrect. Try this:
<?
include("functions.php");
?>
I've been working with includes recently and that's the standard syntax.
Furthermore, if you put the functions.php file in a different directory,
remember to use double slashes in the path (i.e.
path\\foo\\bar\\functions.php). Instead of the include(); statement, you
also have require(); at your disposal.
Hope this helps.
-----Original Message-----
From: Jason Wong [mailto:phplist <email protected>]
Sent: Friday, June 14, 2002 2:15 AM
To: php-db <email protected>
Subject: Re: [PHP-DB] problem with login script
On Friday 14 June 2002 03:23, suman wrote:
> hi
> adding the <? ?>in func.php still returns this.
>
> my functions script is
> -----------------------------------------------------------------
You need:
<?
function auuser($login,$passwd)
{
...
}
?>
This
> <?include 'functions.php';
Should be:
<? include 'functions.php';
> when i run these i get this error
> Parse error: parse error, unexpected ';' in
> /usr/local/apache/htdocs/sims/php/functions.php on line 12
In future please indicate which is line 12!
-- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development */* To thine own self be true. (If not that, at least make some money.) */
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: martin.adler <email protected>: "[PHP-DB] REGEXP problem"
- Previous message: José Moreira: "FW: [PHP-DB] --- correction --- auto increment"
- Maybe in reply to: suman: "[PHP-DB] problem with login script"
- Next in thread: Jason Wong: "Re: [PHP-DB] problem with login script"
- Reply: Jason Wong: "Re: [PHP-DB] problem with login script"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

