RE: Can't find .php3 files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 09 January 2008 12:18, Anup Shukla wrote:

> Jim wrote:
> > Hi, Mike,
> > 
> > The include is more like
> > require "../admin/admin.php3" I don't know exactly how Apache
> > performs its magic so I wasn't sure that the request for an include
> > file would even pass through Apache's hands.  In my limited world,
> > an include wouldn't have to involve Apache, just the file systems.
> > 
> 
> The admin.php3 seems to be 2 levels above the current dir.
> 
> What about
> 
> print realpath("../admin/admin.php3")
> 
> in the same script?

That's quite a good suggestion.

Just to be clear about the other point, an include or require is purely file system based, *unless* you give it a full URL beginning with a protocol name such as http:// or ftp:// (which, as a general rule, is somewhat disrecommended!).

Cheers!

Mike

---------------------------------------------------------------------
Mike Ford,  Electronic Information Services Adviser,
JG125, The Headingley Library,
James Graham Building, Leeds Metropolitan University,
Headingley Campus, LEEDS,  LS6 3QS,  United Kingdom
Email: m.ford@xxxxxxxxxxxxxx
Tel: +44 113 812 4730          Fax:  +44 113 812 3211 



To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux