|
Posted by dpinion@gmail.com on 05/17/07 19:37
On May 17, 3:17 pm, Schraalhans Keukenmeester <inva...@invalid.spam>
wrote:
> >
> As said, I'm not sure \ isn't allowed on Windows. You may wanna check the
> php manual for that. But since you get no errors it seems fine.
>
> If you upload it to a non-windows server you'd always have to use \ afaik.
>
> But, not getting any errors at all with above additions? Hmm, that might
> indicate the files are properly required/included after all.
> Can you show a relevant snippet of your working code?
> If you echo a string following the require, does that display properly?
>
> Sh
I tried the echo (you will see it in the code below) but it did not
display on the screen. I am really new to PHP, so there is a good
possibility I am doing something wrong...
<?
$updated = "4/3/07";
//$_SERVER["DOCUMENT_ROOT"] = str_replace( $_SERVER["PATH_INFO"],
//"", ereg_replace( "[\][\]", "/", $_SERVER["PATH_TRANSLATED"] )
//)."/";
require_once("virtuals/doc-root.php4");
echo "test";
?>
<html>
<head>
<?
include_once($_SERVER["DOCUMENT_ROOT"]."/virtuals/header-
script.php4");
?>
<?
include_once($_SERVER["DOCUMENT_ROOT"]."/virtuals/header-home.php4");
?>
I will check the docs to see if windows will support both slashes
[Back to original message]
|