is it possible to send the code - or snippets of the code - so that someone might be able to spot the error
something that you might want to look at is whether the included file has a parse error - the set up in this company allows the "parent" script to continue to run, even if the "child" script has an error (dunno if this is a php setting or it's default behaviour???) -----Original Message----- From: Mauricio Cuenca [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 20, 2002 11:14 AM To: anders nawroth; [EMAIL PROTECTED] Subject: Re: [PHP] include_once() Yes, I read the documentation and took close note to include the start and end tags... <?php .... ?> Thanks, ______________________ Mauricio Cuenca ----- Original Message ----- From: "anders nawroth" <> To: "Mauricio Cuenca" <f>; <[EMAIL PROTECTED]> Sent: Tuesday, March 19, 2002 2:26 PM Subject: Re: [PHP] include_once() > Have you put <?php tags in your include-files? > > Anders > > ----- Ursprungligt meddelande ----- > Från: "Mauricio Cuenca" <> > Till: <> > Skickat: den 19 mars 2002 17:43 > Ämne: [PHP] include_once() > > > > Hello, > > > > I have a very long script with several functions in it. I wanted to split > > the script into several files, so I created two sub-scripts and one main > > script. This is the code from the main script: > > > > <?php > > > > include_once("sub_script_1.php"); > > incude_once("sub_script_2.php"); > > > > $temp = MyFunction(); > > > > ?> > > > > MyFunction() is contained in the file "sub_script_1.php" which is properly > > enclosed with valid PHP start and end tags. > > > > But When I try to run the main script, I get this error: > > Fatal error: Call to undefined function: MyFunction()in /main_script.php on > > line 4. > > > > How can I properly "divide" my script into several ones ??? > > > > TIA, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php