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:



    $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 ???


Mauricio Cuenca

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to