" chdir( '../../public_html/forums' ); "
^^ What the hell is this? Of course you would get errors if you try to exit the root directory like this.. Where is your script located? If it is in root, then use:
chdir( './forums' );
If, for example, it is in public_html/somefolder, use:
chdir( '../forums' );
But do not ever tell your script to go deeper than public_html...
I wonder how you don't get a fatal error...
|