Code Comments
Programming Forum and web based access to our favorite programming groups.Hi; Is it possible to import an external php file ( something like C++ "#include" or Java "import" ) ? Regards!
Post Follow-up to this messagePedro Amaral Couto wrote: > Hi; Hi [...] > ( something like C++ "#include" or Java "import" ) ? include(); http://fr2.php.net/function.include Best regards, Sebastian
Post Follow-up to this message"Sebastian Lauwers" wrote: > Pedro Amaral Couto wrote: > > Hi > > [...] > > include(); > > http://fr2.php.net/function.include > > Best regards, > Sebastian Just be careful that include’ing a file is relative to the top calling script, not relative to the immediate calling script! -- http://www.dbForumz.com/ This article was posted by author's request Articles individually checked for conformance to usenet standards Topic URL: http://www.dbForumz.com/PHP-import-...rm.php?p=451809
Post Follow-up to this messagesteve spilled the following: > "Sebastian Lauwers" wrote: > > Just be careful that include’ing a file is relative to the top calling > script, not relative to the immediate calling script! Only if you have '.' in your include path. There are actually four functions which handle this directly: include() include_once() require() require_once() In most cases it's the last one you really want. C.
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.