Quote:
Originally Posted by Dismounted
As Marco has said - you can use chdir(). This will change the working directory to whatever you want.
|
Hi Dismounted,
I really appreciate your help. This has been quite strange. I was repeatedly getting error codes when trying to use the chdir but now I'm not and everything seems to be working with the exact same code I tried before. I mean exactly. There is one other problem now: I have additional html on the page after the php tags which simply does not show up now, not on the page, not on the page source code. Is there a trick I'm missing?
Edit: I spoke too soon. Before I would get the errors in Firefox immediately and eventually in Safari. Tonight all seemed well in Safari, even after clearing the cache. In Firefox, I again get the error message:
Unable to add cookies, header already sent.
File: /home/xxxx/public_html/index-test.php
Line: 2
Here is the entire code I'm trying now:
<base href="forum/" />
<?php chdir('forum/'); ?>
<?php include ("calendar.php"); ?>
(If I don't use the base href the css does not work. I even tried a link href for the .css file instead but it does not work.)
This is the page: http://www.lahabraevents.com/index-test.php
I feel like I am going crazy. Obviously, I could use any help you could offer. Much thanks.
David