★ wanayoo — archive 1999 http://www.devshed.com/Talk/Forums/Forum5/HTML/000934.htmlNouvelle recherche | Portail wanayoo
DevShed Menu
* DevShed Home
* Developer News
* DevShed Brain Dump




UBBFriend: Email This Page to Someone!
  DevShed Discussion Forums
  PHP
  require & subdirectories

Post New Topic  Post A Reply
profile | register | preferences | faq | search

next newest topic | next oldest topic
Author Topic:   require & subdirectories
ikaros
Member
posted April 20, 2000 08:54 AM     Click Here to See the Profile for ikaros   Click Here to Email ikaros     Edit/Delete Message Reply w/Quote
i try to
require("includes/connect.php3");
but it doesn't work. it seems that you can't use subdirectories with require(). Is there a way to do this without SSI?

aarongb
Member
posted April 20, 2000 09:04 AM     Click Here to See the Profile for aarongb   Click Here to Email aarongb     Edit/Delete Message Reply w/Quote
if the calling file is in a separate directory under your webroot, use

<? include ("../includes/connect.php3")
?>

(no semicolon)

require uses the same syntax, but this should get what you need

mmccue
Member
posted April 24, 2000 06:25 PM     Click Here to See the Profile for mmccue   Click Here to Email mmccue     Edit/Delete Message Reply w/Quote
(this is probably for my own reference, but)

why don't you just give an absolute file path?

Mike

All times are MST (US)

next newest topic | next oldest topic

Administrative Options: Close Topic | Archive/Move | Delete Topic
Post New Topic  Post A Reply
Hop to:

Contact Us | DevShed.com

Copyright © 1997-2000 ngenuity. All rights reserved.

Powered by: Ultimate Bulletin Board, Version 5.41a
© Infopop Corporation (formerly Madrona Park, Inc.), 1998 - 1999.