my web app sits in a folder called app,
there is a config.php file in this folder that contains some constants, eg database connection variables etc.etc
i want to run a script: app/scripts/dosomthing.php from cron every so often, but it fails saying it can't find the config.php file.
i require it like so:
<?php
require '../config.php';
?>
it works fine if you hit that scipt through the web browser, or on the command line, but gets error through cron.
anyone have any ideas?