Re: Get get include pages to work...
- From: "dpinion@xxxxxxxxx" <dpinion@xxxxxxxxx>
- Date: 17 May 2007 12:37:44 -0700
On May 17, 3:17 pm, Schraalhans Keukenmeester <inva...@xxxxxxxxxxxx>
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
.
- Follow-Ups:
- Re: Get get include pages to work...
- From: gosha bine
- Re: Get get include pages to work...
- References:
- Get get include pages to work...
- From: dpinion@xxxxxxxxx
- Re: Get get include pages to work...
- From: Schraalhans Keukenmeester
- Re: Get get include pages to work...
- From: dpinion@xxxxxxxxx
- Re: Get get include pages to work...
- From: Schraalhans Keukenmeester
- Get get include pages to work...
- Prev by Date: Re: WHAT ARE THOSE DARN BRACES DOING IN THERE?
- Next by Date: Re: working with classes + php
- Previous by thread: Re: Get get include pages to work...
- Next by thread: Re: Get get include pages to work...
- Index(es):
Relevant Pages
|