php-windows | 2001042
Date: 04/20/01
- Next message: Arthur Melkonyan: "[PHP-WIN] PHP 4 Session"
- Previous message: Dave Faulkner: "[PHP-WIN] PHP4, WinNT, exec() (NOTHING HAPPENS!...please help!!)"
- In reply to: Olivier Botineau: "[PHP-WIN] include"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 20 Apr 2001 14:04:00 -0700, Olivier Botineau <obotineau <email protected>> wrote:
>Good evening all,
>do you know if its possible to give an absolute path instead of a relative path for include:
>include( '../../menu.php' ); is OK
>incude( '/inculde/menu.php' ); is Not OK
That's the correct syntax for an absolute path but it's relative to the webroot
- you'll need to add in the full path - e.g. "/www/site/include/menu.php" or
"C:/IIS/site/include/menu.php".
I generally prefer to set include_path for each virtual host so I can place
included files outside of the webroot and not have to worry about paths.
-- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-windows-unsubscribe <email protected> For additional commands, e-mail: php-windows-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Arthur Melkonyan: "[PHP-WIN] PHP 4 Session"
- Previous message: Dave Faulkner: "[PHP-WIN] PHP4, WinNT, exec() (NOTHING HAPPENS!...please help!!)"
- In reply to: Olivier Botineau: "[PHP-WIN] include"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

