Problem with $_SERVER['DOCUMENT_ROOT'] in FF
Posted: Sat Mar 13, 2010 9:18 pm
I have these:
PHP File
The above code as shown on the Firefox View Source:
It does not use my CSS and if I click or go to the href of the link tag, Firefox displays this error:
Firefox doesn't know how to open this address, because the protocol (c) isn't associated with any program.
Another is this:
It also does not redirect to the page.
Help resolve this.
PHP File
Code: Select all
<link type="text/css" rel="stylesheet" href="<?php echo $_SERVER['DOCUMENT_ROOT'] . '/folder/globalStyles.css' ?>" />
Code: Select all
<link type="text/css" rel="stylesheet" href="C:/xampp/htdocs/folder/globalStyles.css" />
Firefox doesn't know how to open this address, because the protocol (c) isn't associated with any program.
Another is this:
Code: Select all
header('Location: ' . $_SERVER['DOCUMENT_ROOT'] . '/folder/page.php');
Help resolve this.