Will Whatever you are making available in the required file sql.php, it is not accessible by the function shit_func. Define the connection string or whatever as a global inside function shit_func and it should work, else make the connection within the function - not such a good idea... chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php