RE: [PHP] Including Virtual Paths
| From: | PHPBeginner.com | Date: | Mon, 05 Feb 2001 11:20:08 +0000 |
| Subject: | RE: [PHP] Including Virtual Paths | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-38206@lists.php.net to get a copy of this message | ||
You can then create your own own. ... Just declare a variable called
$DOCUMENT_ROOT = 'c:\the\path\to\your\web\tree\' somewhere in configuartion
files of your website, or even as include_path in PHP.ini
Sincerely,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
maxim@phpbeginner.com
www.phpbeginner.com
-----Original Message-----
From: James Crowley [mailto:james@vbweb.co.uk]
Sent: Monday, February 05, 2001 2:48 AM
To: PHPBeginner.com
Subject: RE: [PHP] Including Virtual Paths
Thanks very much! However, I've just looked that up in the help, and
$DOCUMENT_ROOT only works for Apache...I'm running IIS 5 :-(
Regards,
- James
Editor, VB Web
==================
Web - http://www.vbweb.co.uk
Email - james@vbweb.co.uk
ICQ# - 60612011
==================
-----Original Message-----
From: PHPBeginner.com [mailto:php-general@phpbeginner.com]
Sent: 03 February 2001 18:55
To: James Crowley; php-general@lists.php.net
Subject: RE: [PHP] Including Virtual Paths
it's very simple :
include("$DOCUMENT_ROOT/bin/header.asp");
(we are talking about the web root's full path, right ?)
Sincerely,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
maxim@phpbeginner.com
www.phpbeginner.com
-----Original Message-----
From: James Crowley [mailto:james@vbweb.co.uk]
Sent: Sunday, February 04, 2001 3:45 AM
To: php-general@lists.php.net
Subject: [PHP] Including Virtual Paths
Hi,
When using ASP, I frequently reference virtual path such as
<!--#include virtual="/bin/header.asp"-->
However, the PHP include() function doesn't seem to support this... What
can I do? I don't want to have to change the reference to reflect its
position in the site by adding ../ for every script.
Regards,
- James
Editor, VB Web
==================
Web - http://www.vbweb.co.uk
Email - james@vbweb.co.uk
ICQ# - 60612011
==================
-----Original Message-----
From: php-general-digest-help@lists.php.net
[mailto:php-general-digest-help@lists.php.net]
Sent: 02 February 2001 13:02
To: php-general@lists.php.net
Subject: php-general Digest 2 Feb 2001 13:01:55 -0000 Issue 488
php-general Digest 2 Feb 2001 13:01:55 -0000 Issue 488
Topics (messages 37764 through 37827):
Re: What version of Linux?
37764 by: Michael Hall
Re: encode string with spaces
37765 by: David Robley
37768 by: David Robley
Win2000 TCP/IP failure
37766 by: Toby Butzon
37827 by: Alain Fontaine
Re: C++ integration with PHP
37767 by: Toby Butzon
Re: contracting & consulting (was "[PHP] Pricing for PHP pr ogramming???")
37769 by: Dave VanAuken
37770 by: Ben Peter
37771 by: Maxim Maletsky
37775 by: Steve Werby
37826 by: Robin Vickery
Re: Java variables - PHP varialbles
37772 by: Nold, Mark
Php Database
37773 by: Vinicius Garcia Mommensohn
Re: Why?? SPRINTF("SELECT sequence,prodnum,childdesc....);
37774 by: Steve Werby
Re: PHP a lightweight language?
37776 by: Nold, Mark
37783 by: John Hinsley
37784 by: Josh G
How do I get last inserted ID?
37777 by: Sandeep Hundal
37778 by: Maxim Maletsky
37779 by: David Robley
37821 by: Andrew Golovin
Re: Pricing for PHP programming???
37780 by: Steve Werby
37781 by: Josh G
37786 by: Josh G
37797 by: Angus Mann
Re:What version of Linux?
37782 by: John Hinsley
Re: Message status - undeliverable
37785 by: Josh G
OT mod_rewrite says goodbye to POST vars (but interesting)
37787 by: Matt Friedman
Re: 404 error checker
37788 by: Louis LeBlanc
Automatic incoming mail notification
37789 by: Ankur Verma
37790 by: Josh G
37791 by: David Robley
37792 by: Ankur Verma
37793 by: Steve Werby
37802 by: Nicolas Windpassinger - Sun
how do I subscribe?
37794 by: David VanHorn
37795 by: Maxim Maletsky
Re: Variables within functions, out?
37796 by: Steve Werby
configuring headers in mail() ...
37798 by: Maxim Maletsky
PGP
37799 by: Martin Thoma
37801 by: Adrian Teasdale
Mysql Question
37800 by: Giancarlo
Re: Recommended Job Posting sites? Need to hire someone w/ PHP exp.
37803 by: Boaz Yahav
Apache won't start after installing php4
37804 by: Frank Passek
Zend IDE
37805 by: Alain Fontaine
37811 by: Andi Gutmans
37813 by: Alain Fontaine
37816 by: Zeev Suraski
37817 by: Alain Fontaine
Re: reload help!!!
37806 by: Wen Ni Leong
passing parameters
37807 by: Stinie Steinbach
37808 by: Alain Fontaine
Could PHP connect to Perl Program
37809 by: kn4279
Re: [Q] Domxml: unlink() method?
37810 by: Peter Sabaini
JavaScript, PHP and HTML
37812 by: Augusto Cesar Castoldi
37815 by: Juan
37819 by: kaab kaoutar
Re: Tab character
37814 by: Martin A. Marques
Re: Include " quotes inside textbox
37818 by: Christian Reiniger
PHP configure commandline
37820 by: indrek siitan
For My Information
37822 by: Dan Malcolm
37823 by: Jon Haworth
Re: [PHP-WIN] For My Information
37824 by: Tom Mathews
37825 by: Dan Malcolm
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscribe@lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscribe@lists.php.net
To post to the list, e-mail:
php-general@lists.php.net
----------------------------------------------------------------------
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net