PDA

View Full Version : Chat.php in different directory


Poggyuk
03-10-2003, 09:43 AM
Hi, can somebody help me please...
I want to create a chat.php file & have it in a different directory to my forums, but when i use the usual way of calling up templates
e.g:
<?php
error_reporting(7);
require('./global.php');
eval("dooutput(\"".gettemplate('chat')."\");");
?>
I always get an error

How would i go about putting chat.php in a different directory to my forums?

(If that makes sense?!)

Thanks in advance!

Kars10
03-10-2003, 10:31 AM
Use:

<?php

error_reporting(7);
chdir('/totalpathtoforums/');
require('global.php');

eval("dooutput(\"".gettemplate('chat')."\");");

?>

Change "totalpathtoforums" to point to your forums directory.

That should work! ;)