Hi Brian,
If it's not in the same directory as the file you're calling it from, you need 
to work from the root, but not in the same way as you do with html.

<?php include $_SERVER['DOCUMENT_ROOT'].'/Blog/Index.php'; ?>

Brackets are optional.
Bob E.


----- Original Message ----- 
From: "Brian E Boothe" <[EMAIL PROTECTED]>
To: <php-list@yahoogroups.com>
Sent: Sunday, April 23, 2006 11:01 AM
Subject: [php-list] Open PHP with Include


> can someone tell me how to open a PHP page within an Include file
> 
>  So i have   <? Include ('/Blog/Index.php');  inside a PHP page
> 
>    but  it always says failed to open stream no such file or directory 
> on Line 29  inwhich is the above line, >?  how do i get that to work ??



Community email addresses:
  Post message: php-list@yahoogroups.com
  Subscribe:    [EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://groups.yahoo.com/group/php-list 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-list/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to