Reply to Re: Get get include pages to work...

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация