Quote:
|
Thanks, I'll post my question in the General Discussion forum.
|
Ok, this is excellent info, I've tried to read most of this thread but I'm sure i have missed this somewhere. I am trying to create a page within a directory within my forum directory (forum is at /var/www/html/forum, directory is at /var/www/html/forum/directory). I added the
Code:
chdir('/var/www/html/forum/'); Thanks |
supergper, in your template, put
Code:
$header |
Quote:
Code:
$stylevar[htmldoctype] |
do the chdir before you include/require global.php
|
It's already there. Here is my php file (I've named it index.php and my template is named GrandTech)
Code:
<?php |
Try to call it somethingelse.php and put it in the forum directory and comment out the chdir and see if it works. If it does, then the problem because of the changed directory.
|
Quote:
Quote:
I am fully aware it's because of the changed directory, I'm trying to figure out how to rectify that :) |
Get rid of the ending slash:
PHP Code:
|
All times are GMT. The time now is 10:30 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|