![]() |
Complex include of global.php
Hi
We have some pages that already use a database connection and include several functions files. I have tried including global.php but whatever method (chdir etc) I use gives errors.. Here's what I have on the page so far.. Code:
<? session_start(); Code:
$cwd = getcwd(); Code:
Warning: chdir(): No such file or directory (errno 2) in /home/xxxx/public_html/whatson/checklogin.php on line 4 Code:
$intDirPos = strpos($_SERVER['SCRIPT_NAME'],"/",1); Code:
Warning: main(../cms/functions/listings.php): failed to open stream: No such file or directory in /whatson/guide.php on line 5 |
Try this
chdir(".."); chdir("./forum/"); |
It seems you $cws don't get filled ok.
Maybe a stupid question, i asume you have a "<?php" in the top and a "?>" in the bottom of your checklogin file? |
If I echo the $cwd variable I get something like:
/home/***/public_html/whatson which seems ok? |
All times are GMT. The time now is 05: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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|