RE: [PHP-DB] problem with login script

From: Date: Fri, 14 Jun 2002 12:23:59 +0000
Subject: RE: [PHP-DB] problem with login script
Groups: php.db 
Request: Send a blank email to php-db+get-19804@lists.php.net to get a copy of this message
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@gremlins.com.hk] Sent: Friday, June 14, 2002 2:15 AM To: php-db@lists.php.net 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

« previous php.db (#19804) next »