This may be better suited for the General section, as it may have something to do with the server, but I’m using the PHP require() function, so I’ll ask it here….
I have the following as the code for a page in the parent directory of a subdomain I recently setup:
[code=php]<?php require(“/includes/header.php”); ?>
// page content here
<?php require(“/includes/footer.php”); ?>
Here is the file hierarchy for the subdomain directory:
[code][font=courier]<parent directory>
<includes>
header.php
footer.php
<images>
(images here)
index.php
styles.css[/font]
When I use the code I gave above, however, I get this error:
[quote]
[b]Warning:[b]/home/dandaman/public_html/subdomain/index.php[b]1
[b]Fatal error:[b]/home/dandaman/public_html/subdomain/index.php [b]1
Now, this [i]should[url]http://subdomain.thenamesdan.com/
[size=1]NOTE: subdomain.thenamesdan.com is not an actual subdomain, I’m just using it as an example.
Thanks in advance,
Dan
[size=1]PS: It [i]does