Re: Get get include pages to work...



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


.



Relevant Pages

  • Re: Internet connection on Linux
    ... If you are having to use windows to access Usenet: ... If you do not want some malware writing to linux. ... If using linux for Usenet access, su - root, copy script text into xx ... echo "You need to be root to run $0" ...
    (comp.os.linux.networking)
  • Re: 16-bit under WinXP Pro?
    ... @echo off ... If Command Extensions are enabled, and running on the Windows XP ... [[To run 16-bit Windows applications, NT uses a VDM that contains an extra ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Office 2007 suddenly running in 256 color
    ... I did change color schemes/themes in both Windows and Office. ... Echo http://www.echosvoice.com ... Fixing PowerPoint Annoyances ... You've changed Office color schemes and you've run Office diagnostics. ...
    (microsoft.public.office.misc)
  • Re: [SLE] Bat files in Linux
    ... > I have a few commands that I would like to run at the command prompt. ... > In Windows I do this with a bat file that looks like the sample below. ... > ECHO Backup Menu ... > ECHO A. Flash Drive Backup J: ...
    (SuSE)
  • Re: Disabling interent explorer
    ... > Explorer from my computer. ... if not exist IEXPLORE.EXE goto End ... echo IE disabled. ... whichever HDD or drive partition that you have Windows XP installed to ...
    (microsoft.public.windowsxp.security_admin)