I've got a script to access my database called mysql.class.php. So from every other script that is talking to the database, this file i included, like this for instance:
[PHP]<?php
include("../classes/mysql.class.php");
//Code using the included file goes here
?>[/PHP]
Now I want the file mysql.class.php to save a log-info for every query in a file that is placed in the same folder as the mysql.class.php-file. However, the file is saved where the script which included mysql.class.php is located.
How can I always save the file at the same place as mysql.class.php, even though it's included in another folder?